REQ: eCryptfs

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

REQ: eCryptfs

Post by johnvick » Thu Aug 25, 2016 5:21 am

Tried to install this manually using this guide:

https://www.howtoforge.com/tutorial/how ... on-debian/

Installs OK but when trying to mount an encrypted folder I get this error:

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.

Researching this it seems a module is missing from the kernel.

Would it be possible to have this implemented in dietpi-software?

John

User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: REQ: eCryptfs

Post by johnvick » Thu Aug 25, 2016 11:06 am

Just investigated this further and it seems to be device dependent - the above was on an XU4.

I tried it on a Banana Pi M1 and it worked.

So apparently the XU4 kernel is lacking the module required.

matt22207
Posts: 2
Joined: Thu Jul 04, 2019 4:46 pm

Re: REQ: eCryptfs

Post by matt22207 » Thu Jul 04, 2019 4:47 pm

Just checking. Has this been fixed in the XU4 yet?

Thanks!

--- UPDATE

Yes, it does work on XU4 now:

Code: Select all

sudo apt-get -y install ecryptfs-utils
sudo mount -t ecryptfs /tmp/test /tmp/test
As FYI, I'm currently stuck on DietPi 159 with:
Linux myXU4 3.10.106+ #1 SMP PREEMPT Fri Nov 24 16:26:38 CET 2017 armv7l GNU/Linux

User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: REQ: eCryptfs

Post by johnvick » Sat Jul 06, 2019 12:47 am

Interesting my XU4 is v6.25.3. Kernel Linux Odroid 4.14.66+

But:
[email protected]:~# modprobe ecryptfs
modprobe: FATAL: Module ecryptfs not found in directory /lib/modules/4.14.66+

I have it working on a Z83 device so don't need it on the XU4 now.

John

matt22207
Posts: 2
Joined: Thu Jul 04, 2019 4:46 pm

Re: REQ: eCryptfs

Post by matt22207 » Sat Jul 06, 2019 3:05 am

'modprobe ecryptfs' does not return an error for me. And I have:

Code: Select all

$ ls -la /lib/modules/3.10.106+/kernel/fs/ecryptfs/ecryptfs.ko
-rw-r--r-- 1 root root 118188 Nov 24  2017 /lib/modules/3.10.106+/kernel/fs/ecryptfs/ecryptfs.ko
Seems like a mystery on your end. Anyway, working well here!

User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: REQ: eCryptfs

Post by johnvick » Sat Jul 06, 2019 11:08 am

It must be in some kernels but not others.

John

User avatar
MichaIng
Legend
Posts: 1620
Joined: Sat Nov 18, 2017 5:21 pm

Re: REQ: eCryptfs

Post by MichaIng » Sun Jul 07, 2019 1:04 pm

@matt22207 @johnvick
Very strange indeed that the older kernel has it but the newer not. Or perhaps it is a kernel built-in on 4.14, so no separate module?

RPi kernel 4.19 has it as module at least:

Code: Select all

2019-07-07 00:43:41 [email protected]:/run# modinfo ecryptfs
filename:       /lib/modules/4.19.50-v7+/kernel/fs/ecryptfs/ecryptfs.ko

Post Reply