Repair a damaged filesystem and mount it on demand
Scenario lfcs-sto-004 · about 7 minutes · 8 points · 6 grader checks
Recover an ext4 filesystem whose primary superblock is destroyed, then make autofs mount it read-only on first access.
- e2fsck
- superblock
- filesystem-repair
- autofs
- automount
What you will practise
- Recover ext4 from a backup superblock
- Configure an autofs master entry and an indirect map
- Mount a filesystem read-only on demand
Start this lab
With the CLI installed and signed in, this command provisions a fresh Ubuntu 24.04 LTS virtual machine on your Mac, applies the scenario setup and prints the task below.
goldenkube start lfcs-sto-004Task
The task text exactly as the CLI shows it. Solve it on the machine, then run goldenkube submit.
Requirements and details
- Certification
- LFCS · Linux Foundation Certified System Administrator
- Domain
- Storage
- Difficulty
- Hard
- Environment
- Single Linux VM
- Recommended time
- 7 minutes
- Points
- 8
- Grader checks
- 6
- Operating system
- Ubuntu 24.04 LTS
- Minimum CLI version
- 0.1.0
- Scenario version
- 1
- Published
Grading runs locally: 6 state checks read your machine when you submit; the scenario passes when every check passes. Hints, the reference solution and the check definitions are available only inside the CLI, not on this page.
More Storage labs
LVM volume group, two logical volumes and persistent mounts
Turn two block devices into a volume group, carve an ext4 and an XFS logical volume, and mount both persistently, one of them by UUID.
Single Linux VM · ~6 min · 8 points
- lvm
- ext4
- xfs
- fstab
- mount
goldenkube start lfcs-sto-001
Grow a logical volume online and share it over NFS
Extend a mounted logical volume and its filesystem without unmounting it, then export a directory read-only over NFS and mount the export persistently.
Single Linux VM · ~7 min · 8 points
- lvm
- lvextend
- resize2fs
- nfs
- exports
- fstab
goldenkube start lfcs-sto-002
Swap file, tmpfs and a device under I/O load
Add a persistent swap file and a size-limited tmpfs, then find the block device under constant write load and stop the service causing it.
Single Linux VM · ~6 min · 8 points
- swap
- tmpfs
- fstab
- iostat
- performance
goldenkube start lfcs-sto-003
Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.