我关注ECryptfs Arch Linux 安装说明,并遇到了这个问题:
root@alarm:~# ecryptfs-setup-private --nopwcheck --noautomount
ERROR: Cannot get ecryptfs version, ecryptfs kernel module not loaded?
这是在新创建的 Arch Linux 机器上:
root@alarm:~# uname -a
Linux alarm 4.2.0-1-ARCH #1 PREEMPT Wed Sep 2 07:00:18 MDT 2015 armv5tel GNU/Linux
我随后尝试ecryptfs-utils
从源代码构建和安装,但出现同样的错误。
我还尝试根据 Arch Linux ECryptfs wiki 手动创建一个秘密目录,但出现此错误:
root@alarm:~# mount.ecryptfs_private secret
mount: No such device
当我尝试不使用任何实用程序脚本进行挂载时,我得到了以下信息:
root@alarm:~# mount.ecryptfs /root/.secret /root/secret
Unable to get the version number of the kernel
module. Please make sure that you have the eCryptfs
kernel module loaded, you have sysfs mounted, and
the sysfs mount point is in /etc/mtab. This is
necessary so that the mount helper knows which
kernel options are supported.
Make sure that your system is set up to auto-load
your filesystem kernel module on mount.
Enabling passphrase-mode only for now.
Unable to find a list of options to parse, defaulting to interactive mount
Select key type to use for newly created files:
1) passphrase
2) openssl
Selection: 1
Passphrase:
Select cipher:
1) aes: blocksize = 16; min keysize = 16; max keysize = 32
2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56
3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24
4) twofish: blocksize = 16; min keysize = 16; max keysize = 32
5) cast6: blocksize = 16; min keysize = 16; max keysize = 32
6) cast5: blocksize = 8; min keysize = 5; max keysize = 16
Selection [aes]:
Select key bytes:
1) 16
2) 32
3) 24
Selection [16]:
Error attempting to evaluate mount options: [-22] Invalid argument
Check your system logs for details on why this happened.
Try updating your ecryptfs-utils package, and/or
submit a bug report on https://bugs.launchpad.net/ecryptfs
答案1
旧线程,但我想发布解决方案以供将来参考。
您只需要ecryptfsd
在任何其他ecryptfs
程序之前运行该命令即可。这将加载其他命令运行所需的模块。