Mount filesystems at boot with fstab and systemd mounts

8 steps · about 1 h 37 min · Beginner

  1. Learn the six fstab fields (reference, man7.org, 12 min)

    The manual defines device, mount point, type, options, dump and pass fields line by line.

  2. Read a beginner's tour of fstab (reference, Ubuntu Community Help, 15 min)

    Explains UUID versus device names and common options with plenty of example lines.

  3. Find the UUID of the filesystem to mount (reference, man7.org, 8 min)

    blkid prints the UUID and type you put in fstab so the entry survives device renaming.

  4. Pick options like nofail, noatime and x-systemd (reference, ArchWiki, 15 min)

    Shows which options keep a missing disk from blocking boot and how systemd reads fstab.

  5. Test an entry with mount -a before rebooting (reference, man7.org, 12 min)

    Covers mount -a and remount so you catch a typo while you still have a shell.

  6. Verify mounts and validate fstab with findmnt (reference, man7.org, 10 min)

    findmnt --verify checks fstab syntax and findmnt shows what is really mounted where.

  7. Write a native systemd mount unit (reference, freedesktop.org, 15 min)

    Shows how fstab lines become units and how to write one directly with dependencies.

  8. Mount network shares on demand with automount (reference, freedesktop.org, 10 min)

    Automount units mount a share at first access so slow networks do not stall boot.