How to change the default operating system to boot with Ubuntu Linux and Windows

In Ubuntu, the boot order is controlled with GRUB. Do the following:

  1. sudo cp /etc/default/grub /etc/default/grub.bak (backup of the conf file, only superuser can do it)
  2. sudo gedit /etc/default/grub (edit the conf file, only superuser can do it)
  3. Replace GRUB_DEFAULT=0 with GRUB_DEFAULT=saved
  4. Save and close the file in gedit.
  5. sudo update-grub
  6. sudo grub-set-default xx, where xx is the number of the boot menu item you want to start be default. The first item has number 0. After doing update-grub, you’ll see a list of all OS’s that will be included in the menu, so you can count them (start with 0 and count all lines starting with found).

Note: memtest, if you have it in the menu, takes two lines in the menu, while update-grub shows only one. Windows is the last item. So add one to the number to start with Windows.

This solution is taken here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s