Linux Labs

Storage / Stage 2 of 11

Mounting and fstab

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 7 · lab · 20 minmedium

/data is empty after a reboot

After a reboot the service cannot find its data: /data is empty. Mount the data disk so that it also mounts at boot.

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.

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 4
  • mount -a completes without errors — not done yet
  • The service's data disk is mounted at /data — not done yet
  • The disk mounts at /data from its /etc/fstab entry and survives a reboot — not done yet
  • The service's files on the disk 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 4
  • mount -a completes without errors — not done yet
  • The service's data disk is mounted at /data — not done yet
  • The disk mounts at /data from its /etc/fstab entry and survives a reboot — not done yet
  • The service's files on the disk are intact — not done yet
node1 Ubuntu 24.04

Lab goals

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