Useful Tabs

All tools

Fstab Check: systemd backup service check for a missing mount

Paste fstab and your backup service unit to see whether the backup can still start when its mount is missing, with the lines that decide it.

FreeNo sign-upRuns in your browser

Open Fstab Check →

See it work

After= alone does not protect a backup: if the NAS mount is missing, the job still starts.
After= alone does not protect a backup: if the NAS mount is missing, the job still starts.
Add RequiresMountsFor= and the backup will not start without its mount, even with nofail.
Add RequiresMountsFor= and the backup will not start without its mount, even with nofail.
Automounts and startup hooks get an honest "check by hand", with the line to look at.
Automounts and startup hooks get an honest "check by hand", with the line to look at.

Before you start

Fstab Check as it opens
As it opens: nothing to install, no sign-up.
Fstab Check on a phone
The same tool on a phone.

What it does

A backup service that only says After= its mount can still start when that mount fails, and then write into the empty directory underneath.

Worked example: an NFS row with _netdev,nofail and a service with only After=mnt-backup\x2ddisk.mount gives Startup can proceed. Adding RequiresMountsFor=/mnt/backup-disk gives Startup blocked if mounting fails.

Free. Open Fstab Check

How to use it

  1. Paste the whole of /etc/fstab.
  2. Paste the backup service unit with any drop-ins merged into one unit (systemctl cat lists the files to merge).
  3. Choose the mount your backup writes to.
  4. Press Check backup startup and read the verdict and the cited lines.

What it does not do

Open Fstab Check: it is free and runs in your browser.

Saved you some time? Tools here stay free and sign-up free. Tip the maker on Ko-fi.

More free tools