dual boot ranking

Asked by werthal

I have Ubuntu installed over XP. I would like that XP is the default booting system. How can I change the boot ranking. (I am a real beginner!).
Thanks in advance
Werner

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
mgut
Solved:
Last query:
Last reply:
Revision history for this message
mgut (mgut) said :
#1

hi werner,
i don't think there is a gui way to do this, so you have to edit a configuration file.

open a terminal and type: gedit /boot/grub/menu.lst

at the bottom of this textfile there is a section where your boot options are listed. (your ubuntu system being the first)
usually your windows option should be the third entry (but not always!) count beginning from 0 being the first entry to the windows part. (e.g. if win. is your third option you'd count to 2). go back to the top of the textfile and look for a line:
default 0
and replace the 0 with your choice (2 if the third option is windows.

the next reboot should take you to windows.

i hope thats not too confusing

mathias

Revision history for this message
werthal (werthal) said :
#2

Thank you, it worked!

Revision history for this message
Dulcinea (celeryb) said :
#3

I have a similar issue, needing to change by bootup default, after a recent Ubuntu upgrade. My dual boot system is defaulting to memtest86+. I followed mgut's instructions to edit menu.lst. When I save the file I get the message: "Could not save the file /boot/grub/menu.lst. You do not have the permissions necessary to save the file. Please, check that you typed the location correctly and try again."

This is my personal computer and I'm the only user. How else can I get permission to edit a file? And what location is the error message referring to? I didn't set up the partition (Windows and Linux) and I didn't load Ubuntu. I'm new to Linux. And so new to this, that I'm not even sure who I'm writing this message to - mgut, werthal, anyone, no one????

Thank you.