If you have ever mounted a share with samba/cifs or NFS, you may be familiar with this problem.
After you mount the drive, lets say the host machine crashes or becomes unavailable. No biggie, that is unless you run something like df -h. All of the sudden your shell system will hang and no amount of ctrl+c is going to help you.
Well here is how you can fix that little problem.
# umount -a -t cifs
OR
#umount -a -t nfsWhat that is basically doing is un-mounting everything (-a) that uses the following type (-t).
You have have to play clean up in your process list (ps -aux) and terminate any processes that were using those shares, a good example of this would be if you were rsync’ing something.