From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXwf1PwuAQYy for ; Fri, 7 Sep 2012 21:04:55 +0200 (CEST) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 7 Sep 2012 21:04:54 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-78.dclient.hispeed.ch [84.72.142.78]) by v4.tansi.org (Postfix) with ESMTPA id 8E3381404001 for ; Fri, 7 Sep 2012 21:04:54 +0200 (CEST) Date: Fri, 7 Sep 2012 21:04:54 +0200 From: Arno Wagner Message-ID: <20120907190453.GA27798@tansi.org> References: <50378927.7090508@gmail.com> <20120824144028.GB2407@fancy-poultry.org> <20120824151439.GA30694@tansi.org> <20120905130125.GB11942@tansi.org> <20120906164659.GA20640@tansi.org> <20120906175309.GA1621@fancy-poultry.org> <20120906195810.GA24770@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Encrypt all partitions with dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de >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@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@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