Saturday, November 21, 2015

How to boot your primary operating system first in GRUB menu

GRUB2 is a boot loader that allows you to select to boot into any operating system when the computer has multiple operating systems on board. It is widely implemented in Linux distributions as boot loader.

After installation of Linux distro alongside with Windows 10 or other Linux distro, the GRUB boot menu will appear for you to select the operating system on every startup. Set the main option to be highlighted as your primary operating system at every first boot is definitely useful.

First of all, know what are the options available in your GRUB menu. Let's say if the GRUB menu looks like this:
  • Ubuntu
  • elementary OS
  • Advanced options for elementary OS
  • Windows 10

Open Terminal,
  1. Type sudo nano /etc/default/grub
  2. If you want Windows 10 to boot by default, look for the line GRUB_DEFAULT=0 and replace with GRUB_DEFAULT=3
  3. To save the file and exit, press Ctrl+O and then Ctrl+X.
  4. Update GRUB by typing sudo update-grub
  5. Done. You may reboot and see the changes in GRUB menu.

If you want to boot elementary OS by default taking the options in the GRUB menu above mentioned as example, replace GRUB_DEFAULT=0 and replace with GRUB_DEFAULT=1. The entry options are starting from 0 to 3 in sequence.


  1. Thanks to the author for writing the post, it was quite necessary for me and liked it. I wrote a note on the state of writing reviews about this. I will be happy if you read it and accept it. Thank you for your concern.

  2. How to boot a Mac from USB media
    Getting your Mac to load from a USB drive is fairly straightforward.

    Insert the USB boot media into an open USB slot.
    Press the Power button to turn on your Mac (or Restart your Mac if it’s already on).
    When you hear the startup chime, press and hold the Option key. Holding that key gives you access to OS X’s Startup Manager. Once the Startup Manager screen appears, release the Option key. The utility will look for any available drives that include bootable content.
    Using either the pointer or arrow keys on the keyboard, select the USB drive you wish to boot from.
    Once selected, either hit the Return key or double-click your selection. The machine will start to boot from the USB drive.ds emulator jiofi login

  3. You need to edit the /etc/default/grub file to set Windows as your default OS. You will then select the Windows partition, in my case "Windows 7 (loader) (on /dev/sda1)" including the double quotes and copy it. It will open the /etc/default/grub file with gedit. vidmate 2019 insta downloader

  4. Is this boot also work on windows 11 also?? by the way the for the guide this helps me so much thanks for this. cyberpunk 2077 jacket

  5. Thanks for sharing this tutorial of booting your primary operating system keep share a posts like this. 49ers Gold Jacket