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 recently installed Ubuntu 12.04, including a encrypted root and swap partition. I'd like to get rid of the encrypted swap partition (not just of the encryption for it, but of the whole swap partition). I commented the swap partition out in /etc/fstab, but on system boot I am still asked for the password to the swap partition -- it seems like I need to disable the mounting of the swap partition by the crypt wrapper or whatever it may be called. Can someone please tell me how to do this?

I have tried commeting out the swap partition in /etc/crypttab by using a "#" as the first character in the relevant line. Still getting asked for the swap password on boot. Isn't "#" a comment in /etc/crypttab, or is there even more I have to do?

share|improve this question
I would just delete the whole partition using gparted. But I have to admit I have no experience with encrypted swap and how swap is mounted in general. – André Stannek Aug 30 '12 at 12:28

The cryptsetup configuration for boot time is stored in /etc/crypttab you will need to either remove the reference to the partition here or add the noauto option to it.

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.