Click to See Complete Forum and Search --> : Boot from CD & restore dual boot using GRUB


davo
11-19-2002, 08:38 PM
This applies to my Red Hat 8.0 system. It may not work for other distros but it should point you in the right direction. Your milage may vary.

Due to reinstalling Windoz98SE (Suky edition) my mbr was overwritten and she booted only into 98. Finding some info from this site I used my cd to boot into the rescue mode, restored GRUB and was rewarded by having Red Hat 8.0 boot successfull but the computer would hang rather than boot into Win98SE (normally a good thing but I needed into one windoz app). So here's what I did:

To restore Windows Master Boot Record (MBR) I booted from my Windows Rescue Boot Floppy and at the command prompt typed:

fdisk /mbr

That restored windows as the only OS that would automatically boot. Once I was done there and ready to get back onto Linux I booted from Red Hat 8.0 CDROM Disk-1. I had previously set my boot order to: 1-floppy; 2-CD; 3-IDE disk. I pressed <F5> which told my to type "linux rescue" which I ignored. Instead I typed:

vmlinuz root=/dev/hda5

Be sure to change the hda5 to wherever your linux is. Since I had updated the kernel and installed the nVIDIA drivers X would not start. This presented 2 problems: 1) not being freaked out over all the error messages; and 2) getting past all of them and to a command prompt. Once at a prompt (as root) I typed:

cd /

Just so I'd know where I was, then:

/sbin/grub-install dev/hda

This installed GRUB, which I had previously used and was already configured. Lastly I rebooted:

shutdown -r now

If I had wanted to install LILO (assuming I had a properly configured /etc/lilo.conf file) I could have typed:

/sbin/lilo -v -v

instead of the grub-install line above. More on this at:
http://www.redhat.com/support/resources/faqs/rhl_general_faq/s1-bootloader.html


I hope this helps somebody.

Davo