本文介绍了为什么不能设置SSHFS共享? "OSXFUSE文件系统不可用"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从本地计算机到远程计算机的SSHFS共享设置,但无法正常工作.我收到错误OSXFUSE文件系统不可用的信息(请参见下文).如何解决这个问题?

I'm trying to setup an SSHFS share from my local machine to a remote machine, but it is not working. I'm getting the error OSXFUSE file system is not available (see below). How to fix this??

仅供参考,我的本地计算机是运行OSX 10.9.3的MacBook Pro笔记本电脑.远程计算机实际上是运行CentOS的同一硬件上的VirtualBox.

FYI, my local machine is a MacBook Pro laptop running OSX 10.9.3. The remote machine is actually a VirtualBox on the same hardware running CentOS.

% brew install sshfs                                # <---- SSHFS is installed
Warning: sshfs-2.5.0 already installed

% brew install osxfuse                              # <---- OSX Fuse is installed
Warning: osxfuse-2.6.4 already installed

% ssh [email protected]                   # <---- See, SSH works!!
Last login: Wed Jun 18 18:36:11 2014 from XXX.XXX.XXX.XXX
[[email protected] ~]% exit

% sudo mkdir /mnt
% sudo mkdir /mnt/Share    
% sudo sshfs -o IdentityFile=~/.ssh/id_rsa.pub [email protected]:/ /mnt/Share
the OSXFUSE file system is not available (-1)
the OSXFUSE file system is not available (1)

我尝试了>在此处此处的解决方案>.但这对我不起作用:

I tried solution described here. But it didn't work for me:

% sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
(kernel) Kext com.github.osxfuse.filesystems.osxfusefs not found for unload request.
Failed to unload com.github.osxfuse.filesystems.osxfusefs - (libkern/kext) not found.

推荐答案

如果您运行brew info osxfuse并按照字母上的说明进行操作,我相信它会起作用.

If you run brew info osxfuse and follow the instructions to the letter, I believe it would work.

根据您的描述,您只是尝试卸载了(可能的)先前的内核扩展,但没有完成最后一个重要步骤来实际安装新扩展.

From what You described, you just tried unloading the (possible) previous kernel extension, but did not complete the last important step to actually install the new extension.

这是Brew信息osxfuse告诉我的:

This is what brew info osxfuse tells me:

If upgrading from a previous version of osxfuse, the previous kernel extension
will need to be unloaded before installing the new version. First, check that
no FUSE-based file systems are running:

  mount -t osxfusefs

Unmount all FUSE file systems and then unload the kernel extension:

  sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs

The new osxfuse file system bundle needs to be installed by the root user:

  sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems
  sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs

这篇关于为什么不能设置SSHFS共享? "OSXFUSE文件系统不可用"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 12:26