Dual boot windows xp + Fedora 5.0 and GRUB missing

Windows + Fedora dual boot

I recently installed a new hard disk aside my existing one. So the new configuration was a 80GB + 40GB. I installed Windows xp on the first hard disk and Fedora Core 5.0 on the second one. And the simple problem that I faced , was that GRUB was simply not coming. The machine would simply boot into windows withou any trace of a boot menu or grub anywhere.

And once again began the hunt for solutions. Asked many Linux experts and all of them asked for the grub.conf.
But I could simply understand that GRUB wasnt installed at all so analyzing the grub.conf was useless. I myself analysed it and found no problems.

Most of the forums suggested to boot using the Fedora DVD and enter the rescue mode and run the grub install command

grub-install /dev/hda

So I booted using the dvd and entered into the rescue mode like this

boot: linux rescue

Then followed a few general localization questions. Then it searched for Linux installations and mounted it to /mnt/sysimage directory. And then requests to type in the command

# chroot /mnt/sysimage

Then I tried running the grub install command

# grub-install /dev/hda

But this did not work and I got the error

/dev/hdb does not have any corresponding BIOS drive

Linux was on hdb, the second hard disk.

Final solution

I searched several forums and somewhere found a modified version for the command

# grub-install --recheck /dev/hda

And finally after reboot I discovered the cool blue GRUB that would allow me to boot Fedora.
The grub-install --recheck command rewrites the /boot/grub/device.map file
with mappings like

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb

So GRUB could install properly.






Last Updated On : 8th July 2013

Subscribe to get updates delivered to your inbox

Leave a comment