From the course: Linux: Kernels and Logging for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

GRUB overview

GRUB overview - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

GRUB overview

- [Instructor] CentOS 7 Linux uses GRUB version two as its boot loader. The GRUB configuration file is /boot/grub2/grub.cfg on BIOS-based systems, and on UEFI systems, it's at /boot/efi/EFI/redhat/grub.cfg. Let's take a look at the grub.cfg file using less with line numbers turned on. In a terminal, type in sudo less -N /boot/grub2/grub.cfg and hit Enter. Type in your password and hit Enter again. Notice at the top of the file it says "DO NOT EDIT THIS FILE." This file is auto-generated from templates in /etc/grub.d and settings from /etc/default/grub. Each section tells which template created it. The section starting at line 8 was created by the script at /etc/grub.d/00_header. It creates the GRUB menu header and sets up the screen. The section starting at line 86 contains the actual kernel choices that we see on boot up. All entries start with menuentry, and include options for the boot loader and kernel. Line 99 includes the name vmlinuz. This is actually the Linux kernel, and is…

Contents