recover grub

Status
Not open for further replies.

lamrinnirmal

Journeyman
i have a dual boot of xp and red hat 9.0. recently i reinstalled xp on C: leaving all other partitions intact. Now when i start my system i do not get the grup bootloader. how do i recover it back?
 

ujjwal

Padawan
I think there is a tip about this in the Linux tips and tricks sticky ...

Anyway, to start with, you need to boot into a linux environment, so that you can reinstall GRUB. Any bootable floppy or CD will do, but if your distributions CD has a rescue mode (generally accessed by typing "linux rescue" at the prompt) its better. Redhat does have one, so that makes the job easier.

Once booted, RH will automatically mount your partition on /mnt/sysimage (you may to specify the partition or distro to rescue), but we need to make that directory as the root or '/' directory, so you can type

Code:
chroot /mnt/sysimage

Now install grub on the MBR

Code:
grub-install /dev/hda

Now you should have grub back :)
 

demoninside

In the zone
lamrinnirmal

Please search the forum before u post any thing,
this method u can find one of the sticky thread here.............
 
Status
Not open for further replies.
Top Bottom