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 11.10 using the alternate CD and set up an ecrypted root and swap partition. Now, during boot, I have to enter a password for the root and a passwort for the swap partitition. I want to get rid of the password for the swap partition and replace it by a keyfile that's stored on the root partition. How can this be done? Is there maybe some hidden option in Ubuntu so I don't have to configure this in some configuration files? Thanks for any help!

share|improve this question

closed as too localized by qbi, Ringtail, Mark Rooney, fossfreedom Apr 9 '12 at 20:29

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Could you add the contents of your /etc/crypttab? If it contains sensitive informations make sure, they are blanked out. – qbi Apr 7 '12 at 21:08
This question appears to be abandoned and unanswered, could you perhaps add more detail to your question? If this question no longer applies then you can either delete it or answer it yourself if you've solved the problem. Thanks! – qbi Apr 8 '12 at 21:09

I think it needs to be this way by design - 2 passwords.

After the initial boot up where you enter 2 passwords from then on you can use hibernate mode securely.

When you resume from hibernation it's just the one password.

share|improve this answer

You have to reinstall. I forget the terms, but you want one encrypted physical partition and then you just put LVM (maybe?) partitions on top of this one.

share|improve this answer

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