Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Decrypting a Private Home

Consider a scenario where you have moved your disk containing your encrypted home folder from one computer to another where it is treated as a data disk. Perhaps the original computer is no longer functional for whatever reason and on the new computer you want to access all of your data. You will need to manually decrypt your home folder.

The original disk is mounted onto your new computer as /mnt, perhaps. See Chapter 21 for details. You can navigate the disk to find that /mnt/home/kayon is going to look something like:

$ ls -a
total 12K
4.0K ./                                 4.0K .cache/        0 README.txt@
4.0K ../                                   0 .ecryptfs@
   0 Access-Your-Private-Data.desktop@     0 .Private@

That is not what you usually see when you previously logged onto the original computer. Instead you would have seen all of your files, decrypted. Your encrypted files are actually located in /mnt/home/.ecryptfs/kayon. We will use ecryptfs-recover-private from ecryptfs-utils to do the hard work for us.

$ sudo ecryptfs-recover-private
[sudo] password for kayon: 
INFO: Searching for encrypted private directories (this might take a while)...

This will search over the whole file system, including all mounted disks, to find all of the encrypted private directories, request the password, and decrypt the directories.

Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.