【问题标题】:sshfs - device not foundsshfs - 未找到设备
【发布时间】:2014-10-13 18:06:44
【问题描述】:

使用apt-get update && apt-get upgrade 更新服务器后,此命令返回错误

操作系统

Debian 3.2.60-1+deb7u3 x86_64 (wheezy)

命令

echo "the-password" | sshfs root@domain.com:/var/www /remote_mount -o password_stdin

错误

fuse: device not found, try 'modprobe fuse' first

更新

root@dyntest-amd-3700-2gb ~ # modprobe fuse
modprobe: ERROR: could not insert 'fuse': Unknown symbol in module, or unknown parameter (see dmesg)

.

root@dyntest-amd-3700-2gb ~ # dmesg | grep fuse
[   20.126156] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607702.343086] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607745.824310] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607908.188559] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1608724.690945] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1608741.684927] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[2565283.964259] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)

内核版本

root@dyntest-amd-3700-2gb ~ # cat /proc/version
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.54-2

root@dyntest-amd-3700-2gb ~ # locate -i -r /fuse
/bin/fuser
/bin/fusermount
/etc/fuse.conf
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse/cuse.ko
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse/fuse.ko
/lib/modules-load.d/fuse.conf
/usr/include/boost/fusion/functional/adapter/fused.hpp
/usr/include/boost/fusion/functional/adapter/fused_function_object.hpp
/usr/include/boost/fusion/functional/adapter/fused_procedure.hpp
/usr/include/boost/fusion/include/fused.hpp
/usr/include/boost/fusion/include/fused_function_object.hpp
/usr/include/boost/fusion/include/fused_procedure.hpp
/usr/include/linux/fuse.h
/usr/share/bash-completion/completions/fusermount
/usr/share/doc/fuse
/usr/share/doc/fuse/changelog.Debian.gz
/usr/share/doc/fuse/changelog.gz
/usr/share/doc/fuse/copyright
/usr/share/initramfs-tools/hooks/fuse
/usr/share/lintian/overrides/fuse
/usr/share/man/man1/fuser.1.gz
/usr/share/man/man1/fusermount.1.gz
/var/cache/apt/archives/fuse_2.9.0-2+deb7u1_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-14_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-15_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-9_amd64.deb
/var/lib/dpkg/info/fuse.conffiles
/var/lib/dpkg/info/fuse.list
/var/lib/dpkg/info/fuse.md5sums
/var/lib/dpkg/info/fuse.postinst
/var/lib/dpkg/info/fuse.postrm
/var/lib/dpkg/info/fuse.preinst

更新 #2

root@dyntest-amd-3700-2gb /var/www # modinfo fuse
filename:       /lib/modules/3.2.0-4-amd64/kernel/fs/fuse/fuse.ko
alias:          devname:fuse
alias:          char-major-10-229
license:        GPL
description:    Filesystem in Userspace
author:         Miklos Szeredi <miklos@szeredi.hu>
depends:
intree:         Y
vermagic:       3.2.0-4-amd64 SMP mod_unload modversions
parm:           max_user_bgreq:Global limit for the maximum number of backgrounded requests an unprivileged user can set (uint)
parm:           max_user_congthresh:Global limit for the maximum congestion threshold an unprivileged user can set (uint)

【问题讨论】:

  • 可能是个愚蠢的问题,但您尝试过modprobe fuse 吗?
  • 这个问题应该在 superuser.com 或 unix.stackexchange.com 中
  • 如何将modprobe fuse 放入sshfs 的语法中?
  • 你更新内核了吗?如果是,您可能需要重新启动。
  • 请检查/var/log/messages 中的熔断器,并使用您的内核和熔断器包版本更新问题。也许你想象的更容易,你只需要update the kernel and reboot

标签: linux ssh debian sshfs


【解决方案1】:

首先你可以尝试从缓存中安装模块,

apt-cache 搜索熔断器

如果这不起作用--- 您可以使用模块助手安装保险丝模块,

apt-get 安装模块助手

apt-get install fuse-source

cd /usr/src

准备好

m-a a-i 保险丝

depmod -ae $(uname -r)

现在可以了,

modprobe 保险丝

【讨论】:

  • E: Unable to locate package fuse-source,我做了apt-get update,你知道这是在哪里吗?
【解决方案2】:

This thread 似乎有一个解决方案 - 基本上升级你的内核。

顺便说一句。根据 Luis Henriques 和 Al Viro 在LKML 上的交流,原因是内核中的 API 重命名以将 FUSE 标志与另一个更通用的标志合并。

【讨论】:

  • 这是绝对正确的答案,但如果您没有重新编译内核的经验,它会有点模糊。并非所有 Linux 发行版都在内核模块中默认设置了 FUSE 标志。 Debian 和 Gentoo 是这里的罪魁祸首。更新内核标志以启用 FUSE 是一个取决于您拥有的操作系​​统的过程。当你用 FUSE 重新编译你的内核时,你可以运行modprobe fuse 和 sshfs,它就不再抱怨 FUSE。
猜你喜欢
  • 2017-10-21
  • 2019-05-06
  • 2015-08-29
  • 2017-07-30
  • 1970-01-01
  • 2013-12-19
  • 2015-02-24
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多