LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Configuring GRUB2 Bootloader (https://www.linuxquestions.org/questions/linux-desktop-74/configuring-grub2-bootloader-921403/)

kory.l.hansen 12-31-2011 01:40 PM

Configuring GRUB2 Bootloader
 
My PC has two hard drives. The master drive has Fedora 16 installed with the GRUB2 bootloader. The slave drive has Windows XP with a corrupted bootloader. GRUB2 always defaults to Fedora. How can I change this so GRUB automatically boots into Windows XP?

bigrigdriver 12-31-2011 08:07 PM

Take a look at file /boot/grub/grub.cfg. Scroll down to the menuentry items and count down to the menuentry for xp (counting starts at 0). Then, as root, edit /etc/default/grub and change
Quote:

GRUB_DEFAULT=0
to the number for the xp menuentry.

Then run update-grub to regenerate the grub.cfg with xp as the default OS.

syg00 12-31-2011 08:21 PM

This presumes the list is static - better to use the menu entry title for XP. Then it doesn't matter if its relative position "moves".

kory.l.hansen 01-02-2012 03:53 PM

If I use the menu entry title, does that mean I won't have to configure anything when I install kernel updates?

syg00 01-02-2012 06:59 PM

Yes, so long as you update the default file as suggested, - don't touch the grub.cfg; it gets rebuilt at intervals.

kory.l.hansen 01-03-2012 10:45 AM

OK, thank you for your help!

propenguin 01-12-2012 07:33 PM

There is a way to change the grub default. Check out this blog. http://razor3dg3.wordpress.com/2012/...t-boot-option/


All times are GMT -5. The time now is 05:57 AM.