There is a utility that will allow you to mount your VMware vmdk images here:
www.vmware.com/download/ws/
We used VMware-mount-5.0.0-13124.exe:
C:\Program Files\VMware\VMware DiskMount Utility>vmware-mount w: s:\usr-2\d.vmdk C:\Program Files\VMware\VMware DiskMount Utility>dir w: Volume in drive W has no label. Volume Serial Number is 3344-0E04 Directory of W:\ 08/24/1996 11:11a 93,812 COMMAND.COM 04/07/2004 06:48a 0 CONFIG.SYS 04/05/2004 07:28a 489 NETLOG.TXT . . . 6 File(s) 95,856 bytes 5 Dir(s) 909,246,464 bytes free C:\Program Files\VMware\VMware DiskMount Utility> |
The DiskMount utility is a windows program, so it is more difficult to be sure about what files you can grab from the mounted partition. Cygwin works well for this:
Administrator@srv-2 /cygdrive/w $ ls AUTOEXEC.BAT CONFIG.SYS MSDOS.--- Program Files SYSTEM.1ST BOOTLOG.PRV DETLOG.OLD MSDOS.SYS SCANDISK.LOG NETADMIN BOOTLOG.TXT DETLOG.TXT My Documents SETUPLOG.TXT WINDOWS COMMAND.COM IO.SYS NETLOG.TXT SUHDLOG.DAT LINUX.GNU Administrator@srv-2 /cygdrive/w Administrator@srv-2 /cygdrive/w $ tar -czf /cygdrive/c/win.tar.gz . |
Now we have a tarball with our Windows filesystem, let’s mount a disk image that we will use for Bochs, and transfer the files:
[root@srv-1 usr-1]# /sbin/losetup -d /dev/loop0 [root@srv-1 usr-1]# /sbin/losetup -o 32256 /dev/loop0 d.img [root@srv-1 usr-1]# mount /dev/loop0 /mnt [root@srv-1 usr-1]# [root@srv-1 usr-1]# cd /mnt [root@srv-1 mnt]# ls command.com io.sys msdos.sys [root@srv-1 mnt]# [root@srv-1 mnt]# tar -xzf /home/usr-1/win.tar.gz [root@srv-1 mnt]# ls -l total 1168 drwxr-xr-x 3 root root 8192 Apr 7 2004 My Documents dr-xr-xr-x 11 root root 8192 Apr 5 2004 Program Files . . . -rwxr-xr-x 1 root root 450 Nov 3 20:45 scandisk.log -rwxr-xr-x 1 root root 55387 Apr 5 2004 setuplog.txt -rwxr-xr-x 1 root root 5166 Apr 5 2004 suhdlog.dat -rwxr-xr-x 1 root root 402932 Apr 5 2004 system.1st drwxr-xr-x 32 root root 8192 Apr 5 2004 windows |
Looks good. Let’s unmount our image:
[root@srv-1 mnt]# cd / [root@srv-1 /]# umount /mnt [root@srv-1 /]# /sbin/losetup -d /dev/loop0 [root@srv-1 /]# |