使用命令查看命令格式:
D:/Program Files (x86)/VMware/VMware Workstation>vmware-vdiskmanager.exe /?
-k : shrink the specified virtual disk. Only local
virtual disks may be shrunk.
ex 7: vmware-vdiskmanager.exe -k myDisk.vmdk
执行如下,报错:
D:/Program Files (x86)/VMware/VMware Workstation>vmware-vdiskmanager.exe -k “F:/
Win2003_ORACLE/Win2003-0-s013.vmdk”
Failed to open the disk ‘F:/Win2003_ORACLE/Win2003-0-s013.vmdk’ : The file speci
fied is not a virtual disk (0xf00003ebf).
Failed to shrink the disk ‘F:/Win2003_ORACLE/Win2003-0-s013.vmdk’ : The file spe
cified is not a virtual disk (0xf00003ebf).
去掉 VMDK 文件的最后一个“ – ”及其他字符,如下:
D:/Program Files (x86)/VMware/VMware Workstation>vmware-vdiskmanager.exe -k “F:/
Win2003_ORACLE/Win2003-0.vmdk “
Shrink: 48% done.
执行成功。