HOWTO: Recover files from encrypted ecryptfs home directory

Write tutorials for Linux Mint here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Don't add support questions to tutorials please; start your own topic in the appropriate sub-forum instead. Before you post please read forum rules
User avatar
SMG
Level 24
Level 24
Posts: 22237
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HOWTO: Recover files from encrypted ecryptfs home directory

Post by SMG »

Moderator note: Numerous old posts requesting help with this tutorial have been removed. Forum rules indicate, "Don't add support questions to tutorials please."

If you are having problems with any of the steps, please create a new topic and ask for help in the new topic.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
PandaHugMonster
Level 1
Level 1
Posts: 1
Joined: Sat Mar 18, 2023 11:18 am
Location: Wien, Austria
Contact:

Re: HOWTO: Recover files from encrypted ecryptfs home directory

Post by PandaHugMonster »

Good day. I have just registered to add some useful info for the people struggling with the same issues. The main instructions-answer above is great, but
I had weird decryption problems, and wanted to spare some time not resolving them.

I have found easier way to do that work (just a single command tbh).

Get into the folder of your old drive "/home/.ecryptfs" and then run "ecryptfs-recover-private" command pointing to your ".Private"

Code: Select all

cd /[YOUR_MOUNTED_OLD_DRIVE]/home/.ecryptfs/[YOUR_USER_NAME]/.ecryptfs;
ecryptfs-recover-private .Private;
Answer to all questions and enter your LOGIN password of that previous installation. Output would be something like that:

Code: Select all

INFO: Found [.Private].
Try to recover this directory? [Y/n]: 
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] 
INFO: Enter your LOGIN passphrase...
Passphrase:
Inserted auth tok with sig [****] into the user session keyring
INFO: Success!  Private data mounted at [/tmp/ecryptfs.****].
Panda Hugs Monsters
rene
Level 20
Level 20
Posts: 11770
Joined: Sun Mar 27, 2016 6:58 pm

Re: HOWTO: Recover files from encrypted ecryptfs home directory

Post by rene »

Thanks for adding that, very useful.
Post Reply

Return to “Tutorials”