LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 12-31-2011, 01:40 PM   #1
kory.l.hansen
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 12-31-2011, 08:07 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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.
 
Old 12-31-2011, 08:21 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,351

Rep: Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041
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".
 
Old 01-02-2012, 03:53 PM   #4
kory.l.hansen
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
If I use the menu entry title, does that mean I won't have to configure anything when I install kernel updates?
 
Old 01-02-2012, 06:59 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,351

Rep: Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041
Yes, so long as you update the default file as suggested, - don't touch the grub.cfg; it gets rebuilt at intervals.
 
Old 01-03-2012, 10:45 AM   #6
kory.l.hansen
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
OK, thank you for your help!
 
Old 01-12-2012, 07:33 PM   #7
propenguin
LQ Newbie
 
Registered: Jan 2012
Posts: 5

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to start Grub2-bootloader from extlinux-bootloader? floppy_stuttgart Linux - Newbie 13 11-13-2011 06:43 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
adding files extracted from an ISO to GRUB2 bootloader OverKll Linux - Software 3 02-22-2010 07:35 AM
Mounting Windows Partition and Configuring Bootloader dbzw Linspire/Freespire 5 12-17-2004 09:08 PM
need help configuring bootloader for mandrake 10 rc1 MonicaClinton Linux - Newbie 3 03-29-2004 02:28 PM


All times are GMT -5. The time now is 03:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration