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 am trying to set up Ubuntu full disk encryption using preseeding. I was able to set things up correctly following the preseed file presented here. But I do not want to provide the default password in the preseed file. Is there a way to let ubiquity fall to the screen that asks for the encryption passphrase just like it does when the username is not provided in the preseed file?

When I try to leave the passphrase option empty in the preseed file, I get an error in the installer saying "An error occured while creating the keyfile".

share|improve this question

I think the way to go here is to set the passphrase in the preseed. This way the disk is encrypted with a known passphrase. Then after the install. Prompt the user to "rekey". The Luks encryption scheme has a few passphrase slots by default. The one your setting up in the preseed can be removed as part of the rekeying action.

More here:

How to change the password of an encrypted LVM system (done with the alternate Installation)?

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.