>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@xxxxxxxx > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@xxxxxxxxxxx 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 _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt