A colleague moved the site cache into memory: they added a line for /srv/cache to /etc/fstab, checked the table and rebooted the server. The server did not come back into service. Your machine has the same line: check the table yourself and reboot the machine.
Check the table and reboot the machine
Look at the last line of /etc/fstab and check the table with sudo findmnt --verify. Then reboot the machine with sudo reboot, and when the boot stops, ask the system about its state: systemctl is-system-running.
First, predict
What will findmnt --verify say about the table with this line?
Now start the exercise, run the command and compare your prediction with the output.
How did the boot end after the reboot?
-
The boot ended with the
You are in emergency modemessage and a root prompt: the machine waits for commands and answers them. -
There was a single reboot:
journalctl --list-bootsshows the previous boot and the current one, which sits in emergency mode. -
There was no student login: the prompt is
root@ubuntu:~#, andsystemctl is-system-runningprintedmaintenance.
The boot stopped in emergency mode, and a root shell opened on the console.