Edit GNU Grub

Asked by Lee

I have two OS installed into my notebook. Ubuntu 9.10 and Windows XP. When GNU Grub loads Ubuntu 9.10 would be loaded if it is left for a few minutes. I would like to make it so that when GNU Grub loads, Windows XP will be at the top so that way WIndows XP can load without me doing any clicking. Please tell me how to get to the place to edit GNU Grub. Thank you for anyone that can help.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

Can you attach the file "/boot/grub/menu.lst" ?

Revision history for this message
Will Bickerstaff (willbickerstaff) said :
#2

delance /boot/grub/menu.lst is grub legacy, grub2 uses /boot/grub/grub.cfg but you should edit the file /etc/grub/default or the files in /etc/grub.d as for making windows appear first, sorry don't know how that would be done but will poke around and find out

Revision history for this message
Will Bickerstaff (willbickerstaff) said :
#3
Revision history for this message
Will Bickerstaff (willbickerstaff) said :
#4

To boot windows by default you would change the line in /etc/default/grub that reads
GRUB_DEFAULT=0
to the position windows is in the menu e.g if it appeared as the third item in the list you would change it to read
GRUB_DEFAULT=2
then you need to run
sudo grub-mkconfig
in a terminal

Can you help with this problem?

Provide an answer of your own, or ask Lee for more information if necessary.

To post a message you must log in.