I tried to find a solution for this and I failed. I mount my NAS to my laptop, but when the connection is down the file-manager hang for a lot of time... Since this is a laptop, and it is on the go, the NAS is not available all the time.
The best solution so far is to mount and unmount the drive depending no the connection the laptop is using. I used WICD to run a script when my laptop is connected to my home network, and pre-disconnect script to unmount when I am switching off or hibernating the PC. Unfortunately, WiCD will not work correctly for me with Ubuntu 11.10.
I am looking for a way to simulate this behavior without WiCd, or another solution. I have tried unmount - l script in ifdown.d folder, but this does not work, the managers will still hang. Right now I am 'bookmarking' the location of the NAS drive, but this method is very clumsy and inconvenient...