Explain the system boot up process?
BIOS/UEFI -> initializes hardware, POST occurs, then starting with CPU then copies BIOS/UEFI into RAM (then PCI bus and everything else)-> looks for checks for bootable media based off boot order
The systemd program searches for the default.target file, whichcontains details about the services to be started. It mounts the file system basedon the /etc/fstab file and begins the process of starting services. On mostsystems, the target will either be multi-user.target orgraphical.target.
What is it called when the system detects there has been a fatal error and responds to it?
Kernel Panic which can happen for a number of reasons and at any point during operation, but usually experienced during the boot process.
Common causes include the following:
Where are the GRUB config files located?
/boot/grub2/grub.cfg
How would you make changes to the grub.cfg file?
You don’t make changes directly to the grub.cfg file but to the
/etc/grub.d/{custom_cfg} which grub-mkconfig looks at and passes to grub.cfg which will check for errors in custom file and decided to load or not
grub-mkconfig -o {specify_path}
What is the boot loader and it’s components?
Small program stored in the ROM that loads kernel from a storage device. Note that the boot loader is able to protect the boot process with a password to prevent unauthorized booting of the system.
Boot loader uses three main components:
What are some additional boot options?
“Boot from ISO” - An ISO image is a system image, originally that of an optical disc. Today, it is commonly used to to construct VMs and as a file format for packaging and distributing images of OS that users can boot from, as well as use to install the OS.
“PXE” - Pre-boot Execution Environment (PXE) is a part of the UEFI standard that enables a client to retrieve the necessary boot loader and system files from a server over the network.
“Boot from HTTP/FTP” - Clients acquire boot data over a network from content delivery protocols like Hypertext Transfer Protocol(HTTP) and File Transfer Protocol (FTP). Typically faster, more reliable, and secure than the standard TFTP protocol used in PXE.
“Boot from NFS” - Network boot option. A client will mount an NFS share as its root file system that the client can retrieve the files from. DHCP, TFTP, and other network protocols can be used.
What is a Sector?
What are the three Major disadvantages?
1 Maximum storage space is two terabytes
2 Can only have a maximum of four primary partitions
3 Boot data is stored in one sector, which increases risk of corruption
What is a Raw Partition and how is it useful?
What command allow you to create a image for preloading the kernel modules?
mkinitrd - The syntax of the mkinitrd command is mkinitrd [options] {initrd image name} {kernel version}
Options:
–preload={module name} Load a module in the initrd image before theloading of other modules.
–with={module name} Load a module in the initrd image after the loading of other modules
-f Overwrite an existing initrd image file
–nocompress Disable the compression of the initrd image
What is the dracut command used for?
used to generate an initramfs image
example: dracut /boot/initramfs-$(uname -r).img $(uname -r)
What are some improvements of GRUB 2?
How would you install GRUB 2?
grub2-install is used to install the GRUB 2 boot loader but this applies to BIOS systems, not UEFI. The syntax of the grub2-install command is grub2-install [options] [device name],
To install GRUB 2 on a UEFI system, use a package managerto install the grub2-efi package