By default, the boot loader is the first program to boot when you turn on your computer, i.e., it starts for the operating system. In fact, the charger is responsible for starting up the operating system. If there is no boot loader, it is technically impossible to boot the operating system, so you will not have access to the computer system. This program is presented to us by GNU.

Initially, the program was only developed for Linux-based systems, but now it supports various operating systems, including MacOS, Windows, BSD and Solaris. Most users only become acquainted with the Grub Boot Loader after installing various operating systems on their computer. This essentially forces the Grub Boot Loader to display a boot menu that allows you to explicitly choose the operating system you want to boot.

In this article we would like to give you a complete guide to Grub Boot Loader, based on the configuration of this program according to your choice. Once you’ve gone through this guide, you’ll be in a great position to customize the Grub Boat Loader to your exact needs.

Pay attention: For the full Grub Boot Loader tutorial we used Linux Mint 20. However, any other desired Linux distribution can also be used for this purpose.

Method of placing a stone loader

Grub Boot Loader has a settings file that contains all the default settings used by Grub Boot Loader. However, we have the freedom to adjust these parameters as we see fit. Therefore, in what follows we will introduce some methods to configure the Grub Boot Loader by making changes to the parameter file of the Grub Boot Loader.

Save the /etc/default/grub file before configuring Grub Boot Loader.

Before changing the GRUB boot loader preference file, it is highly recommended that you back up the file so that even if you make a mistake during the process, you can return to the default settings. But before saving the Grub Boot Loader settings file, let’s see what this file looks like.

First we need to start up the Linux Mint 20 terminal, which we can easily do by clicking on the link. For your convenience we have also included the image of the Linux Mint 20 terminal below:

We will now try to display the content of the /etc/default/grub file by executing the following command in the terminal window that just started:

The /etc/default/grub file is shown in the following figure:

We can save this file by executing the following command in our :

sudo cp /etc/default/grub/grub.bak

To execute this command correctly, you must have root privileges. Here, /etc/default/grub presents the original configuration file of the grub bootloader, while /etc/default/grub.bak presents a backup of this file. The cp command requires a backup of the parameter file.

Now, to check whether the backup file is an exact copy of /etc/default/grub or not, we will try to display the content by executing the following command in our terminal :

cat /etc/defekt/grub.bak

When you execute this command, the content of the file /etc/default/grub.bak will be displayed on your terminal, as shown in the following figure. You can compare the content of the /etc/default/grub file with the content of the /etc/default/grub file to make sure both files have the same content. After successfully saving the configuration file, we can start configuring the grub bootloader.

Method of selecting the standard operating system Grub

Sometimes we have multiple operating systems installed on our computer. During the boot process, Grub Boot Loader provides us with a menu that allows us to select the operating system to boot. We can make this choice within the time limit, after which Grub Boot Loader will automatically start the standard operating system. However, if we are sure we want to boot a particular operating system every time we turn on the machine, and if we want to save ourselves the trouble of choosing an operating system at boot time, we can specify the default operating system in /etc/default/grub. Every time we turn on our computer system, the operating system we have chosen is automatically loaded.

To do this, we need to open the /etc/default/grub file with a word processor of your choice, preferably a nano processor. You can do this by executing the command below in our terminal:

sudo nano /etc/defect/grub

Since we are trying to access the grub bootloader configuration file, this action requires root user rights, which can be assigned by entering the sudo keyword for the above command.

If we open the /etc/default/grub file with a nano editor, we need to find the line GRUB_DEFAULT This line tells the grub bootloader which operating system to load during the boot process. The numbering of the operating systems starts with 0. This means that if you want to boot the first operating system in the list of offered operating systems, you have to set GRUB_DEFAULT to 0, as we did in our case. This is also emphasized in the following illustration:

Sometimes you don’t know the exact number that matches the chosen operating system, i.e. you don’t know in what order the Grub Boot Loader presents the operating systems in its menu. In this case, you need to know the full name of the operating system of your choice and you can set GRUB_DEFAULT to GRUB_DEFAULT. In our case we set this value to Linux Mint 20, as shown in the figure below. After making these changes, press Ctrl+X to save and close the file.

When you make changes to /etc/default/grub, you must update Grub to reflect the new changes. You can do this by executing the following command in the terminal:

After running this cmdlet, Grub will refresh itself after a few seconds and you will see the message done (as shown in the figure below), indicating that your changes have been made successfully.

Method for changing the background of the Grub Boot Loadermenu.

The Grub Boot Loader’s menu background looks pretty boring by default, but you don’t have to worry about it because you can change it at any time. To do this, we need to repair the /etc/default/grub file a bit, as follows

