Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Dec 2000 23:48:37 +0800
From:      Peter Hornby <p.hornby@ned.dem.csiro.au>
To:        freebsd-emulation@freebsd.org
Subject:   Re: Vmware2 on 4.2-STABLE
Message-ID:  <3A27C855.62A7FF5E@ned.dem.csiro.au>

next in thread | raw e-mail | index | archive | help

Just a line FYae. The trick is....

1) try to create a raw disk in order to get the wizard to make the
following file for you
======
DEVICE /compat/linux/dev/hda

# Partition type: MBR
RDONLY 0 62
# Partition type: Win95 FAT32
NO_ACCESS 63 4096574
# Extended partition hole
RDONLY 4096575 4096637
# Partition type: Win95 FAT32
ACCESS 4096638 8385929
# Extended partition hole
RDONLY 8385930 8385992
# Partition type: Win95 FAT32
ACCESS 8385993 12659219
========

2) Hack this into a plain disk format along the lines of the Hints file.
========
DRIVETYPE      ide
CYLINDERS  13410
HEADS         15
SECTORS       63

# Partition type: MBR
RDONLY "/home/<blah blah blah>/vmware/hda/wd0.mbr"  0 63

# Partition type: Win95 FAT32
RDONLY "/dev/rwd0s1"  63 4096512

# Extended partition hole
RDONLY "/home/<blah blah blah>/vmware/hda/wd0.eph1" 4096575 63

# Partition type: Win95 FAT32
ACCESS "/dev/rwd0s5" 4096638 4289292

# Extended partition hole
RDONLY "/home/<blah blah blah>/vmware/hda/wd0.eph2" 8385930 63

# Partition type: Win95 FAT32
ACCESS "/dev/rwd0s6" 8385993 4273227

# padding
RDONLY "/dev/null" 12659220 13230
==========

3) Grab the partition tables and MBR & put then in the indicated files
above
eg.

   dd if=/dev/rwd0 of=wd0.eph1 bs=1b count=63 skip=4096575

etc....

3a) Now install this disk in a VM config somewhere, and see if it's
OK.(Don't boot from it).

4) Now do a
   dd if=/dev/rwd0s1 of=whatever bs=1b count=4096512

to get a copy of the first partition, and point the plain disk's first
partition at this instead of the real disk slice (and make it ACCESS
instead of RDONLY).

5) boot with this plain disk, and see what the damage is.....

Cheers.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A27C855.62A7FF5E>