[dm-crypt] Encrypt all partitions with dm-crypt

Milan Broz gmazyland at gmail.com
Sat Sep 8 09:01:20 CEST 2012

On 09/08/2012 04:50 AM, Stayvoid wrote:
>> From the top of my head, have you checked whether it is in
>> use as swap? "swapon -s" should do that.
> Yep, it's in use.
> How bad is it? (I haven't mapped the partitions yet.)
> I remember that I ran "partprobe -s" after the partitioning.

Are you sure partitions are not already mapped?
(e.g. parted does this automatically)

try lsblk - if there are DM device mapping partitions,
remove them using kpartx -d

for swap just run swapoff


More information about the dm-crypt mailing list