4.2.1 Flashcards
The following commands can be used to view the version of GRUB used by the Linux distribution you have installed. The actual command used will vary between distributions
grub-install -V or grub-install –version
grub2-install -V or grub2-install –version
The configuration files for GRUB2 are
/boot/grub/grub.cfg or /boot/grub2/grub.cfg
Depending on the distribution, the update-grub or grub2-mkconfig commands generate the
configuration files
Some distributions, such as Fedora and Centos, create an /etc/grub2/grub.cfg file. This file is a symbolic link to the
/boot/grub2/grub.cfg file
The /etc/grub.d/ directory holds script files that are read when the ______________ or the ____________commands are used
update-grub or the grub2-mkconfig
Sets initial appearance items, such as the graphics mode, default selection, timeout, etc. These settings are typically imported from the /etc/default/grub file.
00_header
Identifies all Linux kernels installed on the root device and creates corresponding GRUB2 menu entries for each one. This allows you to select which Linux kernel you want to load when you initially boot the system
10_linux
Executes os-prober to search for other operating systems (such as Microsoft Windows) and automatically creates GRUB2 menu items for them.
30_os-prober
Allows for custom menu entries, which are imported directly into /boot/grub/grub.cfg without any changes.
40_custom
Sets the default menu entry
GRUB_DEFAULT
Sets the last selected OS from the menu as the default OS on the next boot
GRUB_SAVEDEFAULT
Determines how long a blank screen will be displayed.
GRUB_HIDDEN_TIMEOUT
Works in conjunction with the GRUB_HIDDEN_TIMEOUT parameter.
GRUB_HIDDEN_TIMEOUT_QUIET
Determines how long to wait for user interaction before booting the default operating system
GRUB_TIMEOUT
Passes options to the kernel. With the GRUB Legacy bootloader, this was done by adding options to the end of the kernel line
GRUB_CMDLINE_LINUX
Sets the background image during the GRUB2 menu display.
GRUB_BACKGROUND
Sets the resolution of the graphical GRUB2 menu.
GRUB_GFXMODE
Enables and disables the os-prober check of other partitions for operating systems, including Windows and Linux, during execution of the update-grub command.
GRUB_DISABLE_OS_PROBER
These passwords prevent a person from accessing the bootloader menu without knowing the password. can be implemented on one or all of the available boot menu options.
bootloader password
These passwords allow you set low-level passwords to restrict people from booting the computer, booting from removable devices, and changing BIOS or UEFI settings without knowing the password.
UEFI/BIOS