Recover a Linux Host That Fails During Boot
8 steps · about 2 h 27 min · Intermediate
- Map the systemd boot sequence (doc, systemd, 18 min)
A recovery attempt is faster when you know which targets and generators run before the failure becomes visible.
- Learn the recovery kernel switches (doc, systemd, 16 min)
Kernel parameters can select an emergency target or change logging without first reaching the installed userspace.
- Start a targeted debug shell (doc, systemd, 14 min)
A debug generator can expose a shell at a chosen boot point without permanently weakening the machine.
- Inspect failed targets and dependencies (doc, systemd, 22 min)
Special boot targets turn a vague boot stop into a concrete service, mount or recovery-stage problem.
- Know where failed-boot logs survive (doc, systemd, 20 min)
Journal storage and forwarding settings determine whether evidence from a failed attempt remains available after reboot.
- Recognise early userspace failures (doc, Linux kernel documentation, 15 min)
Kernel init behavior explains failures that occur before systemd can start or record a normal unit log.
- Repair a filesystem deliberately (doc, Linux man-pages, 14 min)
Filesystem checks must be run against the right, unmounted target with a clear understanding of exit codes.
- Gate startup on a clean boot result (tutorial, systemd, 28 min)
An explicit boot-success check helps confirm the durable repair before dependent work resumes.