日期:2014-05-16  浏览次数:20789 次

VMware下LINUX的虚拟机增加磁盘空间

D:\Program Files\VMware\VMware Workstation>vmware-vdiskmanager -x 15Gb "D:\Unix_Linux_Vmware_Folder\CentOS6.2\CentOS6.2.vmdk"
Using log file C:\DOCUME~1\JACKXI~1\LOCALS~1\Temp\vmware-jackxiang\vdiskmanager.
log
Grow: 3% done.

D:\Program Files\VMware\VMware Workstation>vmware-vdiskmanager -x 15Gb "D:\Unix_Linux_Vmware_Folder\CentOS6.2\CentOS6.2.vmdk"
Using log file C:\DOCUME~1\JACKXI~1\LOCALS~1\Temp\vmware-jackxiang\vdiskmanager.
log
Grow: 100% done.
The old geometry C/H/S of the disk is: 1305/255/63
The new geometry C/H/S of the disk is: 1958/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party
utility in the virtual machine to expand the size of the
partitions. For more information, see:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647

总结一下:
1。文件名应该用双引号括起来。
2。vmdk文件用不带001,002的最短的那个文件名。
3。GB,MB,别忘了B。
5。 【注意】若路径名中有空格,必须以双引号括起来。
昨天编译linux内核的时候发现系统提示 存储空间不够,所以不得不扩充虚拟机的存储空间,

我的步骤是 VM->settings->(第一个选项框)Hard Disk(SCSI)->utilites->expand 但发现提示这样错误!

There is not enough space on the file system for the selected operation.

后来在网上找了下如下的方法:

 

但提示依然是一样的,这就郁闷了,我fedora的虚拟机在F盘,还有4G多,我现在虚拟机的容量是8G的样子,我想扩充到12G,居然不行,

后来一想,既然你说存储不够,那我就删除一些不必要的东西,结果,我腾出了十多G的空间出来,结果还真行了!!但有一点让我感到疑惑的是,我明明空间有那么多,为什么还说空间不过来呢?我个人推测可能是因为 硬盘当中要预留一些文件系统的信息,,说白了就是不能装的太满!或者需要一些缓冲区。