Tech
Infected

Linux, OpenSource, Programming And Hacks

Aug 22, 2015

How to Change GRUB Boot Order in Ubuntu / Linux Mint

Aug 22, 2015

Let's see how to boot into a specific operating system by default in linux grub boot loader.
When you install a new copy of linux OS on your computer by default you get booted into your linux partition after a time interval. But let's say you have dual boot with windows and you would like to boot into windows instead.


1. Goto your linux os and open up the terminal and give this command to open your grub configuration file in nano editor.
sudo nano /etc/default/grub

2. Search for the line
GRUB_DEFAULT=0

and change it to
GRUB_DEFAULT=n

where n is the index where your windows loader is listed. Note that the index starts from 0. In the screenshot image above windows is there at no. 5 then you should change 0 to 4 (not 5)

3. Save the file and exit nano editor by pressing Ctrl+O then Enter then Ctrl+x

4. Now update grub by giving this command
update-grub

Done! now restart your computer to see effect.
you will notice that instead of linux your windows is being highlighted.

The Graphical way

If you don't prefer the command line way illustrated above, there is also a GUI app to do this task easily. its called grub-customizer it will make things more simpler

you can install it by

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

now search for grub customizer in the dash and launch it.

you can adjust your os position by selecting it and moving it up and down with the arrow keys given in the menu.









No comments:

Post a Comment