Interview Prep/Linux/Boot Process & Kernel

Walk through the Linux boot process from power-on to login prompt.

BeginnerConceptBoot Process & Kernel
Answer

In one line: When you switch on a Linux machine, control passes like a relay race: firmware → bootloader → kernel → systemd → login prompt.

Step by step, in simple words:

  1. Firmware (BIOS or UEFI) — the small program built into the motherboard. It checks the hardware (this check is called POST) and looks for a disk it can boot from.
  2. Bootloader (GRUB2) — the firmware hands over to GRUB. GRUB shows the boot menu and loads two files into memory: the kernel (vmlinuz) and a small temporary filesystem called the initramfs.
  3. Kernel — the core of Linux starts. It sets up the CPU, memory and drivers, and uses the initramfs to find and mount the real root disk (/).
  4. systemd (PID 1) — the kernel starts the very first process, systemd. It starts all services — network, SSH, logging, your apps — in the right order.
  5. Login prompt — when the target state is reached, you get a login screen (or an SSH login on a server).

Example — see this on a real server:

systemd-analyze          # how long firmware, bootloader, kernel and services took
dmesg | head             # first kernel messages from this boot
journalctl -b | head     # logs from the current boot

Tip for interviews: say the five stages in order first, then mention that if a server won't boot, you check which stage failed — for example, "it stops at GRUB" means a bootloader problem, while "it reaches the kernel but can't find root" points to an initramfs or disk problem.

All Linux questions Roadmap: Linux

More on Boot Process & Kernel