I have a big problem. When I made a upgrade from 10.10 to 11.04 I lost all my data in home directory. I have only data from my home encrypted directory. What can I do? Thanks Martin
I solved the problem.
Make a backup all encripted data to *.tar file.
Find hidden password for an encrypted directory - passprase or you find out:
Create a new user with an encrypted home directory (check in the selection).
Log in as a new user, then follow this instructions: Recovering your data in this address in https://help.ubuntu.com/community/EncryptedPrivateDirectory
(sudo mount-t ecryptfs /home/oldusername/.Private /home/username/Private) and finally log to directory Private as root privilage.
Many success Martin
This is a very simple method based on this blog using a 11.04 or 11.10 live cd/usb or if you dual boot a 11.04/11.10 install
It does require you know the login password of the user whose encrypted directory is to be recovered. If the username is also known then the copying the recovered files can be greatly simplified, (no reason it shouldn't be known), so will lay the method out first.
For live cd/usb
Boot to the live cd/usb, choose the Try me option. Once on the Desktop click on the power cog indicator > System Settings > User Accounts. If a password is requested just press enter on the keyboard. (no password
Create a new user, use the exact same name as the user whose directory is to be recovered. Click on Account type, pick Administrator. Once created click on "Account disabled" & enable the account. The password doesn't matter, 123456 or whatever is accepted will do.
If using an 11.04 live cd/usb open a terminal & run this command, .on 11.10 or newer no need to
Now log out & at the login screen pick the new user, login. Once logged in open nautilus and mount the parition where the encrypted directory is. Then open a terminal & run this
It may take a bit to find, when prompted, if the directory found is the one desired then choose y
When prompted for a " LOGIN passphrase" use the password of the user whose encrypted files are to be recovered
Here is an Ex.
Now browse to /tmp, you will be the owner of the ecryptfs.XXXXXXXX directory & can freely view & copy any files
From a dual boot
Basically the same .. A few diff.'s, login to your admin acount
Then same as above, create a new user with the exact same username as the user whose files are to be recovered, login to the new user, mount the partition, run the command, ect.
If for some reason do not wish to recover from an exact same username
Then you can dispense with creating that user & if on on 11.04 live cd/usb no need to change the gconf setting. Otherwise the same as shown above for either live session or dual boot recovery.
The main difference is you'll need to be root to view the recovered files & you'll need to copy any files to a root owned directory. After copying they then can be transferred as normal
One suggested way to view & copy
Then open another root browser (gksudo nautilus) either from a 2nd terminal or Alt+F2, browse in it to /tmp/the_recovered_directory
Copy whatever you wish to /tmp/backup, then you will be able to copy from /tmp/backup as 'normal'
Short method is find your real home folder in
Then enter your login password. It will show you an important momble jumble word! For now I call it
Then find the file Private.sig there. If you cannot find that file (Why?) you can run this:
When it asked you, enter
Answer "Enable filename encryption " with y Answer "Filename encryption key (FNEK)" with secret2
Here we are. Now go to /mnt and see your files. If you still see momble jumble worlds, then you may forget something or..., I don't know
From the graphical desktop, click on: "Access Your Private Data"
From the command line, run:
Or you can check the following scripts:
You can recover the "real" passphrase with tool
This tool will ask for "passphrase" which in this case is the same as "login passphrase" which actually is the old login password.