sshfs - 无法卸载点

Mit*_*ten 6 filesystems mount unmounting sshfs

我使用sshfs,在远程机器上安装了一个文件夹,但没有指定-o allow_other标志,因此无法访问安装的目录。

当我尝试使用-o allow_other选项挂载时,出现sshfs此错误:

mount:根据mtab,xxx已经挂载到yyy

为了允许安装在我指定的现有安装点上-o nonempty- 但没有运气 - 得到了与上面相同的错误。

当我尝试卸载挂载点时:

fusermount -u 挂载点

我收到错误:

在 /etc/mtab 中找不到 yyy 的条目

那么,我该怎么做才能卸载错误安装的点?

jor*_*anm 3

如果文件系统已挂载并且您需要更改挂载选项,则必须重新挂载文件系统。您可以选择umount然后安装mount,也可以使用remount安装选项。这是一个例子:

mount -t sshfs -o remount,allow_other foo:/bar /some/path
Run Code Online (Sandbox Code Playgroud)

  • sudo unmount yyy 就成功了。当在非 root 下执行 unmount yyy 时,它产生错误: unmount: yyy is not in the fstab (and you are not root) 所以我 sudo-ed 命令和 viola - 它有效! (2认同)