Linux Boot Process

Understanding the Linux boot sequence from BIOS/UEFI to login prompt, including bootloader configuration, init systems, and troubleshooting boot issues

Level
intermediate
Languages
en → en
Cards
53
Markdown
Linux Boot Process (.md)

Flashcards (53)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1What is the purpose of the /etc/fstab file?It defines how disk partitions and filesystems are mounted at boot.
2What is the significance of the 'boot.log' file?It contains logs related to the boot process.
3What does the 'journalctl' command do?It displays logs collected by the systemd journal.
4What is the purpose of the 'reboot' command?It restarts the system.
5What is the purpose of the 'emergency.target' in systemd?It provides a very minimal environment for emergency repairs.
6What is the role of the 'grub-install' command?It installs the GRUB bootloader to a specified device.
7What happens after the bootloader loads the kernel?The kernel initializes the system and mounts the root filesystem.
8What is a kernel panic?A critical error from which the kernel cannot safely recover.
9What is the difference between a daemon and a service?A daemon is a background process, while a service is a managed daemon.
10Name two common init systems used in Linux.systemd and SysVinit.
11What is the default target in systemd?The default target is the system's runlevel, typically 'graphical.target' or 'multi-user.target'.
12What is the significance of the kernel command line?It allows passing parameters to the kernel at boot time.
13What is a service in the context of Linux?A background process that performs specific tasks for the system.
14What is the purpose of the 'systemctl disable' command?It prevents a service from starting automatically at boot.
15What does the 'init' process do?It is the first user-space process started by the kernel, with PID 1.
16What is a bootloader password?A security feature that restricts access to bootloader options.
17What is the initramfs?A temporary filesystem used by the kernel during the boot process.
18How does systemd manage services?It uses units, which are configuration files that define services and their dependencies.
19What is the role of the /etc/init.d directory?It contains scripts for managing services in SysVinit.
20What command is used to start a service in systemd?systemctl start <service_name>.
21How can you troubleshoot a failed boot?Check logs in /var/log, use recovery mode, or boot from a live CD.
22What file typically contains the GRUB configuration?/boot/grub/grub.cfg.
23What is the purpose of the init system in Linux?To manage system processes and services after the kernel has booted.
24What is the purpose of the /etc/systemd/system directory?It contains user-defined unit files for systemd.
25What does 'chroot' do in a recovery scenario?It changes the root directory for the current running process.
26What does the 'systemctl list-units' command do?It lists all active units managed by systemd.
27What is the significance of the 'rescue.target' in systemd?It provides a minimal environment for troubleshooting.
28What is a runlevel in the context of SysVinit?A runlevel defines the state of the system, such as single-user mode or multi-user mode.
29What does the 'recovery mode' option do in GRUB?It boots the system into a minimal environment for troubleshooting.
30What is the purpose of the 'fsck' command?It checks and repairs filesystem inconsistencies.
31What is the purpose of the 'grub-reboot' command?It allows you to set the next boot entry for GRUB.
32What is the role of the 'systemd-analyze' command?It analyzes and displays the boot-up performance.
33What does the 'shutdown' command do?It safely stops all processes and powers down the system.
34What command is used to check the status of a service in systemd?systemctl status <service_name>.
35What is the role of the bootloader in the Linux boot process?The bootloader loads the Linux kernel into memory and starts it.
36What is the purpose of the GRUB configuration file?It defines the boot options and kernel parameters for the bootloader.
37What command can be used to view the kernel ring buffer?dmesg.
38What is the first step in the Linux boot process?The first step is the BIOS/UEFI firmware initializing the hardware.
39Name a common Linux bootloader.GRUB (GRand Unified Bootloader).
40What is the purpose of the 'modprobe' command?It loads or removes kernel modules.
41What is a bootable USB?A USB drive configured to boot an operating system.
42What is a kernel module?A piece of code that can be loaded into the kernel to extend its functionality.
43What does the 'systemctl enable' command do?It configures a service to start automatically at boot.
44What is the purpose of the /boot directory?It contains the Linux kernel and bootloader files.
45What is the significance of the 'initrd' image?It contains necessary drivers and modules for the initial boot process.
46What does the 'shutdown -r now' command do?It immediately reboots the system.
47What is UEFI?Unified Extensible Firmware Interface, a modern replacement for BIOS.
48What is the purpose of the 'grub-mkconfig' command?It generates a new GRUB configuration file.
49What command can be used to update the GRUB configuration?update-grub.
50What does BIOS stand for?Basic Input/Output System.
51What command is used to list loaded kernel modules?lsmod.
52What is the purpose of the 'init' system in Linux?To initialize the user space and manage system processes.
53What is a swap partition?A designated space on disk used as virtual memory.