This question already has an answer here:

I recently installed ubuntu (dual boot with windows).

I want to boot windows automatically unless I manually choose ubuntu.

I use grub and startupmanager (yes I know obsolete). I am running ubuntu 14.04 and windows 7.

Can someone tell the procedure to do this?

marked as duplicate by Rinzwind, jobin, Seth Jun 16 '14 at 20:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Press Ctrl+Alt+T, type gksudo gedit /etc/default/grub press Enter and enter your password.

  • You will see the following contents:

    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  • You can change the default from 0 to any number, corresponding to the entry in the Grub bootup menu (first entry is 0, second is 1, etc.)

  • Then run sudo update-grub

Important: To get grub file in /etc/default/grub if not exist, run this command:

sudo apt-get install grub2 grub-pc

Then run

sudo update-grub

Use a program called grub-customizer to modify your grub files - this will allow you to select the windows installation as the default boot.

Loading instructions are located at this Ubuntu site

Not the answer you're looking for? Browse other questions tagged or ask your own question.