Sometimes you need to unmount a device e.g. a SSHFS mounted volume. The server goes offline or you don’t have access to it anymore.
I will explain on the procedure on the sample device “foobar”.
Check your mount points:
# mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) firstname.lastname@example.org:/media on /Users/myuser/mnt (osxfusefs, nodev, nosuid, synchronous, mounted by foobar)
To get rid of the mount as a user with admin rights
sudo umount -f
if this does not work out try:
sudo diskutil umount force /Volumes/FooBar
If your user does not have admin privileges get a shell with admin rights and execute the commands above:
su - <adminuser> password: