作者: amions 发表日期: 2007-11-26 10:33
复制链接
vmware安装目录下 5^O7貓
vmware-vdiskmanager.exe j蘜﹙x貸
在dos提示符下运行,不加任何参数时,给出此程序使用方法: y~蘬s7
--------------------------------------------------------------------- kFq筄n葏<
VMware Virtual Disk Manager - build 12544. 痉<Y惏庥C
Usage: vmware-vdiskmanager.exe OPTIONS diskName | drive-letter: ;▔=
Offline disk manipulation utility 0p贺}3
Options: zp? |必Y
-c : create disk; need to specify other create options cm顕箏<獎
-d : defragment the specified virtual disk /帼w]砕觐
-k : shrink the specified virtual disk Z羙昙
-n
specify destination disk-name 懻<鞖!e#
-p : prepare the mounted virtual disk specified by Ns!a兦
the drive-letter for shrinking H 嬘@kzy
-q : do not log messages 晶歃A瑈
-r
destination disk-type Pㄖ镠悢
-x
Additional options for create and convert: 纵7伝縉mǖ
-a
-s
-t
Disk types: 噒_K坹Zi
0 : single growable virtual disk ~0
1 : growable virtual disk split in 2Gb files 赊啒zs篺砑
2 : preallocated virtual disk 珴酠E嵌7U
3 : preallocated virtual disk split in 2Gb files 艇Pg"鱜
The capacity can be specified in sectors, Kb, Mb or Gb. xh飦67
The acceptable ranges: A牸i鷺I=
ide adapter : [100.0Mb, 950.0Gb] 憃畞 豱K~
scsi adapter: [100.0Mb, 950.0Gb] 儽*v*掯B
ex 1: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk 簏耗p喲
ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk 旼[30貒
ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm )9娟
dk s@<#=筍鈐
ex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk 獵!4-鋘X
ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk M頸犔k
ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk C鎗'6
ex 7: vmware-vdiskmanager.exe -p m: * 铝I~[P
(A virtual disk first needs to be mounted at m: 妐F炮w痱4K
using the VMware Diskmount Utility.) &瞟 岱杞
------------------------------------------------------------- 3 逪
修改虚拟硬盘尺寸的参数,有两个.注意上面红色部分. pd飙=啩_
vmware-vdiskmanager -x 7Gb 完整路径的虚拟机文件.vmdk ov4_塠!
对于上面这句,理应可以正常使用.成功于否本人并不保证.值得一提的在下面写出: 琌皹
1>本人曾用这个程序将一个4GB的虚拟硬盘扩到7GB. 4x罾C
2>注意你虚拟硬盘所在的完整路径里是否有不合法的字符,比如空格.最好使用双引号将文件名包含在内,这样有空格也不成问题. M]专匳譞}l
3>不知道有没有其他工具可以做到相同功能