由于已知的不兼容性,明确禁止在eCryptfs类型的文件系统上挂载
当我尝试在我的主文件夹中执行sudo mount -t ecryptfs folder1 folder2
(由ubuntu加密)时,我得到了这个错误。我在/ tmp尝试了相同的命令但文件夹,它按预期工作。
我收到的错误消息:
ecryptfs_unlink_sigs ecryptfs_key_bytes=16 ecryptfs_cipher=aes ecryptfs_sig=66cea2017ad38853 Error mounting eCryptfs: [-22] Invalid argument
在/var/log/syslog
:
kernel: [ 197.621331] Mount on filesystem of type eCryptfs explicitly disallowed due to known incompatibilities mount.ecryptfs: Failed to perform eCryptfs mount: [Invalid argument] kernel: [ 197.659287] Reading sb failed; rc = [-22]
您提到您的主文件夹是“由Ubuntu加密” – 它实际上是使用eCryptfs加密的。 检查输出:
grep $HOME /proc/mounts
eCryptfs不支持将加密目录嵌套在加密目录中。 抱歉。
完全披露:我是eCryptfs的作者和当前维护者之一。