I found a little something about restoring MBR's today after totally
hosing one on a Compac Presario 5050 earlier this morning.

In a nutshell, there is an 8MB drive as hda with win98 installed, the
cdrom is at hdc and I added a second HD with Linux on it as hdd. My job
was to restore windows to an 'as new' state and then update/patch it as
required and add the second drive with Linux and allow dual booting. 

At any rate, I hosed the lilo.conf and then hosed the MBR by running
LiLo and got the dreaded scrolling lines of 1's and 0's upon a reboot. I
tried the 'fdisk /mbr' trick which did nothing and I started sweating =(

After a few deep breaths, I poked around in the HOWTO's and found a LILO
mini-howto... all is well again =)

it seems that when you install lilo to the mbr, it creates a file under
/boot - in my case boot.0300 which is your unmolested MBR in all it's
glory... to restore it you use dd, like so:

dd if=/boot/boot.0300 of=/dev/hda bs=446 count=1

a quick reboot and *viola*: windows startup screen

I lost about 5 pounds worth of sweat over this today before i found the
answer so, here's hoping somebody here can/will benefit from my little
experience...

-- 
Myles Green Calgary AB Canada
Alberta Step by Step Mirror:
http://www.telusplanet.net/public/mylesg/


_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to