1

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.
1
  • Please post the output of sudo lsof | grep /home/user/pi. Apr 28, 2019 at 18:41

1 Answer 1

8

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

fusermount -u /home/user/pi
1
  • thanks, this worked for me, but required sudo Sep 18, 2020 at 5:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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