Often, when I mount a filesystem via ssh:

sshfs user@remote: ~/Mounts/Remote

and the machine hibernate (closing the Laptop lid) if I wake up the machine I can access the mounted folder. Furthermore, if I try to ls in the parrent folder, the terminal freeze. If try to unmount using

fusermount -u ~/Mounts/Remote

I can't do this becouse:

fusermount: failed to unmount /home/yotama9/Mounts/Remote: Device or resource busy

I tried to kill ssh but I can't mount the folder again. ls in the folder still freeze.

How can I avoid this and fix this (Arch Linux)?

link|improve this question

80% accept rate
feedback

1 Answer

up vote 1 down vote accepted

I suffer the same problem in Ubuntu Linux. What I do after resume:

$ killall sshfs

Then, umount and mount again the remote filesystem.

link|improve this answer
Thanks. I replaced killall with killall -9 – Yotam Dec 21 '11 at 12:40
I suggest making a script for more than one or two shares. It makes life a lot easier. – Alex Hirzel Jan 4 at 3:40
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.