Mount a New Data Volume
Format and persistently mount a new disk attached to a production server.
A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
A new disk has been attached. The app expects storage at /data/uploads. A wrong /etc/fstab entry will make the server unbootable — use UUID-based mounting.
Your tasks:
- Verify the disk with lsblk
- Format as ext4: mkfs.ext4 /dev/loop0 (the lab provides a loop device)
- Create the mount point: mkdir -p /data/uploads
- Get the UUID: blkid /dev/loop0
- Add a UUID-based entry to /etc/fstab
- Mount with: mount /dev/loop0 /data/uploads
- Verify with df -h that /data/uploads is mounted
- Run check to validate