fstab Entry Generator
Generate an /etc/fstab line for an ext4 or XFS disk, an NFS or SMB share, tmpfs, a swap file or a bind mount, with nofail and automount options explained.
Free · No sign-up · Your inputs stay in your browser
Input
Generate an /etc/fstab entry
Output
fstab line
85 characters
| Device | UUID=3f1c2b4e-9a7d-4c1e-8b2a-6d5e4f3a2b1c |
|---|---|
| Mount point | /data |
| Type | ext4 |
| Options | defaults,noatime,nofail |
| Dump | 0 (dump(8) is obsolete) |
| Pass | 2 |
nofail lets the machine boot when the disk or share is missing instead of dropping to an emergency shell, which on a cloud server without a console means it never comes back. _netdev waits for the network, and x-systemd.automount mounts the share on first access. Test with sudo mount -a (and findmnt --verify) before rebooting.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
nofail saves cloud servers
If a disk listed in fstab is missing at boot, systemd drops into an emergency shell and waits. On a cloud server with no console, that looks like a server that never came back. nofail lets boot continue without the mount; for network shares, _netdev waits for the network and x-systemd.automount mounts on first access. See fstab(5) and systemd.mount(5).
Use UUIDs
Device names such as /dev/sdb1 depend on detection order and can swap between boots. blkid shows each filesystem's UUID, which does not change.