You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ecryptfs does not recognize files and directories after last update #2013
Hi,
I have a USB thumb encrypted with ecryptfs and after the update I cannot access my files anymore.
I can mount it normally, but when I access it, it throws me:
ufa@picam:~ $ cd /bau
ufa@picam:/bau $ ls
ls: cannot access programas: No such file or directory
ls: cannot access imagens: No such file or directory
ls: cannot access jogos: No such file or directory
ls: cannot access tmp: No such file or directory
ls: cannot access backup: No such file or directory
d????????? ? ? ? ? ? .Trash-1001
d????????? ? ? ? ? ? tmp
d????????? ? ? ? ? ? programas
d????????? ? ? ? ? ? jogos
etc
Is there a way to fix this or to downgrade the kernel?
Just an update.
Plugging the USB thumb in another not updated pi, I could mount and see the files and folders, so the issue is with the new kernel (almost certain with the 4.9).
As it appears to me as a critical bug (one cannot rollback the kernel version), it should have high priority on the bug fix list.
Thanks for all the hard work making Raspbian/Pixel a great OS.
I will try to downgrade the kernel and attatch the DMESG output too, but I did saw the messages and there wasn't nothing wrong there.
Just to clarify, it does mount the partition without visible errors, but the file names and directories are messed up,so I cannot see or navigate in it.
Ok, I'm moving the files to another partition, and then move them to the all filename encrypted partition again. It will take a while, but I will post results as soon as it finishes
Just a follow up, I confirm that the problem is related with kernel changes on 4.7 and above. After making all files filename-encrypted, it worked again.
So you cannot mix files with plain and encrypted filenames in the same partition.
Maybe a warning should be added in the update from kernels below 4.7.
Activity
ufa commentedon May 15, 2017
$uname -a
Linux picam 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux
ufa commentedon May 15, 2017
Just an update.
Plugging the USB thumb in another not updated pi, I could mount and see the files and folders, so the issue is with the new kernel (almost certain with the 4.9).
As it appears to me as a critical bug (one cannot rollback the kernel version), it should have high priority on the bug fix list.
Thanks for all the hard work making Raspbian/Pixel a great OS.
popcornmix commentedon May 16, 2017
will get you the last kernel before we moved to 4.9. Does that work?
popcornmix commentedon May 16, 2017
Capturing dmesg output on 4.9 after mounting the drive and trying to access it would be useful.
ufa commentedon May 16, 2017
I will try to downgrade the kernel and attatch the DMESG output too, but I did saw the messages and there wasn't nothing wrong there.
Just to clarify, it does mount the partition without visible errors, but the file names and directories are messed up,so I cannot see or navigate in it.
popcornmix commentedon May 16, 2017
I'd be interested what
lsmodshows after mounting on both 4.4 and 4.9 kernels.It may be worth trying
sudo modprobe ecryptfson 4.9 before mounting.I did find a report that 4.7 works and 4.8 does not for one user:
https://forum.manjaro.org/t/kernel-4-8-breaks-encryption/11971
popcornmix commentedon May 16, 2017
Another similar report:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1682410
popcornmix commentedon May 16, 2017
Possibly this:
https://unix.stackexchange.com/questions/314255/ecryptfs-mounting-failure-from-kernel-4-7-onwards/314266
ufa commentedon May 16, 2017
Yeah, that could well be the case here. I have plain and encrypted file names.
So, I will try to rename the ones unencrypted to see if it gets fixed.
ufa commentedon May 16, 2017
Ok, I'm moving the files to another partition, and then move them to the all filename encrypted partition again. It will take a while, but I will post results as soon as it finishes
ufa commentedon May 18, 2017
Just a follow up, I confirm that the problem is related with kernel changes on 4.7 and above. After making all files filename-encrypted, it worked again.
So you cannot mix files with plain and encrypted filenames in the same partition.
Maybe a warning should be added in the update from kernels below 4.7.
netdevsim: Fix use-after-free during device dismantle