The specified virtual disk needs repair.

本文介绍了解决VMWare虚拟机中虚拟硬盘文件损坏导致的空间扩展问题。通过使用vmware-vdiskmanager.exe工具进行修复,文章详细说明了操作步骤。

如题:

出现场景:使用了VMWare虚拟机,创建了一个虚拟硬盘位20G的虚拟机器,安装了ubuntu12.10操作系统,然后往其中copy了一个文件大小大概在十几G的文件,提示控件不足,然后去扩展虚拟磁盘空间,提示这个错误。

原因:虚拟磁盘文件损坏。

解决:使用vmware-vdiskmanage.exe工具来进行修复。

过程:

1)在vm的安装目录找到vmware-vdiskmanager.exe程序,如果没有,则请自己从网络上下载一个。

2)在cmd命令行使用该程序,假如你的错误提示有提示具体某个文件出错,那么就具体修复某个文件。

比如提示这个文件:D:\vm\install\machine\ubuntu\123456.vmdk

那么就运行下面命令:vmware-vdiskmanager.exe -R "D:\vm\install\machine\ubuntu\123456.vmdk"

3)如果没有提示具体的文件,那么就请修复和你建立的机器名同名的vmdk文件,比如我的是gavinguo-ubuntu.vmdk。


good luck!

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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值