"no such file or directory" problem for some files when decrypting the filenames.

Asked by M. Emin Akşehirli

I created a .Private folder by using ecryptfs-setup-private . I put something into Private, and synchronize the .Private with ubuntu one.

Now when I mount the private directory and `ls` it, I got an error like

ls: cannot access '_filename_' : No such file or directory

for some of the files. It is also the case when I run du on the directory. When I run `ls -al` I can see the file names but the properties of the files are like '??????' .

When I mount the ~/.Private with `sudo mount -t ecryptfs ~/.Private /mnt` and select fnek I got the same result. If I do not select fnek, then du works fine and I can actually reach all of the decrypted files with their encrypted names.

My question is, if I copy the decrypted files with their encrypted filenames to somewhere else, can I decrypt the filenames?

I have all the keys and pass phrases available. Actually I changed my login password before problem occurs. Maybe there is a sync problem. But if I can recover my files I can re-setup all the ecryptfs again. Btw, I tried the methods for recovery, except the script, and the result is same: If I do fnek I can not reach my file, if I do not select fnek I can reach them but I can not see which is what. I feel like http://en.wikipedia.org/wiki/Uncertainty_principle .

Thank you in advance.
M. Emin Aksehirli

Question information

Language:
English Edit question
Status:
Solved
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Solved by:
M. Emin Akşehirli
Solved:
Last query:
Last reply:
Revision history for this message
M. Emin Akşehirli (memedemin) said :
#1

It seems that Ubuntu one is the guilty one. It added .u1conflict to the some of the encrypted filenames. That's why the system could not find original files. Writing some scripts to rename files solved the problem.