Boot Process Flashcards

1
Q

boot process order

A

Firmware phase
bootloader phase
kernel phase
initialization phase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the primary job of the the bootloader program?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the kernel

A

central program of the operating system, providing access to hardware and system services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

explain the kernel phase

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

where is the default GRUB2 config file

A

/etc/default/grub

must run grub2-mkconfig afterwards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

change default system boot timeout

A

edit /etc/default/grub file
GRUB_TIMEOUT=8

execute grub2-mkconfig
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

reboot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

which files are the kernel in /boot

A

vmlinuz, initramfs, config, and System.map

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

where is cpu info and memory info stored

A

/proc/cpuinfo

/proc/meminfo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly