Linux Labs

Inside the system: resources, kernel, processes / Stage 11 of 13

The system did not boot: emergency mode

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 7 · lab · 20 minmedium

The machine after a reboot

The power went off at night, and the reports machine did not come back into service — the console shows emergency mode. Find what stopped the boot, fix it and make the machine boot by itself with the reports in place.

Situation

The power in the server room went off at night. After it came back, the shop's reports machine did not return to service: its console shows emergency mode. The reports live on a separate disk that is mounted at /srv/reports.

The terminal is now this machine's console. If you see no prompt, press Enter.

Task

Bring the machine back into service so that it boots by itself:

  1. After a reboot the machine boots into the normal mode, without emergency mode: systemctl is-system-running gives running.
  2. The reports disk is sound, and the check at boot passes. Do not create the disk anew and do not change the /srv/reports line in /etc/fstab: the check at boot and the required mounting of the disk stay.
  3. /srv/reports is mounted from the reports disk, the 2026 reports in /srv/reports/2026 are intact.

In emergency mode you are root, sudo is not needed. "Check" answers in emergency mode too, but it counts a boot that went without it: after the fix, reboot the machine — systemctl reboot.

There is no internet on the machine.

Lab · on your own

No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.

Goals

0 of 3
  • After a reboot the machine boots into the normal mode, without emergency mode (systemctl is-system-running — running) — not done yet
  • The reports disk is sound and the same one (not created anew), the check at boot passes — not done yet
  • /srv/reports is mounted from the reports disk, the 2026 reports are intact — not done yet
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab goals

0 of 3
  • After a reboot the machine boots into the normal mode, without emergency mode (systemctl is-system-running — running) — not done yet
  • The reports disk is sound and the same one (not created anew), the check at boot passes — not done yet
  • /srv/reports is mounted from the reports disk, the 2026 reports are intact — not done yet
node1 Ubuntu 24.04

Lab goals

0 of 3
  • After a reboot the machine boots into the normal mode, without emergency mode (systemctl is-system-running — running) — not done yet
  • The reports disk is sound and the same one (not created anew), the check at boot passes — not done yet
  • /srv/reports is mounted from the reports disk, the 2026 reports are intact — not done yet
Loading…