1) Log onto your PC
1.1) Create a bootable USB drive of the linux Mint live CD https://linuxmint-installation-guide.re ... /burn.html
1.2) Boot into a session of Linux Mint using the Live CD https://linuxmint-installation-guide.re ... /boot.html
2) Find Your Mount Passphase (This is different to your Login Passphrase)
2.1) Select "Computer" from the top left of the desktop and select the volume with your data stored on it 2.2) My folder directory appeared as follows: 2.3) Make sure hidden files are visible: view/"show hidden files".
2.4) Select the home folder and right click and select the option "open as root"
2.5) navigate to find the folder that contains the file "wrapped-passphrase". Eg 2.6 ) Go back a level and right click on the .ecryptfs folder and select the option "open in terminal". Then enter into the Terminal:
sudo ecryptfs-unwrap-passphrase ./wrapped-passphrase
2.7) When prompted enter your login passphrase/password and the output will be your Mount Passphrase. Copy and save it.
Code: Select all
root@mint:/media/mint/1d8f3bdd-b89d-4ca6-8592-060660799cf0/home/.ecryptfs/userx/.ecryptfs# sudo ecryptfs-unwrap-passphrase ./wrapped-passphrase
Passphrase:
52e77e0bbec4edfe3d7e8581536a54fe
Add th e filename encryption key to the keyring. In a new Terminal window enter:
sudo ecryptfs-add-passphrase --fnek
- Enter your Mount Passphrase when prompted (NOT your login passphrase/password).
- No feedback will be given so pasting it works best.
- NOTE: using your login passphrase will generate incorrect keys.
Code: Select all
mint@mint:~$ sudo ecryptfs-add-passphrase --fnek
Passphrase:
Inserted auth tok with sig [3c4b10f3dcadf302] into the user session keyring
Inserted auth tok with sig [0d690d0b3dafaee3] into the user session keyring
0d690d0b3dafaee3
4) Mount your Encrypted Drive
- You need to locate the directory of the
.Private
file using a file browser. In my case the code was: sudo mount -t ecryptfs /media/mint/1d8f3bdd-b89d-4ca6-8592-060660799cf0/home/.ecryptfs/userx/.Private /media/
- Enter your Mount Passphrase when prompted (as in Step 1). See code below for option selections and use your own unique Filename Encryption key from Step 1 above)
Code: Select all
mint@mint:~$ sudo mount -t ecryptfs /media/mint/1d8f3bdd-b89d-4ca6-8592-060660799cf0/home/.ecryptfs/userx/.Private /media/
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]: aesNavigate to the target file or folder
Right click the file or folder
Select Properties
Click on the Permissions tab
Click on the Access files in the Others section
Select key bytes:
1) 16https://images.examples.com/wp-content/uploads/2018/03/Travel-Packing-Check-List.pdf.zip
2) 32
3) 24
- Enter your [b]Mount Passphrase[/b] when p
Selection [16]: 16
Enable plaintext passthrough (y/n) [n]: n
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [3c4b10f3dcadf302]: 0d690d0b3dafaee3
Attempting to mount with the following options:
ecryptfs_unlink_sigs
ecryptfs_fnek_sig=0d690d0b3dafaee3
ecryptfs_key_bytes=16
ecryptfs_cipher=aes
ecryptfs_sig=3c4b10f3dcadf302folderfolder
Mounted eCryptfs
Mounted eCryptfs
!! In my case, the files were mounted in
/media
and were accessible. Now you can save these files to another location. If you don't, you will need to repeat the previous steps again once you reboot and you've probably had enough fun for the day already! Useful link:
https://pfertyk.me/2017/05/recovering-e ... in-ubuntu/