DIGIT-ARC read-only archive · snapshot: July 23, 2026

recover grub

4 posts · originally from https://geek.digit.in/community/threads/recover-grub.11145/

L
lamrinnirmal Original post #1
Jun 11, 2005 at 8:20 AM
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?
U
ujjwal #2
Jun 11, 2005 at 8:47 AM
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 :)
L
Jun 11, 2005 at 11:55 AM
thanks ujjwal....that worked
D
Jun 11, 2005 at 3:51 PM
lamrinnirmal

Please search the forum before u post any thing,
this method u can find one of the sticky thread here.............