Recover Failed NFS/CIFS Mounts After Reboot with a systemd Timer (3 Retries)

ruhanirabin · x · 2026-11-27

Blogger Ruhani Rabin documents fixing a real homelab failure: after updating and rebooting his Proxmox host, Home Assistant backups to NAS failed because three NFS mounts timed out during boot and stayed down, though manual mounting worked. His solution keeps the existing /etc/fstab entries and adds a systemd timer script: checks start 10 minutes after boot, up to 3 recovery attempts 10 minutes apart, stopping once mounts are up for that boot; after the third failure it logs MOUNTRECOVERYFAILED and leaves a failed service for investigation. The post includes full commands, dependencies (nfs-common/cifs-utils, findmnt, mountpoint, flock, timeout), and troubleshooting steps for Debian/Ubuntu/Proxmox, covering both NFS and CIFS/SMB.

Original post →

More from Infra

Infra channel →