Linux Windows

Make Windows boot by Default in a Windows + Linux Dual-Boot System

After hearing many praises for the Linux based operating systems, I recently went ahead to try out the much praised Linux Mint coupled with the cinnamon desktop. Although the OS is pretty interesting and powerful at the same time, I was not interested to boot into Linux Mint every time the system was turned on. This is because firstly I’m not the only user of this PC and secondly I’m not interested to completely shift to Linux while still testing it out. Here is how I was able to make the system boot into Windows by default.

GRUB Screen DualBoot
GRUB Screen

Configuring GRUB to Boot Windows by Default

When you setup a dual-boot system, the OS choices are presented by the Linux GRUB menu and it is responsible for selecting the default OS and booting it up. With a little customization to the GRUB file, we can change the basics such as – which choice is selected by default and how long should the GRUB wait before automatically booting to the selected choice.

  1. Turn on your PC and take a look at the GRUB screen. Note the position Windows loader is at and then proceed with booting up with your Linux install.
  2. Log into your user account and open the terminal (Menu> Use the command line). You can also use the keyboard shortcut Ctrl + Alt + T to open the terminal window.
  3. Type or copy>paste the command below in the terminal window and hit return (enter).
    sudo nano /etc/default/grub

    This will open up your grub configuration file in the nano editor. Alternatively if you want to avoid the terminal, you can open filesystem> etc> default> grub file. Be sure to open the folder as root (w/ elevated privileges), else you won’t have the write access to the file.

  4. In the file editor, look for GRUB_DEFAULT= command. It should be present towards the top of the file.grub edit default
  5. In most common cases, the value of command will be set to 0 (zero). All you need to do is to set it to the position at which Windows was listed in the GRUB (counting from zero). So simply, as in the picture at the top, the Windows 8 loader is listed at 5th position, but counting from zero will make it the 4th position. So I’ve set the value of command to 4.
  6. Save the file (CTRL + O; then press Enter) and then run the following command in the terminal so as to update the GRUB.
    sudo update-grub
  7. Restart you computer and you’ll see the option selected by default will now be Windows.
You can also change the seconds till which the GRUB waits before booting up the default Operating System. It is marked by the else set timeout= command. Edit it to your preference.

Subscribe for email updates!

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4,238 other subscribers