Skip to content

Instantly share code, notes, and snippets.

@binhna
Last active June 10, 2021 06:37
Show Gist options
  • Select an option

  • Save binhna/8db053078a41f418a498a8085aff1b22 to your computer and use it in GitHub Desktop.

Select an option

Save binhna/8db053078a41f418a498a8085aff1b22 to your computer and use it in GitHub Desktop.
cannot umount or mount an sshfs volume after ssh connection cut on MAC OS
  1. Find the culprit sshfs process:

    $ pgrep -lf sshfs

  2. Kill it:

    $ kill -9 <pid_of_sshfs_process>

  3. sudo force unmount the "unavailable" directory:

    $ sudo umount -f <mounted_dir>

  4. Remount the now "available" directory with sshfs ... and then tomorrow morning go back to step 1.

REF: macfuse/macfuse#45

@binhna
Copy link
Author

binhna commented Jun 10, 2021

A much faster way is:
sudo diskutil umount force [path_local]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment