1 (edited by aether 2018-07-21 12:31:22)

Topic: NFS share unmount if NFS server is down


I'm running a home server with Hyperbola. An NFS server is installed and I access the share on my main desktop (running Hyperbola as well)
Everything works fine except that if I shutdown the home server and forget to unmount the NFS share on my desktop, it hangs badly on shutdown / reboot. (But still shutdown / reboot fine after 2min delay)

Is there a way to automatically unmount the NFS share on my desktop if my NFS server is down ? If yes, how ?

For reference, here is my fstab for the NFS share mount on my desktop : /mnt/SHARE nfs rw,suid,dev,noauto,user,noexec,async,soft,rsize=32768,wsize=32768,timeo=500,retrans=5,_netdev,x-gvfs-show,x-gvfs-name=SHARE    0 0

The easy answer would be to do not forget to unmount the share before reboot or poweroff the NFS server but there must be a way for dummies xD