What is the sequence of the Linux boot process?
BIOS/UEFI → MBR/Bootloader → Kernel Initialization → Init System & Services.
What is POST in BIOS?
Power-On Self Test; checks hardware integrity before loading the OS.
Where is the Master Boot Record located?
In the first 512 bytes of the bootable storage device (e.g., /dev/sda).
What does the first 446 bytes of the MBR contain?
Primary bootloader code.
What tool is responsible for loading the Linux kernel?
GRUB (Grand Unified Bootloader).
What is the purpose of GRUB Stage 2?
It provides the user interface and reads configuration from /boot/grub/grub.cfg.
What does the Linux kernel do after decompression?
Detects hardware, sets up memory management, loads drivers, and mounts the root filesystem.
What is initramfs used for?
Temporary root filesystem that loads drivers and mounts the real root filesystem.
What replaced SysV init in modern Linux systems?
systemd, using targets instead of runlevels.
What command shows the current runlevel?
who -r
What does /etc/fstab define?
Filesystem mount points and options.
How can you mount all filesystems listed in /etc/fstab?
mount -a
What is single-user mode used for?
System recovery and maintenance tasks.
What is rescue.target in systemd?
Single-user mode for maintenance with minimal services.
What are common causes of a kernel panic during boot?
Missing initrd, incorrect root device, hardware failure, or corrupted kernel image.
How can you rebuild initramfs?
update-initramfs -u
How can you rebuild the GRUB configuration?
update-grub
What command visualizes boot performance?
systemd-analyze plot > boot.svg
How do you check the total boot time?
systemd-analyze
What command lists slowest boot services?
systemd-analyze blame
What is the difference between initrd and initramfs?
initrd uses a block device filesystem; initramfs uses a cpio archive in RAM.
What mode does the CPU operate in during BIOS execution?
Real mode (16-bit).
How does the system switch from real mode to protected mode?
Loads the Global Descriptor Table (GDT) and sets a bit in CR0 register.
How can you enter single-user mode from GRUB?
Append ‘single’ or ‘systemd.unit=rescue.target’ to kernel parameters.