| RSS

< Browse > Home/, /Blog Article: How to Change Default OS on Boot

How to Change Default OS on Boot

Sunday, June 13, 2010 | 1 Comment | Posted in ,

If you are using multi OS on the same computer, you are probably using grub as bootloader. It's Ubuntu's default loader.

This grub, makes Ubuntu as default OS to load on boot. If you prefer another OS to load at that stage, Windows - for example, you can configure grub by using gedit:

sudo gedit /etc/default/grub

It will open a gedit editor.

If you change this file, run ‘update-grub’ afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=”"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo’
#GRUB_GFXMODE=640×480

# Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY=”true”


You have to change the value of GRUB_DEFAULT. The default is 0, which represents the first line of the OS list on your computer (numbering starts from 0). So, if your Windows is on the fourth line, you change the number to 3.

If you're looking for a more convenient way to do this, try sudo apt-get install startupmanager, it's a GUI grub configuring tool.

#PS: don't forget to run sudo update-grub after you manualy edited grub config in gedit. You don't have to do this if you're using startupmanager, the GUI version.

1 Response to "How to Change Default OS on Boot"

  1. Anonymous Says:

    I find startupmanager useful. Thank you!

Leave a Reply