课程: Linux: Kernels and Logging for System Administration (2017)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
GRUB overview - Linux教程
课程: Linux: Kernels and Logging for System Administration (2017)
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…