How to change Grub boot order in Ubuntu Linux – quick and easy?

Steps to change Grub boot order on Ubuntu Linux with Grub Customizer

This program allows you to configure the Grub menu and change various aspects. Without it, it would be necessary to use a terminal and enter different commands to perform different functions.


The first thing to do is install Grub Customizer. For this, you must enter a command terminal by pressing the “Ctrl”, “Alt ” and “T ” keys at the same time.original ubuntu icon

In the terminal you must write the command “sudo add-apt-repository ppa: danielrichter2007 / grub-customizer” and execute it. Then we will proceed to execute the following command, “sudo apt update”. Finally, only “sudo apt install sudo grub-customizer” will be missing . With the execution of this command, the program to modify and configure the Grub menu will have been installed.


Changing the order of the boot menu

To start the change in order, the Grub Customizer program must first be run from the launcher . This, because it needs administrator permissions, will ask for the password if it is available.

On the main page of this program, a list will appear at the bottom of the toolbars and settings. This list refers to the order of the Grub menu when you turn on the computer.

To modify your order, you just have to drag it by pressing the click and give it the position you want. Once all the modifications have been made, the save box must be pressed and after that restart the computer to apply the changes.

Keep in mind that if an error occurs you can always recover the grub in Ubuntu Linux , using bootrepair.

Steps to change Grub boot order in Ubuntu Linux from command terminal

This method of changing the boot order is more complex, however, it does not require the installation of any external program, since it is done directly from the Ubuntu terminal.

For this, you must run a text terminal such as Root, insert the following command “nano / etc / default / grub” and execute it. Then the configurable items of the Grub menu will appear. In the terminal you will find a parameter titled “GRUB_DEFAULT” and it will have a numeric value next to it. Generally this is 0 or 1.

This parameter indicates which position the menu will take to automatically choose the operating system that is in that place. To define another parameter, you must first know how the operating systems are organized in this menu at startup.

ubuntu icon and package

After having this data, we will proceed to change the number of the previously mentioned parameter for the position that we want to execute automatically when starting. It should be noted that this parameter takes the beginning of the account at 0 and not at 1, so if the desired operating system is in position 3, the numerical value 2 must be placed.

Finally, you can change the time it will take for it to automatically choose by modifying the value of the “GRUB_TIMEOUT” parameter , which is expressed in seconds.

To finish the process of changing the Grub boot order in Ubuntu Linux, you must save the changes and close the Grub configuration window. After that you must enter “Update-grub2” in the command terminal as root.

With that you no longer have anything to learn, now you can go and find more information such as how to change the forgotten root password , which is also done from grub.

Leave a Reply

Your email address will not be published.

Back to top button