Pcornel
Linux · Boot Process

systemd Boot

Cheat sheet · https://pcornel.dk/topic.php?topic=2733

Back to the Topic

Answer

systemd as PID 1 starts the system after the kernel: it mounts filesystems from fstab, starts units in parallel by dependency and reaches the default target.

Remember

systemctl is-system-running = degraded means some unit failed. systemd-analyze blame lists slow units; critical-chain shows what the boot waited for. A failing /etc/fstab entry often causes emergency mode — use nofail for non-critical mounts.

First checks

  • systemd-analyze blame — slowest units
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used

Commands

systemctl --failed
journalctl -b -p err

Verify in this order

PID 1 starts → mounts from fstab → units started in parallel by dependency → default target reached

Where it usually breaks

First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2733

Confirmation

Confirm action

Continue?