免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1733 | 回复: 0
打印 上一主题 下一主题

如何扩大虚拟机的硬盘空间 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-28 11:03 |只看该作者 |倒序浏览
大家在使用vmvare安装虚拟机的时候,常发现空间不够用,这时,如果重新安装的话,太费时间,这里给大家一个技巧轻松扩展你的硬盘空间

1. 首先使用命令把最大空间限制改掉
  例: C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe -x 10Gb f:\linux.vmdk

1). 将虚拟机空间扩展为10GB
2). 重建分区, 这样原来的数据不会丢失.
    #fdisk /dev/sda
    # n
    这里出现如下选项
    # e (extended)
      p (primary 1-4)
    这里我选p
    # 开始与结束的cylinder取默认值即可
    # w
  3).mkfs.ext2 /dev/sda3

  有些系统可能提示mkfs.ext2::no such device or address while trying to determine filesystem size
  这时用户需重启一下系统,再运行该命令
  编辑/etc/fstab文件,加入下面的内容
  /dev/sda3 /data ext2 defaults 1 2
  4).reboot

请参考如下的FAQ
Details



I am using the VMware Virtual Disk Manager utility to expand the size of a virtual disk. The virtual disk is partitioned and the partitions do not get expanded. How can I expand the partitions?
Solution



If you are using the VMware Virtual Disk Manager included in GSX Server, VMware Server, Workstation, or ACE to expand the size of a virtual disk, and the virtual disk is partitioned, you will need to use a third-party utility to resize the expanded partitions.  This utility would be run from inside the guest operating system.

Note: VMware cannot endorse or recommend any third-party utilility, nor take responsibility for anything that may occur as a result of its use.  We recommend backing up your VM (or taking a snapshot) prior to attempting this.

Examples of third-party utilities include:

Partition Magic
http://www.symantec.com/norton/products/overview.jsp?pcid=sp&pvid=pm80

System Rescue CD
http://www.sysresccd.org/Main_Page
GParted LiveCD
http://gparted.sourceforge.net/livecd.php
Partition Logic
http://partitionlogic.org.uk
EASEUS Partition Manager
http://www.partition-tool.com

Paragon Partition Manager
http://www.partition-manager.com
Ranish Partition Manager
http://www.ranish.com/part
7tools Partition Manager
http://www.7tools.com/pm/index.htm
DFSee
http://www.dfsee.com/dfsee/index.php
Windows DiskPart utility.

Note: If you are using the Windows DiskPart utility, it can only extend (expand) data volumes; if you use the DiskPart utility to extend a system or boot volume, you may get an error. For more information about extending partitions with the DiskPart utility, see
http://support.microsoft.com/kb/325590
.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22381/showart_472404.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP