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 6RfDh41WVSzO for ; Tue, 25 Sep 2012 08:31:29 +0200 (CEST) Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 25 Sep 2012 08:31:28 +0200 (CEST) Received: by oagi10 with SMTP id i10so7961752oag.37 for ; Mon, 24 Sep 2012 23:31:27 -0700 (PDT) Sender: Matthew Monaco Message-ID: <50614FBC.80709@0x01b.net> Date: Tue, 25 Sep 2012 00:31:24 -0600 From: Matthew Monaco MIME-Version: 1.0 References: <20120907190453.GA27798@tansi.org> <504AED40.2010102@gmail.com> <5053D531.1000508@0x01b.net> <20120921100101.GA11357@tansi.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 On 09/24/2012 09:12 PM, Stayvoid wrote: > Hi, > > Let's forget about Lemote specific issues. > > For some reason I can't mount my partition when I'm using a USB stick. > > Here is what I did: > > 1. Booted from a USB stick; > > 2. Created a mapping: > > # cryptsetup -c aes-xts-plain -s 512 -y create main /dev/sda3 > > 3. Created a filesystem: > > # mkfs.ext3 /dev/mapper/main > > 4. Mounted it: > > # mount -t ext3 /dev/mapper/main /media/parabola > > It worked fine. > > 5. Unmounted it: > > # umount /media/parabola > > 6. Detached the partition: > > # cryptsetup remove main > > Then I tried to use the same partition: > > # cryptsetup create main /dev/sda3 This is your problem. You need cryptsetup -c aes-xts-plain -s 512 ... every time you map this device. You can sort of avoid it by using the defaults, which are listed at the end of cryptsetup --help However, if the defaults change, you need to remember those parameters. This is a big advantage to LUKS, there is a header that remembers everything but the password. > # mount -t ext3 /dev/mapper/main /media/parabola > > mount failed. > > "If the password is not correct, the mount command will fail. In this > case simply remove the map sdc1 (cryptsetup remove sdc1) and create it > again." [1] > > I'm sure that I was using the right password. > > What is the problem? > > [1] http://sleepyhead.de/howto/?href=cryptpart > > Thanks > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt >