Boot Process Flashcards
boot process order
Firmware phase
bootloader phase
kernel phase
initialization phase
what is the primary job of the the bootloader program?
find the Linux kernel code in the /boot file system, decompress it, load it into memory based on the config defined in /boot/grub2/grub.cfg or /boot/efi for UEFI
what is the kernel
central program of the operating system, providing access to hardware and system services
explain the kernel phase
extracts Initial RAM disk (initrd) found in /boot
mounts initrd to /sysroot temporarily
Loads necessary modules from initrd image
allows access to physical disks and partitions
loads drivers to support boot process
unmount initrd and mount actual root file system on /
executes systemd with PID 1
where is the default GRUB2 config file
/etc/default/grub
must run grub2-mkconfig afterwards
change default system boot timeout
edit /etc/default/grub file
GRUB_TIMEOUT=8
execute grub2-mkconfig
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
which files are the kernel in /boot
vmlinuz, initramfs, config, and System.map
where is cpu info and memory info stored
/proc/cpuinfo
/proc/meminfo