Pages

How To Recover Your Encrypted Home/Partitions in Ubuntu 11.04 Natty Easily?

Encryption is one of the best ways to secure your data, when done properly. Say that you have sensitive data in your GNU/Linux (Ubuntu in this case)... then you can manually "tell" the operating system to encrypt data in your "Home" folder or any other partition/folders that you like.

Unlike adding a password, encryption is a far superior way to protect your data. But depending on how complex your encryption method, etc... there is actually a penalty that you have to pay. For instance the more deep you encrypt (using the most complex algorithms, etc) it can actually slow down your HDD or PC in general.

Shi* happens....

But most of the time, depending on your activities on your PC, etc... you may not even notice it (slow-down). If you want more security then you can purchase a HDD with built in encryption at hardware level which also helps to reduce the CPU involvements thus making minimizing the slow-downing (in some aspects). Since the encryption does not depend on your OS... your data will be protected even without an operating system as well.

Anyhow, for some reason say that your Ubuntu 11.04 Natty chose not to boot so you had no choice but to reinstall it, then how can you recover your encrypted "Home" or partitions in that matter?.

Well in that case, there is a command line tool called "ecryptfs-recover-private" that let you mount any encrypted directories with ease!. You can use your Ubuntu Natty's live CD and boot into the desktop and mount the partition where your data is at (unless Ubuntu live CD didn't mount it automatically) and open your Terminal and issue the below command.
sudo ecryptfs-recover-private
It'll ask for several validations... just follow the instructions on your screen and get your data back!. If you want a more through and easy to understand video... then the Ubuntu sever developer Dustin has even released a video showing how to do that (below). Enjoy!.




2 comments:

Anonymous said...

thanks!
But that is to do after that? I mean, how do I access my data? if I try to cd in my personal directory, I get Access denied".

Gayan said...

@Anonymous,

Hi and welcome to my "little blog" :).

First of a I haven't used it, because I don't have an encrypted home/partition.

But if you follow the link in the article to Justin's blog (here it's again= http://blog.dustinkirkland.com/2011/04/introducing-ecryptfs-recover-private.html)

He says that, first, even before you run the command, you'll have to MOUNT THE PARTITION FIRST.

Then run the command and follow its prompts to recover your data... does that help?

Post a Comment