Ubuntu – Unmount sshfs from mount point

sshfsumount

mounted raspberry pi device via sshfs:

sshfs osmc@rpi.: /home/user/pi

mounting information:

user@azimuth:~$ mount | grep osmc

osmc@rpi.: on /home/user/pi type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Why am I unable to umount?

user@azimuth:~$ sudo umount /home/user/pi
[sudo] password for user: 
umount: /home/user/pi: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

How to unmount the sshfs share?

UPDATES:

user@azimuth:~$ sudo lsof | grep /home/user/pi
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.sshfs file system /home/user/nas
      Output information may be incomplete.

Best Answer

Since sshfs uses fuse, you need to use fusermount -u to unmount it:

fusermount -u /home/user/pi
Related Question