Recover a Linux Host That Fails During Boot

8 steps · about 2 h 27 min · Intermediate

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.