Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"This filesystem does not support encryption"? #9

Open
romanrm opened this issue Jul 26, 2017 · 1 comment
Open

"This filesystem does not support encryption"? #9

romanrm opened this issue Jul 26, 2017 · 1 comment

Comments

@romanrm
Copy link

romanrm commented Jul 26, 2017

Hello,

Firstly, it is unclear whether the directory passed to "ext4-crypt create" needs to already exist. The expectation from a function named "create" is that it does not have to (and will be created by the tool), but apparently not so?

Secondly, it does not work at all even if I create the directory manually.

# ext4-crypt create test
Cannot get filesystem information for test: No such file or directory
Error: test does not belong to an ext4 filesystem.

# mkdir test

# ext4-crypt create test
This filesystem does not support encryption.
Please ensure your kernel has support for CONFIG_EXT4_ENCRYPTION.

# uname -a
Linux hostname 4.9.39-rm1+ #16 SMP Fri Jul 21 15:24:03 +05 2017 x86_64 GNU/Linux

# grep CONFIG_EXT4 /boot/config-4.9.39-rm1+ 
CONFIG_EXT4_FS=m
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_ENCRYPTION=y
CONFIG_EXT4_FS_ENCRYPTION=y
# CONFIG_EXT4_DEBUG is not set
@romanrm
Copy link
Author

romanrm commented Jul 26, 2017

I just found that you also need to do

tune2fs -O encrypt <blockdevice>

else it will not work. This needs to be mentioned in the instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant