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

How can I disable cryptswap? I would like an unencrypted swap like before.

This is on an ubuntu 9.10 system.

share|improve this question
up vote 5 down vote accepted

I followed this explanation (currently down, see its google cache), and it worked without any problems.

share|improve this answer
The mapping in /dev/mapper wasn't there for me, so I skipped that part of the disable instructions – Hilton Shumway Dec 23 '14 at 18:09

If you used cryptsetup to create your encrypted swap, you can easily reverse the process:

Currently your /dev/hda? will be mapped to cryptswap (something like cryptsetup luksOpen /dev/hda4 cryptswap)

so first disable the line in /etc/crypttab that mentions cryptswap and remove the cryptswap line from /etc/fstab

Then use cryptsetup to remove the crypt mapping.

At this point you can remove the swap partition and recreate it as an ordinary partition

share|improve this answer

To remove crypt mapping use something like this:

cryptsetup remove cryptswap1

Or just reboot the computer. If you remove/comment lines from /etc/crypttab and /etc/fstab, encrypted swap will not created on the next boot.

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.