Recovering GRUB after reinstallation of windows

Status
Not open for further replies.

ujjwal

Padawan
These links should help you -

*www.thinkdigit.com/forum/viewtopic.php?t=15125 , 6th post.
*www.thinkdigit.com/forum/viewtopic.php?t=22609

By the way, please move this thread to the open source section or merge it with the other threads, mods.
 
OP
K

kadal27

Broken In
Got it

Thank you ujjwal! I searched searched several times, but unable to locate this. Now found it with your help.

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 Smile
 
Status
Not open for further replies.
Top Bottom