hafeez@unixshadow:~$ journalctl –list-boots | head -1 # what actually happens at boot
Linux Boot Sequence
From Power-On to Login Prompt
seven stages, as the kernel would tell it — no steps skipped.
[1/7] FIRMWARE — UEFI takes over
Power-On Self-Test: CPU, RAM and devices probed and initialized. Boot entries read from NVRAM;
grubx64.efi loaded from /boot/efi.Breaks here: no boot entry → firmware setup, check NVRAM / EFI partition.
▼
[2/7] BOOTLOADER — GRUB 2
/boot/grub2/grub.cfg parsed, boot menu rendered; kernel + initramfs loaded into memory.Breaks here: bad GRUB entry → grub rescue prompt.
▼
[3/7] KERNEL LOAD — vmlinuz takes the CPU
/boot/vmlinuz-* decompressed; /boot/initramfs-*.img unpacked — early userspace with the drivers needed to find your disks.Breaks here: missing initramfs → kernel panic (see the initramfs rebuild post).
▼
[4/7] KERNEL INIT — start_kernel()
Memory management, scheduler and device drivers up; real root mounted,
switch_root pivots off the initramfs.Breaks here: failed mount → emergency shell, check
/etc/fstab.▼
[5/7] INIT SYSTEM — systemd, PID 1
Kernel executes
/sbin/init → systemd becomes the first userspace process; default target read — usually multi-user.target or graphical.target — units start in parallel, honoring dependencies.▼
[6/7] TARGETS — userspace comes alive
sysinit.target: mounts, udev, hostname, machine ID; then basic.target → multi-user.target: networking, sshd, cron, logging — daemons online.▼
[7/7] LOGIN — runtime reached
getty spawned on virtual consoles; login prompt ready. Reached multi-user.target. Authenticate, get a shell — system is fully at runtime.$ ls — key files
$
/boot/efi/EFI/*/grubx64.efi$
/boot/grub2/grub.cfg$
/boot/vmlinuz-*$
/boot/initramfs-*.img$
/etc/fstab$ — key commands
$
dmesg | less$
journalctl -b$
systemd-analyze blame$
systemctl get-default# root tip: slow boot?
systemd-analyze blame shows which units ate your boot time;systemd-analyze critical-chain finds the chain holding everything up.unixshadow.com · VPS & hosting from the shadowshafeez@unixshadow:~$
