I have encrypted data on an external HD mounted on /home/username/.Data. I am trying to decrypt it to /home/username/Data.
Although I can successfully read the files contents, I cannot manage to decrypt the filenames.
Here is what I am trying:
$ sudo ecryptfs-add-passphrase --fnek Passphrase: Inserted auth tok with sig [aaaaaaaaaaaaaaaa] into the user session keyring Inserted auth tok with sig [bbbbbbbbbbbbbbbb] into the user session keyring $ sudo mount -t ecryptfs /home/username/.Data /home/username/Data 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 : 2 Enable plaintext passthrough (y/n) [n]: Enable filename encryption (y/n) [n]: y Filename Encryption Key (FNEK) Signature [aaaaaaaaaaaaaaaa]: bbbbbbbbbbbbbbbb Attempting to mount with the following options: ecryptfs_unlink_sigs ecryptfs_fnek_sig=bbbbbbbbbbbbbbbb ecryptfs_key_bytes=32 ecryptfs_cipher=aes ecryptfs_sig=aaaaaaaaaaaaaaaa Mounted eCryptfs
Now I am using Ubuntu 14.04.1 LTS and ecryptfs-utils 104-0ubuntu1. The external HD was encrypted some months ago, with an older version of Ubuntu.
Any ideas on how to solve it?
Some days latter, I have tried something different. I have run
ecryptfs-setup-private which creates a ~/.Private and a ~/Private directories.
Then I have logged out, logged in, umounted ~/.Private using
ecryptfs-umount-private, copied a directory from the external HD to ~/.Private and mounted it again using
This way, the directory name was correctly decrypted. However, I cannot read it or change the current directory to it.
$ cd decrypted_dir_name bash: cd: decrypted_dir_name: No such file or directory $ ls -l d????????? ? ? ? ? ? decrypted_dir_name