To change the background of the Grub Boot Loader menu, we have saved a jpeg image in our home folder that we want to use as a new background. You can also use a png or jpg image file. This new background image is called BootLoader.jpeg, as shown in the figure below:

We also opened this image to show you what the Grub Boot Loader menu will look like after we created this background image.

We will now reopen the /etc/default/grub file in a nano editor with the same command as in the above method. This time we add a new field to this folder, which looks like this


Here you need to replace ImageFilePath with the actual path where your new background image is located. In our case it was /home/kbuzdar/BootLoader.jpeg, as shown in the figure below:

Now save and close the file. Then you’ll need to update Grub again, so he can read the changes you just made. If you update Grub with the same assignment as described above, you can check whether Grub has been updated by seeing the completed message at the end of your terminal, as shown in the following image:

Procedure for changing the boot time of the selected operating system

If only one operating system is installed on your computer, the default timeout value in the harvest loader menu is 0, which means that the only operating system you have installed will boot up as soon as you turn on your computer system. However, if you have more than one operating system installed on your computer, the default timeout value is 10, i.e. the Grub Boot Loader menu will appear for 10 seconds, allowing you to boot up any operating system. At the end of the timeout period, the Grub Boot Loader automatically starts the standard operating system. We can always increase or decrease this time field, depending on our needs.

To change the download time, we need to reopen the /etc/default/grub file with the nano editor. This time we find the field GRUB_TIMEOUT and give it the value of our choice (in seconds). For demonstration purposes, we have set this value to 5 seconds, as shown in the figure below:

Again, we need to save our /etc/default/grub file, close it and then update Grub so it is fully aware of the changes we just made. You can check if Grub has read all these changes by looking at the message on your terminal, as shown in the following image:

Check that all of the above changes occur.

The time has come to check whether or not all the changes we have made to the above methods have been implemented. To do this, we will restart our system and once it is up and running, we will continue pressing the Escape key until we get to the Grub Boot Loader menu. If we enter this menu, we see that the background image of the Grub Boot Loader has changed, as can be seen in the figure below :

Also in our case the Grub Boot Loader menu appeared for 5 seconds, which is the timeout value we set for this menu, after which it started the default operating system, which in our case was Linux Mint 20.


This article gives you a short overview of the Grub Boat Loader and the purpose of its use. We have explained where this program stores all its configurations. Imagine also the /etc/default/grub backup method, i.e. the grub preferences file, so you can easily make changes to your configuration without having to worry about it, since you can always restore all the default settings from the backup preferences file. To demonstrate the configuration method of the Grub Boot Loader, we also presented three different examples: 1) Select the default operating system. 2) Change the background of the Grub Boat Loader menu. 3) Change the timeout in the Grub Boat Loader menu.

We have explained these cases, setting out step-by-step procedures to achieve all these objectives. In the same way, you can change other settings in the settings file of the Grub Boot Loader. Finally, we checked if the changes in /etc/default/grub have taken place by restarting our system and calling up the menu of the Grub Boot Loader. I hope this tutorial is a good starting point for your own experiences with the Grub Boat Loader.

grub2-mkconfig command not found,grub-mkconfig ubuntu,grub-mkconfig debian,grub-mkconfig vs update-grub,grub2-mkconfig rhel 7,grub2-mkconfig fedora,grub2 menuentry examples,grub2 manual pdf,grub2 windows 10,what is grub2 bootloader,menu lst example,grub example,gnu grub version 2.04 ubuntu,grub2 download,grub commands,grub linux,gnu grub boot windows,grub_gfxmode=1920×1080,grub resolution 4k,grub_disable_submenu,vbeinfo,grub-mkconfig arch,failed to get canonical path of 'airootfs,grub_timeout_style,/etc/default/grub missing,grub timeout 30 seconds,grub default saved,grub customizer,how to make grub pretty,uefi linux mint,mint update-grub,linux mint 19 boot-repair,optimizing linux mint,make cinnamon faster,gnu grub boot,grub2-install,grub-mkconfig command not found,grub2-mkconfig centos 7,grub2-mkconfig command not found ubuntu,grub2-mkconfig command not found centos 7,update-grub

You May Also Like

Health Practice Loses Patient Data in Ransomware Attack, Tells Clients to Call Before Visiting – HOTforSecurity

Alamance Skin Center, a Cone Health practice in Burlington in the US…

Do you know how to plant rice?

If you think it is only planted in water, you are wrong. Gérard…

Using Exit Function in VBA

First of all, make sure you understand what a function is and…

[7 Ways] Fix “Unfortunately, WhatsApp Has Stopped” On Android

Your WhatsApp is stuck on an error. Unfortunately, WhatsApp has been arrested.…