How to clear hung nfs mounts in linux

Whenever there are network changes or hiccups on systems with NFS mounts the NFS mounts itself will get hung so when you are doing df it will never complete and your session will get hung also. A easy solution to resolve the hung mounts is to look at /etc/mtab and look for nfs entries and identify which ones are having the problem and remove those entries from /etc/mtab.  Take note of the ones thats removed and do a umount -l <mountpoint> and after you got all of the hung nfs mounts you should be able to do df again. We… Continue Reading