Hands-on Lab·Linux Foundation Certified System Administrator
Mounting filesystems and making them survive reboot
A filesystem that is not mounted does nothing, and an fstab line that is wrong can stop a machine booting. This guide mounts a filesystem three different ways, writes the fstab entry properly, verifies it before trusting it, and shows what to do when an unmount is refused.
Storage Guide 32 of 38 Beginner
- OSUbuntu 26.04 LTS
- LVM2.03.31 (Ubuntu) / 2.03.36 (AlmaLinux)
- nftables1.1.6 (Ubuntu) / 1.1.5 (AlmaLinux)
- TimeAbout 18 min
util-linux on both families - mount, umount, findmnt and blkid are identical. systemd generates a .mount unit from every fstab line, which is why systemctl daemon-reload belongs in this workflow on both.
- Firewallufw 0.36.2 enabled but reporting inactive / firewalld active
- Network confignetplan + systemd-networkd / NetworkManager 1.56.0
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LFCS-A01 | 192.168.0.70 | Ubuntu 26.04 LTS | Primary host - most guides run only here | 2 Core | 4 GB | 50 GB |
This guide includes
Use this because a filesystem that is not mounted does nothing, and a wrong fstab line stops the boot. This matters because that line can be verified before you ever trust a reboot to it.
- making a filesystem, and asking what names it answers to
- mounting it, and learning what a mount point actually is
- naming the device three ways, and checking the fstab line before you trust it
- applying it without a reboot, and using options that change what the filesystem allows
- handling a refused unmount, and putting the host back
Before you start
-
A filesystem, and the names it answers to
-
Mounting it, and what a mount point is
-
Three ways to say the same device
-
The fstab line, and checking it before you trust it
-
Applying it without a reboot
-
Options that change what the filesystem allows
-
When an unmount is refused
-
Putting the host back