Fstab Check
Paste /etc/fstab and your backup service unit. See whether the backup command can still start when its backup mount is missing, and which lines decide it.
The check assumes that mount is missing at startup and tells you whether the backup command can still run, with the lines that decide it.
What it does
When an NFS share or USB disk fails to mount, a backup service that only says After= the mount still starts, and the backup writes into the empty directory on your root disk. This page reads your fstab and service unit, assumes the chosen mount is missing, and tells you whether RequiresMountsFor=, ConditionPathIsMountPoint= or AssertPathIsMountPoint= stops the job, or whether nothing does.
Worked example: a nightly backup to a NAS
# /etc/fstab UUID=3f1c9a2e-0b7d-4e51-9c1a-7d2e8b6f4a10 / ext4 defaults 0 1 UUID=8b2d-41F0 /boot/efi vfat umask=0077 0 2 # NAS share for nightly backups nas.example:/export/backup /mnt/backup-disk nfs4 _netdev,nofail 0 0
[Unit] Description=Nightly backup to NAS After=network-online.target mnt-backup\x2ddisk.mount [Service] Type=oneshot ExecStart=/usr/local/bin/backup --to /mnt/backup-disk
UnguardedStartup can proceed. If the NAS is down, the backup runs anyway and fills the root disk.
# /etc/fstab UUID=3f1c9a2e-0b7d-4e51-9c1a-7d2e8b6f4a10 / ext4 defaults 0 1 UUID=8b2d-41F0 /boot/efi vfat umask=0077 0 2 # NAS share for nightly backups nas.example:/export/backup /mnt/backup-disk nfs4 _netdev,nofail 0 0
[Unit] Description=Nightly backup to NAS After=network-online.target mnt-backup\x2ddisk.mount RequiresMountsFor=/mnt/backup-disk [Service] Type=oneshot ExecStart=/usr/local/bin/backup --to /mnt/backup-disk
GuardedStartup blocked if mounting fails. nofail on the fstab row does not change that.
How to use it
- Paste /etc/fstab.
- Paste the backup service with drop-ins merged in (
systemctl catshows them). - Choose the backup mount and press Check backup startup. A red card means the backup can run without its mount.
What it does not do
- It reads the pasted text only. It does not look at your host, the mount source or the network.
- It does not lint the whole fstab or predict boot and emergency mode.
- It cannot tell whether the mount stays present while the backup runs.
- Nothing you paste is uploaded, saved or put in the address bar.
Questions
Isn't After= enough?
No. After= only orders jobs that are already queued. It does not start the mount, and the service still starts if the mount fails.
Does nofail on the fstab row stop RequiresMountsFor= from working?
No. nofail keeps boot going if the mount fails. RequiresMountsFor= still pulls in the mount for this service and stops it starting if mounting fails.
Skip or fail: which guard should I use?
ConditionPathIsMountPoint= quietly skips the run. AssertPathIsMountPoint= marks the unit failed, so monitoring and OnFailure= see it. RequiresMountsFor= also tries to mount the path first.
Why "Indeterminate"?
Automounts, startup hooks, extra dependencies or unmerged drop-ins can change the answer in ways this page does not model. It names the line to review instead of guessing.
Is my configuration sent anywhere?
No. The check runs in this page. Closing the tab clears it.


