Technology and General Blog

This tutorial points out how to change the grub boot order in Debian from the command line in a several effortless steps. The actions explained in this report are useful for other Debian-primarily based Linux distributions, including Ubuntu.

GRUB is a boot loader that makes it possible for customers to boot multiple functioning programs and kernel configurations. Following looking at this tutorial, you will know how to outline a distinct OS or kernel to boot by default and how to customise some boot selections.

In the image down below, you can see a grub menu with 3 products: Debian GNU/Linux, Sophisticated choices for Debian GNU/Linux, and Windows 10. Because the counting begins from zero, the to start with item (Debian) is , the 2nd product (Innovative options) is 1, and the 3rd merchandise (Windows) is 2.

By default, grub will boot merchandise . Therefore to adjust the boot get, you need to determine the quantity of products you want to boot by default in the grub configuration file /etcetera/default/grub.

Adjust grub boot order

To improve the boot order, prioritize a diverse OS or kernel configuration edit the file /etc/default/grub using any text editor you want. You can edit it employing nano, as revealed in the example underneath. Keep in mind, you need superuser privileges to edit the grub configuration file.

sudo nano /and so forth/default/grub

Find the following line

Edit the line changing by the product selection you want to boot by default. In my case, I want to improve the default boot to Windows. Consequently I established the third merchandise, 2 (simply because the depend starts from ).

If you are enhancing the file employing nano, exit conserving the modify by pressing CTRL+X and Y.

Then update grub by executing sudo update-grub as proven under.

As you can see now, Windows will boot by default.

Further settings you can edit from /etcetera/default/grub

You can edit additional settings outlined in the /and many others/default/grub configuration file.
As you can see in the pursuing picture, down below the line GRUB_DEFAULT=, there is the line GRUB_TIMEOUT=5. This line defines the time grub will wait till booting instantly. Exchange the 5 for the range of seconds you want grub to wait around. For instance, for grub to wait around 10 seconds to boot the GRUB_DEFAULT=, swap that line with the adhering to line.

The line GRUB_CMDLINE_LINUX_DEFAULT=”quiet” is employed to move kernel boot possibilities. In the screenshot over, the solution is “quiet”, which implies the boot method will be revealed in textual content manner as in the screenshot underneath.

The tranquil solution presents additional transparency to the boot method permitting the user to see techniques and realize success or fall short.

Another possibility you can pass to the line GRUB_CMDLINE_LINUX_DEFAULT=  is the alternative “splash”. If you change “quiet” with “splash” like in the line beneath, the boot procedure will not be displayed in text mode you will see a brand loading as an alternative, as revealed in the pursuing image.


Even if some individuals consider this option a greater structure (you can personalize it), this possibility doesn’t give buyers a live view of the boot method.

The line GRUB_CMDLINE_LINUX_DEFAULT= can also be utilized to boot the program in textual content manner. To boot in text manner, alternatively of quiet or splash, you have to have to use the choice text as proven in the screenshot underneath.


Exit saving the improve and run:

Disable the display screen manager making use of systemctl. In my situation, my screen manager is LightDM. Replace lightdm with your current display screen supervisor and run the command under.

sudo systemctl disable lightdm

Reboot in textual content method.

Now you can log in in textual content mode. If you want to launch a graphical session, run:

sudo systemctl start off

Exactly where should be replaced by your show manager name (e.g., gdm3).


As you can see, working with grub is quite simple, and you can control the way your process boots in a several measures any Linux person degree can learn. When working with it, the most popular oversight is not remembering to operate update-grub every single time the file is edited. Try to remember, when deciding upon the boot get, the counting commences from zero if you form a completely wrong purchase number, your procedure will not boot as expected.

The quiet solution at line GRUB_CMDLINE_LINUX_DEFAULT= may be greater than splash simply because it will allow the person to see the boot method transparently.

The final segment of this tutorial exhibiting how to boot from a terminal or console is helpful if your graphical environment fails to stop you from booting the process. Also, there are affiliated security bugs to the graphical boot method which is why some end users favor to boot their systems in textual content manner. This would be the good configuration for servers or gadgets which need to help save or improve means. The moment logged in textual content manner, customers can start out X manually with instructions startx or systemctl.

I hope this tutorial was valuable. Hold pursuing Linux Trace for far more Linux recommendations and tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *