【问题标题】:Fstab mount error "mount: unknown filesystem type 'gid=33' [closed]Fstab挂载错误“挂载:未知文件系统类型'gid = 33'[关闭]
【发布时间】:2014-03-28 10:31:24
【问题描述】:

我正在尝试使用 fuse 和 sshfs 来安装驱动器。我用来执行此操作的命令是

sudo sshfs computer2@24.97.20.3:/Volumes/1TB\ Extra/MoodleMount /mnt/CampusServer -o allow_other,uid=33,gid=33

每次都能正常安装。不需要密码,因为 ssh keygen 保存在服务器上。这是我的 fstab 文件。

/dev/xvda      /             ext3     defaults,errors=remount-ro,barrier=0 1 1
sshfs#computer2@24.97.20.3:/Volumes/1TB\040Extra/MoodleMount /mnt/CampusServer allow_other,uid=33,gid=33

我去掉了 -o 因为它给我带来了更多问题。将第二行添加到 fstab 文件后,运行“mount -a”时出现以下错误

mount: unknown filesystem type 'gid=33'

关于我做错了什么有什么建议吗?

【问题讨论】:

    标签: linux fuse sshfs


    【解决方案1】:

    您忽略了在 fstab 行中包含文件系统类型。你应该使用

    sshfs#computer2@24.97.20.3:/Volumes/1TB\040Extra/MoodleMount /mnt/CampusServer fuse.sshfs allow_other,uid=33,gid=33
    

    【讨论】:

    • 这似乎可行,但现在当我尝试“ls”或“cd”安装它的文件夹时,我得到这个'ls:无法访问 CampusServer:传输端点未连接'跨度>
    • 另外,当我第一次使用“mount -a”时,它会要求输入密码。我已经输入了服务器和客户端的密码并且没有运气。当它要求输入密码时,我按“Ctrl-C”运行“mount -a”,我似乎可以工作。比当我“cd”或“ls”到文件夹时,我得到上面的错误。
    猜你喜欢
    • 2020-01-03
    • 1970-01-01
    • 2017-03-05
    • 2021-06-08
    • 2013-07-19
    • 1970-01-01
    • 2013-02-28
    • 2015-03-03
    • 2010-11-11
    相关资源
    最近更新 更多