Debian – How to resolve a stale nfs handle

debiannfs

I noticed once when I shut down my home server while my desktop was connected via NFS that I kept getting "stale NFS handle warning" when entering my home dir, this caused issues with some programs that looked in those folders.

How do I resolve this issue without restarting my machine?

Debian Squeeze/Wheezy

Best Answer

On Debian Squeeze/Wheezy:

Force unmount the local mount

umount -f /mnt/dir

Then restart nfs

/etc/init.d/nfs-common restart
Related Question