Help - Search - Members - Calendar
Full Version: Configuring Grug
Linuxhelp > Support > Technical Support
rina
I have a PC dual with Win98 and RedHat 9.0 (Boot loader GRUB). My window crashed and had to reload Win98. Now do not get dual boot. I am to boot Pc using Boot Floppy. Please advice how to make it dual boot again.

Thanks,
rina
michaelk
run grub-install
hughesjr
Yes ... if you can boot to linux via a boot floppy, this command should work:

grub-install /dev/hda

(substitue your boot drive /dev/hda if it is different) ... if that doesn't work, for whatever the reason, you can:

cd /boot/grub

grub


(after it probes the drives, you will now be at the grub prompt) ... We are next going to issue the root command in grub ... the hard drive for root will be the drive that grub is on (it is normally your boot partition) ... based on the following table.
QUOTE
/boot partition    root command drive
/dev/hda1                (hd0,0)
/dev/hda2                (hd0,1)
/dev/hda3                (hd0,2)
/dev/hda4                (hd0,3)
/dev/hdb1                (hd1,0)
/dev/hdb2                (hd1,1)
/dev/hdc1                (hd2,0)         


If you are not sure ... just use this command at the grub prompt:

find /grub/stage1

if that doesn't work, try

find /boot/grub/stage1

once you know your /boot partition drive [mine is (hd0,0)], use this command:

root (hd0,0)

Then use the setup command to re-write the mbr on the correct drive ... /dev/hda is (hd0), /dev/hdb is (hd1), /dev/hdc is (hd2), /dev/hdd is (hd3) ... for me (hd0) is my boot drive [this should be the boot drive for the majority of people]

setup (hd0)

issue the command quit to exit grub and reboot ... everything should be good now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.