全部文章 | 测试技术 | python脚本 | 安全技术 | 项目管理 | 感悟休闲

作者: amions   发表日期: 2007-11-26 10:33   复制链接




vmware安装目录下 啫*iv猁璫  
vmware-vdiskmanager.exe 噰寀n藪  
在dos提示符下运行,不加任何参数时,给出此程序使用方法: #O趹#"x  
--------------------------------------------------------------------- Mz铫`x訿+  
VMware Virtual Disk Manager - build 12544. 袩]旑!  
Usage: vmware-vdiskmanager.exe OPTIONS diskName | drive-letter: |[營椼)  
Offline disk manipulation utility 漞廣$椭:  
  Options: (k1yb  
     -c                   : create disk; need to specify other create options :擯-HR  
     -d                   : defragment the specified virtual disk 7b揩_覣1  
     -k                   : shrink the specified virtual disk 雉陳愂M  
     -n      : rename the specified virtual disk; need to 篺戭u  
                            specify destination disk-name 颹$\;彽  
     -p                   : prepare the mounted virtual disk specified by 酸E鮱靆  
                            the drive-letter for shrinking U乁蠱rY  
     -q                   : do not log messages 綱)P1  
     -r      : convert the specified disk; need to specify ╧稯<塍  
                            destination disk-type M嬻"販Y  
     -x     : expand the disk to the specified capacity B}厂7  
     Additional options for create and convert: G嗎}剹餦  
        -a       : adapter type (ide, buslogic or lsilogic) 寴烙9)  
        -s          : capacity of the virtual disk 8嗒O偮-*郗  
        -t     : disk type id 纱檁剔骄  
     Disk types: U槹剳  
        0                 : single growable virtual disk 做穩谅,  
        1                 : growable virtual disk split in 2Gb files saG9p@Q  
        2                 : preallocated virtual disk 蝧俬9x  
        3                 : preallocated virtual disk split in 2Gb files S鱢p萱t  
     The capacity can be specified in sectors, Kb, Mb or Gb. Τ珹k0  
     The acceptable ranges: ~K4S钆S  
                           ide adapter : [100.0Mb, 950.0Gb] J6)  
                           scsi adapter: [100.0Mb, 950.0Gb] @'鏰d飁瀖  
        ex 1: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk X57脗C崧  
        ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk 虞墀轌n陑  
        ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm ≈`繸砍  
dk 狖Y穣c  
        ex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk 毁s瞒聢&Q  
        ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk 貤c鄎6L!  
        ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk 蓮鱭5<足  
        ex 7: vmware-vdiskmanager.exe -p m: @僥9蘶愽gN  
              (A virtual disk first needs to be mounted at m: a罿&詁'  
               using the VMware Diskmount Utility.) 8業 Z~QQ溢  
------------------------------------------------------------- U鋷Q拸  
修改虚拟硬盘尺寸的参数,有两个.注意上面红色部分. 椑d9噍/恝  
    vmware-vdiskmanager -x 7Gb 完整路径的虚拟机文件.vmdk 姄嶪2G  
对于上面这句,理应可以正常使用.成功于否本人并不保证.值得一提的在下面写出: 衟硯  
1>本人曾用这个程序将一个4GB的虚拟硬盘扩到7GB. ゛0艒護]趚  
2>注意你虚拟硬盘所在的完整路径里是否有不合法的字符,比如空格.最好使用双引号将文件名包含在内,这样有空格也不成问题. O薼t轖щ敿  
3>不知道有没有其他工具可以做到相同功能


阅读全文(499) | 回复(0) | 推送
欢迎到 amions 的个人主页看更多内容



  共0条回复