I'm having a real issue with my NFS share not mounting consistently on my Debian VM running on TrueNAS. I have some Docker containers that rely on this NFS share for both data storage and media. I've set it up in fstab to mount automatically at boot time. The problem is, sometimes it mounts correctly, and other times it doesn't. I've been using ChatGPT for help but haven't made much progress. Here's a snippet from my fstab entry: _netdev,x-systemd.automount,x-systemd.requires=network-online.target,rw,sync,noatime,hard 0 0. Any tips on how to make this mounting process more reliable?
1 Answer
It sounds like your issue could be related to the *x-systemd.automount* option. This feature is intended to mount the share only when it's accessed, which might be causing the inconsistencies during boot. If you want the share to be available right away, I would suggest removing that option from your fstab entry.
Thanks! I added that to ensure the Docker containers can access the files. I'll test removing it and see if it improves the situation.