lunedì 15 settembre 2014

Change grub boot order in Debian

Here is a little tip:
If you have many OS on the same pc (dual boot) and you want to change the grub default choice follow these steps:
-run debian
-open terminal and type
gksu gedit
(this will start gedit, the default linux text editor with root privileges)
-in gedit open the file /etc/default/grub
-There should be a line like GRUB_DEFAULT=0  , you have to put the order number of the OS you want as default instead of 0.
The number of the order start from 0 not from 1
Here is an example:

0 debian
1 debian (recovery mode)
2 windows 7

so if you want windows 7 as default choice change GRUB_DEFAULT=0 to GRUB_DEFAULT=2
-to make the changes effective open the terminal as root (with su command) and type  update-grub
-now restart the pc and see if everything worked properly

I hope this tip will be useful to you, if you have any question please comment or send me an email to damianoandre@gmail.com

Bye, Dami
 

Nessun commento:

Posta un commento