RHEL4的VMDK檔案損壞了,winImage載入看不到檔案,VMWare-Mount載入之後,雙擊windows提示是否需要格式化,很faint!
使用vmware-mount載入vmdk檔案
安裝好VMWare後,承軟體帶一vmware-mount程式,該程式可以在宿主機(真機)上直接載入vmdk檔案(也就是虛擬機器用的硬碟檔案),這樣的話,我們就可以直接在宿主機上直接使用虛擬機器裡的檔案了。方法是在開始菜單中輸入vmware-mount所在的路徑,如:C:/Program Files/VMware/VMware DiskMount Utility,當然,具體路徑要看你安裝好的路徑了。
C:/Documents and Settings/ronun>cd C:/Program Files/VMware/VMware DiskMount Utility
C:/Program Files/VMware/VMware DiskMount Utility>dir
磁碟機 C 中的卷沒有標籤。
卷的序號是
100E-B911
C:/Program Files/VMware/VMware DiskMount Utility 的目錄
2007-03-15 08:25 <DIR> .
2007-03-15 08:25 <DIR> ..
2005-11-18 13:54 827,392 libeay32.dll
2003-03-18 20:14 499,712 msvcp71.dll
2003-02-21 04:42 348,160 msvcr71.dll
2005-11-18 13:54 159,744 ssleay32.dll
2005-11-18
13:54 1,220,608 vmware-mount.exe
5
個檔案 3,055,616 位元組
2
個目錄 3,375,861,760 可用位元組
C:/Program Files/VMware/VMware DiskMount Utility>vmware-mount /?
VMware-mount [driveletter:] [path-to-virtual-disk] [options]
VMware DiskMount Utility version 5.5.0 build-18463
Copyright (c) 1998-2003 VMware, Inc. All rights reserved.
This utility mounts VMware virtual disks under Microsoft Windows.
Use "VMware-mount" without arguments to list the currently-mounted volumes.
/d deletes the mapping to a virtual drive volume
/f forcibly deletes the mapping to a virtual drive volume
/v:N mounts volume N of a virtual disk
/p displays the partitions (volumes) on a virtual disk
/y open the virtual disk whether or not a snapshot is in effect
/n do not open the virtual disk if a snapshot is in effect
/? displays this usage information
上面是協助資訊,例如,如果你想載入d:/temp/Win2k.vmdk檔案,就用如下命令:
C:/Program Files/VMware/VMware DiskMount Utility>VMware-mount z: d:/temp/Win2k.vmdk
這時,你機器上會多一個Z盤,裡面就是虛擬機器硬碟d:/temp/Win2k.vmdk的內容。
如果想卸載,則用/d參數:
C:/Program Files/VMware/VMware DiskMount Utility>VMware-mount z: /d