The mandate
Change the boot order of the grub menu

Change the boot order of the grub menu

Category: Linux.
Posted by on the 23/01/2014.
Last update on the 24/01/2014.


This tutorial explains how to change the boot order of the grub menu.


This tutorial is intended for people under Debian or distributions based on it (Ubuntu, Xandros ...). All commands in this tutorial are executed as root. (su command). It does not require any prerequisites.

Modification of the boot order on the grub menu

To modify the boot order of the grub menu, we will modify the grub's configuration file. To do that, execute the following command:

nano /boot/grub/menu.lst or nano /boot/grub/grub.conf
or also nano /boot/grub/grub.cfg

What we need is on the beginning of the file:

menu.lst or grub.conf or also grub.cfg

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true

We just need to modify the line « set default » and put the entry number that we need. The first entry has the number 0, the second entry has the number 1 and so on and so forth.

Finally, we close the file, save it and restart the computer. You will see that the computer now start on the partition configured as default partition in the grub's configuration file

You like this tutorial ?
Like this website in order to promote it on facebook !

You like this tutorial ? Share it with your friends !
Partager sur Facebook Partager sur Twitter Partager sur Myspace Partager sur Stumbleupon Soumettre sur Reddit Partager sur Digg Ajouter à vos favoris Technorati Ajouter à vos favoris Live Ajouter à vos favoris Google Ajouter sur vos favoris Yahoo