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