Fixing Grub

I have a dual boot desktop with Windows XP and Fedora Core 4 running side by side. I recently re-installed Windows XP. Unfortunately, Windows XP wiped out the Grub configuration making the Fedora inaccessible and unbootable.

To make Grub work again after Windows wrote over it, you’ll need to boot first using the Fedora Core 4 Rescue CD. From the command line, perform the following commands:

[code]
#chroot /mnt/sysimage
#grub-install /dev/hdc
[/code]

There are several instructions written in numerous websites indicating the grub-install to be at /dev/hda. That didn’t work for me. I had to use /dev/hdc. To check your disk configuration, type fdisk to view your mounted drives.

[code]
#fdisk
[/code]

If you are able to boot into Linux and want to make changes in Grub, then just open up a console terminal and edit the /boot/grub/grub.conf file. Make the appropriate changes and save the file. Your changes will take effect in the next boot.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply