Describe the overall boot process
What are boot logs?
Logs created when computer is booted up.
what is dmesg?
Utility used to view recent log messages from the kernel ring buffer
what is POST?
performed immediately after a device is turned on. performed by firmware and checks hardware components.
what is journalctl?
utility to read logs. Logs read from a journal (/var/log/journal or /run/log/journal OR if wanting to see kernel-specific logs, use journalctl -k )
usually reads logs from its own journal daemon.
Where are logs stored in a RedHat distro?
/var/log/boot.log
Where are logs stored in a Debian distro?
/var/log/boot
what is a kernel ring buffer?
where boot kernel messages are stored in memory. it is circular and set to a predetermined size.
what is firmware?
software that provides low-level control of hardware
Steps of a BIOS startup:
POST
BIOS finds the bootloader by locating the MBR.
What is a MBR?
Holds the bootloader program.
where is MRB?
first sector on the first hard disk partition
From where can you load the bootloader program in a BIOS system?
internal/external hard drive
CD/DVD
USB
network server
what is chainloading?
when a bootloader program points to another bootloader program.
Steps of a UEFI startup?
What is the ESP?
EFI system partition
special disk partition so now you can load multiple bootloaders or bootloaders of any size.
Where is ESP located?
/boot/efi
how to check if your system is a UEFI system or not?
ls /sys/firmware/efi
what is a bootloader?
bridge the gap between the system firmware and the full Linux operating system kernel. responsible for booting up the OS.
Grub legacy menu commands stored where?
/boot/grub
grub legacy config file is named what?
menu.lst or sometimes grub.conf
two sections in the grub legacy config file?
global definitions and OS boot definitions
example of global definitions in grub legacy config file?
color, default, timeout
examples of OS boot definitions in grub legacy config file?
Title, Root, kernel, Initrd, rootnoverify