View Full Version : dual boot

25th October 2006, 09:05 PM

I have a fedora/Windows Xp dual boot system. Somehow XP crashed and I have to reinstall it. But afterward, when I restart the computer, it goes directly to Windows. Grub doesn't show up.

I used Fedora rescue mode to take a look at grub.conf. It is not changed. Even if I comment out the 'Other' in grup.conf, the restart still goes directly to Windows.

Would someone please help me to figure out how to go to Fedora? Many thanks.

25th October 2006, 09:16 PM
This sounds like the Master Boot Record was over written by windows. Try this
http://www.ces.clemson.edu/linux/fc2.shtml or something like this. Look on the web for maybe something more recent

This is probably a better example using the install disk:

26th October 2006, 01:03 AM
You can fix it with somethings like this.

chroot /mnt/sysimage
root (hd0,1)
find /boot/grub/stage1
setup (hd0)

1. if you have seperate /boot partition, you need to mount that to /mnt/sysimage/boot also before chroot.
2. root need to point to the parition where the /boot partition is. Both disk and partition nubmer start with 0. (i.e. the command above refer to 2nd partition on the 1st disk)
3. find conmand verify there is a valid grub config and system files, This is optional and the path is the relative path to the /boot partition. (i.e. the command above assume there isn't a seperate /boot partition, if there has been one, then it would be just /grub/stage1