As you know, GRUB 2 is the default boot loader for most Linux operating systems. GRUB is the acronym for GRand Unified Bootloader, which is the first program to be loaded when Linux starts, and then it is responsible for loading and giving control to the Linux kernel, which is the responsibility of the Linux kernel to initialize the rest of the operating system. In this article, we will describe the important configuration of the Ubuntu 16.04 LTS Desktop Grub 2 boot loader, and of course the operations and configuration are also common to the Grub configuration in other Linux distributions.
GRUB 2 boot loader settings
The default configuration file for GRUB 2 is /boot/grub/grub.cfg, which is a very important file in the Linux boot boot process, and you should not edit or modify this file directly unless you are already familiar with it. All settings for Grub 2 are stored in the /etc/default/grub file by default, and changes to its contents are directly fed back to GRUB 2. For the sake of insurance, we will first back it up:
/ etc / default / /etc/default/grub. Bak
Let's take a look at the main options for the GRUB boot loader:
/ etc / default / Grub
Each time you edit the profile, you need to execute the following command to apply the changes to GRUB 2:
sudo update - Grub
Here we start with three important tuning tweaks to the GRUB2 boot loader.
1. Select the default operating system
To speed up the boot process, the user can manually specify from which system to start booting by default. A setting of 0 indicates that booting starts from the first system in the GRUB menu, and if set to 1 means booting from the second entry, and so on.
If you have more than one operating system installed, you can use the grub_default=saved parameter to boot from the last system, and every time you restart your computer, it will start directly from the last system. Note: This feature also needs to be combined with a grub_savedefault=true entry to take effect.
In order not to count the number and convenient configuration, you can also directly specify the name of the default boot system grub boot, such as your Grub menu has "lubuntu14.04 lts" entries, you can directly specify grub_default=lubuntu 14.04 LTS starts Lubuntu by default.
2. Set the time-out period
By default, the Start menu stays at 10 seconds for the user to select. The user can grow or shorten the wait time directly in the configuration file, if the grub_timeout is set to 0, the Ignore menu is directly guided by the default operating system selected in the previous step.
3. Change the grub background image
To change the GRUB background picture is very simple, just copy the prepared picture to the /boot/grub/ path.
GRUB supports only 265-color jpg/jpeg format images, so we recommend using PNG images.
After the background picture is replaced, remember to execute sudo update-grub to make it effective.
Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/
How to configure Ubuntu 16.04 GRUB 2 boot loader