Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu 12.04 with encrypted Home-directory. When I first booted I was given the option to store a key file to some Flash-drive (USB) or anything and there was a hint how to do it later. I wanted to do it later but now can't find where to find or how to generate the key file in any documentation.

So whats the command, where's the file? Ecryptfs-manger only offers me to generate a new pair.

Thanks a lot in advance

share|improve this question
up vote 5 down vote accepted

I happened to get the Message again now, after an update:

Record your encryption passphrase

To encrypt your home directory or "Private" folder, a strong passphrase has been automatically generated. Usually your directory is unlocked with your user password, but if you ever need to manually recover this directory, you will need this passphrase. Please print or write it down and store it in a safe location. If you click "Run this action now", enter your login password at the "Passphrase" prompt and you can display your randomly generated passphrase. Otherwise, you will need to run "ecryptfs-unwrap-passphrase" from the command line to retrieve and record your generated passphrase.

So ecryptfs-unwrap-passphrase is the answer.

share|improve this answer
If this is the most acceptable answer to your question you can mark it as "accepted". – Argusvision Feb 12 '13 at 20:19

I think the official docs here:

Check Automatically Mounting Encrypted Partitions

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.