Linux Labs

Storage / Stage 2 of 11 · step 6 of 7

/data is empty after a reboot

medium ~20 min
Not running Starting usually ~20 s
Report a problem

Situation

A service keeps its data on a separate disk that is mounted at /data. After a server reboot the service cannot find its files: the /data directory is empty.

Task

Make sure that:

  1. sudo mount -a completes without errors;
  2. the service's data disk is mounted at /data, with its files in place;
  3. the disk mounts at /data from its /etc/fstab entry, after a reboot too.

Constraints

  • The data on the disk is needed: do not format it or recreate the service's files.

The tools you need are already installed. There's no internet on this machine.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 4
  • mount -a completes without errors — not checked yet
  • The service's data disk is mounted at /data — not checked yet
  • The disk mounts at /data from its /etc/fstab entry and survives a reboot — not checked yet
  • The service's files on the disk are intact — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…