Sample Header Ad - 728x90

systemd nfs mount/automount unit with changing network environments

0 votes
1 answer
87 views
I have set up on my laptop a systemd mount and automount unit to mount a NFS share on demand. Naturally, this works as long as I am in the same network as the NFS server. If I leave my home network, any access to the mount fails (to be expected). Problem is, that the unit does not recover when I am back in my home network. I.e., when I am back in my home network, I have to restart the unit explicitly. Is there a way to make a NFS mount/automount unit combination more resilient, that it can survice changing network conditions? One idea I had was to add a pre command as condition, that polls the NFS server - however, this would not allow for a recovery after the fact.
Asked by THX (327 rep)
Apr 12, 2025, 09:43 AM
Last activity: Apr 12, 2025, 11:33 AM