我试图在sshfs挂载上自动生成一个ext4稀疏映像文件,但它的工作原理是:/
我还通过autofs挂载sshfs,这就像一种魅力,但是当我试图为图像添加自动登入时,什么都没有发生.
挂载点/存储盒-mnt/storagebox-01显示,但是映像文件的/backup挂载点没有出现,所以在我的配置中一定有问题!
auto.master
/storagebox-mnt /etc/auto.sshfs uid=0,gid=0,--timeout=30,--ghost
/storagebox-nas-backupfs /etc/auto.img --timeout=30auto.img
/backup -fstype=ext4,defaults,sync,dirsync,commit=1,loop :/storagebox-mnt/storagebox-01/backup.imgauto.sshfs
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
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发布于 2016-07-28 13:17:47
问题是uid=0,gid=0文件中的auto.master选项.sshfs是通过根帐户挂载的,而图像文件显然不是.我将两个挂载的选项更改为我的用户帐户,现在它可以工作了。
https://serverfault.com/questions/792455
复制相似问题