首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AutoFS/Automount没有在sshfs挂载上挂载ext4映像文件

AutoFS/Automount没有在sshfs挂载上挂载ext4映像文件
EN

Server Fault用户
提问于 2016-07-28 11:41:17
回答 1查看 792关注 0票数 0

我试图在sshfs挂载上自动生成一个ext4稀疏映像文件,但它的工作原理是:/

我还通过autofs挂载sshfs,这就像一种魅力,但是当我试图为图像添加自动登入时,什么都没有发生.

挂载点/存储盒-mnt/storagebox-01显示,但是映像文件的/backup挂载点没有出现,所以在我的配置中一定有问题!

auto.master

代码语言:javascript
复制
/storagebox-mnt /etc/auto.sshfs uid=0,gid=0,--timeout=30,--ghost
/storagebox-nas-backupfs /etc/auto.img --timeout=30

auto.img

代码语言:javascript
复制
/backup -fstype=ext4,defaults,sync,dirsync,commit=1,loop :/storagebox-mnt/storagebox-01/backup.img

auto.sshfs

代码语言:javascript
复制
storagebox-01 -fstype=fuse,rw,nodev,nonempty,allow_other,reconnect,max_read=65536 :sshfs\#user@example.com\:/

如果我在前台运行自动对讲机,就不会显示错误信息.

edit#1:通过注释掉默认的/etc/auto.master文件中的一些包含,修正了查找错误,但是结果是一样的!sshfs挂载工作,而循环映像挂载不工作。

苏丹汽车公司-f -v

代码语言:javascript
复制
Starting automounter version 5.1.1, master map /etc/auto.master
using kernel protocol version 5.02
lookup(dir): dir map /etc/auto.master.d missing or not readable
lookup(file): failed to read included master map dir:/etc/auto.master.d
lookup(file): failed to read included master map auto.master
mounted indirect on /storagebox-mnt with timeout 30, freq 8 seconds
ghosting enabled
mounted indirect on /storagebox-nas-backupfs with timeout 30, freq 8 seconds
EN

回答 1

Server Fault用户

发布于 2016-07-28 13:17:47

问题是uid=0,gid=0文件中的auto.master选项.sshfs是通过根帐户挂载的,而图像文件显然不是.我将两个挂载的选项更改为我的用户帐户,现在它可以工作了。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/792455

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档