3 hours ago
NFS server: Ubuntu 14.04 server
NFS client: Ubuntu 14.04 desktop 64 bit
On Client I mounted the NFS share mount -v -t nfs NFSSERVER_IP:/servernfsfolder ~/clientnfs
Mount was successful and I was able to see all the NFS shared files in my ~/clientnfs folder via file explorer.
Issue: Suppose NFS server go offline while I have the NFS share mounted on my client, my client's nautilus will hang, also I cannot do an 'ls' in my home directory.
How can I make my NFS client machine to unmount the NFS share automatically when my server goes offline ?
21 hours ago
This looks a little old, so I'm not sure if you've already found an answer, but I've recently solved a similar issue.
This problem is compounded by multiple issues:
Note, this also affects other applications like Evolution. Receiving calendar events, or replying to a message would cause Evolution to 'dim' as it was waiting. I'm guessing it was requesting a full file listing for the attachment button, but I didn't investigate that further.
My quick solution for myself, was to just unmount the network shares I had connected to. For now, I'll only connect when I need to access the resources, then unmount when I'm done.
You're semi-permanently attached, so your solution will be a bit different, and its something I've done in the past.
soft,retrans=1,retry=0,intr
HTH