18
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macのsshfsでunmountできなくなった時の対処

Posted at

この文書は

  • ただの個人メモです

Macのsshfsがうまくつながらない

  • MacからLinuxをover sshでマウントできるsshfs便利です
  • 何かの拍子でうまくつながらなくなった場合はunmount => 再度mountでだいたいなおります
  • しかしunmountすらできなくなる場合があります
$ umount /Users/xxx/sshfs/docker/
umount(/Users/xxx/sshfs/docker): Resource busy -- try 'diskutil unmount'

$ diskutil unmount /Users/xxx/sshfs/docker
Unmount failed for /Users/xxx/sshfs/docker

プロセスkillで対処

  • killでsshfsのプロセスをおとしてからunmountしたら通じました
$ pgrep -lf sshfs
2449 sshfs root@172.16.91.120:/var/lib/docker/xxxx /Users/xxx/sshfs/docker
$ kill -9 2449
$ umount -f /Users/xxx/sshfs/docker
18
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?