»

Print this Post

How to set Windows as default OS on Ubuntu dual boot

When you install Ubuntu along side the Windows, (i.e. dual boot) you’ll notice that Ubuntu is set as default OS on the GRUB loader. You can set Windows as default OS by changing the default value in Ubuntu’s Grub configuration file. First you’ve to open the Terminal on Ubuntu (Applications –> Accessories –> Terminal), and then run this command,

sudo gedit /boot/grub/grub.cfg

Ubuntu Terminal

Now you’ll get a configuration file. Around the 13th line, you can see an entry default=”0”.

Default OS value is set to 0 which is Ubuntu

Here the value “0” represents the 1st entry i.e. Ubuntu. Usually Windows is the 5th entry in grub configuration file. So its value becomes “4”, because counting starts from 0. Now change the number “0” to “4” and save the file (Ctrl+S).

Changing the default os value to 4, which is Windows

But be careful when editing the above file. Making any mistakes would result in Grub failure. So do not make any other changes on Grub configuration file. Then restart your system. Now you can see that Windows is selected as default OS instead of Ubuntu.

Note: Please note that the value 4 only works when your system has only two operating systems i.e. Windows and Ubuntu. Value of any OS depends on the number of entries on the Grub. If you have more operating systems, then the value of Windows may change. You can know the value of Windows by counting the number of entries on the grub configuration file. Here is an easiest way to know the value of Windows on the grub. When you start your system, look at the position of Windows on grub loader. If it is the 6th one, then the value of Windows becomes 5, because counting starts from 0. That means the value of 6th entry is 5.

There are some other solutions to set the default OS for those who finds it’s difficult to edit the grub file. There is an application called “Startup manager” in which you can set Windows as default using mouse. This is the safest way to change the default OS, but it needs internet connection. If you have internet connection, then run the following command on Terminal to install “Startup manager”.

sudo apt-get install startupmanager

After the successful installation, you’ll find “Startup manager” on System –> Administration –> Startup manager. Now you can set Windows as default OS on few clicks with “Startup manager”!

Prasanna SP

 

Short Link:

About the author

Prasanna SP

Student | WordPress Dev | Tech Blogger | Interested in GNU/Linux, FOSS, PHP, Drupal, WordPress, Ethical hacking, Photography, Painting, Literature etc..

Permanent link to this article: http://www.prasannasp.net/ubuntu-dual-boot/

3 comments

  1. Nancy

    Thanks for the share!
    Nancy.R

  2. Prasanna SP

    Thanks Nancy!

    -Prasanna SP

  3. sausenurn

    My dad has been composing a study manual precisely on point with this blog, I have emailed the web page over to him
    so he could pick up a couple pointers.
    Fantastic post thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code snippet between <code> and </code>. Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close