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

Arno Wagner arno at wagner.name
Fri Sep 7 21:04:54 CEST 2012


>From the top of my head, have you checked whether it is in 
use as swap? "swapon -s" should do that.

Arno



On Fri, Sep 07, 2012 at 08:10:19PM +0400, Stayvoid wrote:
> Hi,
> 
> I got the following error when I typed this command:
> cryptsetup -y -c aes-xts-plain -s 512 create swap /dev/sda2
> Cannot use device /dev/sda2 which is in use (already mapped or mounted).
> 
> There is nothing similar in either fstab or mount's output.
> There is nothing in /dev/mapper except control.
> 
> What else should be checked?
> 
> Thanks
> _______________________________________________
> dm-crypt mailing list
> dm-crypt at saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

-- 
Arno Wagner,    Dr. sc. techn., Dipl. Inform.,   Email: arno at wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
One of the painful things about our time is that those who feel certainty 
are stupid, and those with any imagination and understanding are filled 
with doubt and indecision. -- Bertrand Russell 


More information about the dm-crypt mailing list