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.
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.
- 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.
- 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.
- 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.
- In the file editor, look for GRUB_DEFAULT= command. It should be present towards the top of the file.
- 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.
- Save the file (CTRL + O; then press Enter) and then run the following command in the terminal so as to update the GRUB.
- Restart you computer and you’ll see the option selected by default will now be Windows.
Get weekly updates via email!
Thank you for subscribing.
Something went wrong.