The boot process is the sequence of steps a computer follows to start the operating system after it is powered on.
In Linux, the boot process initializes hardware, loads the kernel, starts system services, and finally provides a login prompt.
The system firmware (BIOS or UEFI) performs POST (Power-On Self-Test) and initializes basic hardware components.
It then looks for a bootable device such as a hard disk or SSD.
The bootloader (commonly GRUB) loads the Linux kernel into memory.
It allows you to select the OS or kernel version.
The Linux kernel is decompressed and loaded.
It initializes CPU, memory, device drivers, and mounts the root filesystem.
Initramfs provides temporary root filesystem needed to load required drivers before the real root filesystem is mounted.
The kernel starts the first user-space process: systemd (PID 1).
Systemd starts system services, mounts filesystems, and sets up networking.
Once all services are started, the system presents a login screen or command-line prompt.
Power ON
↓
BIOS / UEFI
↓
GRUB Bootloader
↓
Linux Kernel
↓
Initramfs
↓
Systemd (PID 1)
↓
Login Prompt
Cause: Corrupt kernel or misconfigured GRUB.
Fix: Boot into rescue mode or reinstall GRUB.
Cause: Missing drivers, corrupted filesystem, wrong kernel.
Fix: Boot using older kernel or recovery mode.
Check logs:
journalctl -xb
Cause: Filesystem mount failure.
Fix: Run filesystem check.
fsck -y /dev/sdXN
/boot/vmlinuz – Linux kernel/boot/grub/grub.cfg – GRUB configuration/etc/systemd/system – Systemd services