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:
- 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.
- 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. - 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 (
/). - systemd (PID 1) — the kernel starts the very first process,
systemd. It starts all services — network, SSH, logging, your apps — in the right order. - 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.
More on Boot Process & Kernel
What is the difference between BIOS and UEFI booting?IntermediateWhat does GRUB2 do and where is its configuration?BeginnerWhat is the initramfs and why is it needed?AdvancedHow do you view and change kernel command-line parameters?IntermediateWhat is systemd and why did it replace SysV init?BeginnerWhat are systemd targets, and how do they map to old runlevels?Beginner