mount and umount commands hang
By Emma Payne •
I'm using a VPN to connect to my university network, then I mount a folder on my local machine using sudo sshfs -o allow_other username@domain:/home/username /home/username. This works well.
Later, I disconnect from the VPN, and later on I connect back and want to use the mounted folder, but it appears to "hang". This means that using umount /home/username hangs, as well as trying to run the mount command again.
Any ideas or command to "restart" the mount?
31 Answer
Based on an answer on Super User to this question: sshfs device is busy, the only thing that worked for me is
sudo pkill -9 sshfs