sigh closed-question handling is pretty poor, this'll be the third time I try typing this, so please forgive the terseness.
First, use intr
NFS mounts. The default hard
NFS mounts hang forever. soft
NFS mounts error out after a time out (which might be stupid for transient errors.) intr
lets you decide to interrupt a hung NFS operation. Just right.
Second, to fix this stupid problem, I've used a stupid trick before, it probably still works. Bring up an interface alias on lo
with the NFS Server's IP Address (edit: ifconfig eth0:0 <ipaddress>
). Create an /etc/exports
file that contains a line to export the filesystem that you're hung on (edit: export a filesystem with the same name as the 'hung' filesystem; you'll have to create the same pathname as what you've mounted). Start your NFS server on your local machine, and hopefully your hung program can error out with "file not found" or "directory not found" or something like that, letting you get on with your work without rebooting.
Don't forget to turn off your NFS server again and remove the interface alias when you're done.