If you’re dual booting Ubuntu with other Linux distributions or Windows, you may wish to change the which operating system starts by default. Ubuntu uses the GRUB boot loader to display a menu of installed operating systems and boot them. If you don’t see the menu before Ubuntu starts, hold down the shift key while your system starts up.
This guide is intended for Ubuntu 11.04 and 11.10, which both use GRUB version 1.99. If you’ve upgraded from an older Ubuntu installation, you may still have an older version of GRUB. Search in Ubuntu Software Center for grub-pc and check the version if you’re not sure.
There’s a graphical configuration tool for GRUB called StartUp-Manager. Unfortunately, judging by its reviews in Ubuntu Software Center the application has not been updated for the latest version of GRUB and has some problems. But if you’re comfortable with editing a configuration file and running some terminal commands it’s not difficult to change the default operating system manually.

GRUB can be configured using the /etc/default/grub file. Before you make any changes to it, it may be a good idea to back it up by creating a copy:
sudo cp /etc/default/grub /etc/default/grub.bak
You can restore the copying the backup over the original:
sudo cp /etc/default/grub.bak /etc/default/grub
Open the file using the text editor with root privileges:
gksu gedit /etc/default/grub
The line GRUB_DEFAULT=0 means that GRUB will select the first menu item to boot. Change this to GRUB_DEFAULT=saved . This change will make it easier to change the default item later.
Save and close the file. Run this command to apply your changes to GRUB’s configuration:
sudo update-grub
The configuration change we made allows the grub-set-default and grub-reboot commands to be used at any time. These allow you to change the default boot item permanently or only for the next boot, respectively.
Run grub-set-default or grub-reboot (with sudo) with the number of the menu item to boot (the first item is 0). This command will change the default to the second item:
sudo grub-set-default 1
In the screenshot above, Windows Vista is menu item 5. If you want to select an item from a submenu like Previous Linux Versions, you can specify the position in the main menu, followed by a greater-than sign (>), followed by the position in the submenu. You can also name an entry instead of giving its position. There’s a great Ubuntu Forums post about how this works. The Ubuntu Wiki also has more details on configuring GRUB.


Startup Manager works fine with Grub2. I’ve used it for a few years now, and no editing of configurations files is necessary at all.
I’m running Ubuntu 11.10 and startup manager didn’t work for me: GRUB_DEFAULT was set to 6 but I have only 6 choices in the list (so the last index is 5). Editing the file as described here worked fine!
I don’t know what happened but maybe startup manager has trouble handling sub-menus (the 2 items in the previous linux versions sub-menu might explain the index’s shift).
[...] ubuntu 11.04 alt?nda ba?lang?ç s?ralamas? (boot order) nas?l de?i?tirilir [...]
I came across this program see below and altered the boot process with it.
https://sourceforge.net/p/boot-repair
[...] How-to Change Boot Order in Ubuntu 11.04 [...]
I am running Natty Narwhal Ubuntu 11.04 with GRUB 1.99 and i have been searching for info on how to do this for 2 days, tried at least 10 other methods but this one worked perfect!!! Thanks Tom.
Is there anyway for the grub menu to not display using dual boot 11.04 and win7? Win7 is the default and I tried setting to zero and hitting escape on boot, but that caused many issues. I had to reinstall 11.04 to resolve. I am trying to accomplish no info on the screen and hitting escape only when I want to choose Ubuntu. Thanks.
Replaced by Grub Customizer (https://launchpad.net/grub-customizer)
I just installed grub-customizer and finally … a way to have the grub boot order and display how I want it … well I’ll have to wait and see what happens with a kernel upgrade
This topic is completely misnamed – It tells how to change the default boot item, IT DOES NOT tell how to CHANGE THE ORDER in which the options appear in the GRUB menu.
It was very useful to me.I was struggling with start-up manager. Thank you.
Great tutorial! Easy to follow and worked perfectly!
Thanks!
i have a Toshiba Laptop with Windows7 Pro, i installed Ubuntu 11.10 as well.
i followed the steps above… IT WORKED ..
Thank you.
[...] solution is taken here. Advertisement LD_AddCustomAttr("AdOpt", "1"); LD_AddCustomAttr("Origin", "other"); [...]
Thanks for the clear and concise instructions. Exactly what I’ve been trying to do for the last couple of days.
Great little post – just what i needed!. Working to boot Linux kernel 2.6.37 for Ubuntu 11.10
Worked perfectly.. thank you soo much.
Thanks For the Help !
Any solution given is ok but it is not the simplest.
I think the most easy by far from the others is to open the /boot/grub/grub.cfg and change the line >>set default=”0″<>set default=”4″<>menuentry<>menuentry<< whitch lists you preferable os is the number you must put instead of 0.
works fine, Thanks!
sweet, thanks!
This worked for me, and the startup-manager application worked on another computer. I appreciate the chance given by this tutorial to look “behind the GUI”. Thank you!