Shrink VmWare File VMDK——Failed to open the disk. The file specified is not a virtual disk

本文介绍了如何使用VMware vDisk Manager命令行工具对虚拟磁盘进行瘦身操作,并通过实例展示了正确的命令用法及解决常见错误的方法。

使用命令查看命令格式:

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.

 

执行成功。

 

D:\Program Files (x86)\VMware\VMware Workstation>vmware-vdiskmanager.exe -k D:\UserData\Documents\Virtual Machines\xxc_ubt16\xxc_ubt16-000003.vmdk Diskname or some other argument is missing. VMware Virtual Disk Manager - build 24583834. Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point> Offline disk manipulation utility Operations, only one may be specified at a time: -c : create disk. Additional creation options must be specified. Only local virtual disks can be created. -d : defragment the specified virtual disk. Only local virtual disks may be defragmented. -k : shrink the specified virtual disk. Only local virtual disks may be shrunk. -n <source-disk> : rename the specified virtual disk; need to specify destination disk-name. Only local virtual disks may be renamed. -p : prepare the mounted virtual disk specified by the mount point for shrinking. -r <source-disk> : convert the specified disk; need to specify destination disk-type. For local destination disks the disk type must be specified. -x <new-capacity> : expand the disk to the specified capacity. Only local virtual disks may be expanded. -R : check a sparse virtual disk for consistency and attempt to repair any errors. -e : check for disk chain consistency. -D : make disk deletable. This should only be used on disks that have been copied from another product. -U : delete/unlink a single disk link. Other Options: -q : do not log messages Additional options for create and convert: -a <adapter> : (for use with -c only) adapter type (ide, buslogic, lsilogic). Pass lsilogic for other adapter types. -s <size> : capacity of the virtual disk -t <disk-type> : disk type id -z <level> : compression level for -t 5. Valid range: [0,9] Default: 1 Disk types: 0 : single growable virtual disk 1 : growable virtual disk split into multiple files 2 : preallocated virtual disk 3 : preallocated virtual disk split into multiple files 4 : preallocated ESX-type virtual disk 5 : compressed disk optimized for streaming 6 : thin provisioned virtual disk - ESX 3.x and above The capacity can be specified in sectors, KB, MB or GB. The acceptable ranges: ide/scsi adapter : [1MB, 8192.0GB] buslogic adapter : [1MB, 2040.0GB] ex 1: vmware-vdiskmanager.exe -c -s 850MB -a ide -t 0 myIdeDisk.vmdk ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vmdk ex 4: vmware-vdiskmanager.exe -x 36GB myDisk.vmdk ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk ex 7: vmware-vdiskmanager.exe -p <mount-point> (A virtual disk first needs to be mounted at <mount-point>)这是什么意思
最新发布
12-11
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值