All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Monaco <dgbaley27@0x01b.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Encrypt all partitions with dm-crypt
Date: Tue, 25 Sep 2012 00:31:24 -0600	[thread overview]
Message-ID: <50614FBC.80709@0x01b.net> (raw)
In-Reply-To: <CAK5fS_FmO91CX+b6E_OWemNf=_miohiFyD_HD80mZ=Xgw75=cw@mail.gmail.com>

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
> 

  reply	other threads:[~2012-09-25  6:31 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 12:10 [dm-crypt] Encrypt all partitions with dm-crypt Stayvoid
2012-08-22 12:24 ` Arno Wagner
2012-08-22 15:40   ` Stayvoid
2012-08-22 15:52     ` Heinz Diehl
2012-08-22 15:54     ` Matthew Monaco
2012-08-22 15:57     ` Javier Juan Martínez Cabezón
2012-08-23  7:28     ` Arno Wagner
2012-08-23  9:00 ` Christophe
2012-08-23 11:27   ` Arno Wagner
2012-08-23 14:12     ` Heinz Diehl
2012-08-23 15:10     ` Christophe
2012-08-23 16:07       ` Arno Wagner
2012-08-23 18:12         ` Milan Broz
2012-08-23 19:34           ` Arno Wagner
2012-08-24 14:01             ` Milan Broz
2012-08-24 14:40               ` Heinz Diehl
2012-08-24 15:14                 ` Arno Wagner
2012-09-05  4:21                   ` Stayvoid
2012-09-05 13:01                     ` Arno Wagner
2012-09-06 12:54                       ` Stayvoid
2012-09-06 16:46                         ` Arno Wagner
2012-09-06 17:53                           ` Heinz Diehl
2012-09-06 19:58                             ` Arno Wagner
2012-09-07 16:10                               ` Stayvoid
2012-09-07 19:04                                 ` Arno Wagner
2012-09-08  2:50                                   ` Stayvoid
2012-09-08  7:01                                     ` Milan Broz
2012-09-09 16:21                                       ` Stayvoid
2012-09-15  0:52                                         ` Stayvoid
2012-09-15  1:09                                           ` Matthew Monaco
2012-09-15  1:10                                             ` Matthew Monaco
2012-09-20  7:13                                             ` Stayvoid
2012-09-20  9:18                                               ` Javier Juan Martínez Cabezón
2012-09-21  5:01                                                 ` Stayvoid
2012-09-21 10:01                                                   ` Arno Wagner
2012-09-21 18:14                                                     ` Stayvoid
2012-09-22 22:36                                                       ` Stayvoid
2012-09-25  3:12                                                         ` Stayvoid
2012-09-25  6:31                                                           ` Matthew Monaco [this message]
2012-09-25  7:13                                                             ` Stayvoid
2012-09-25 13:58                                                               ` Stayvoid
2012-09-25 19:06                                                                 ` Matthew Monaco
2012-09-25 23:54                                                                   ` Stayvoid
2012-09-26  2:12                                                                     ` Matthew Monaco
2012-09-26  8:23                                                                       ` Stayvoid
2012-09-26  9:24                                                                         ` Matthew Monaco
2012-09-26 10:49                                                                           ` Stayvoid
2012-09-26 10:51                                                                             ` Stayvoid
2012-09-26 11:13                                                                             ` Matthew Monaco
2012-09-26 23:34                                                                               ` Stayvoid
2012-09-15  6:13                                           ` Javier Juan Martínez Cabezón
2012-09-08  8:13                               ` Heinz Diehl
2012-09-08 13:26                                 ` Arno Wagner
2012-09-08 14:37                                   ` Heinz Diehl
2012-09-08 16:05                                     ` Arno Wagner
2012-09-08 16:39                                       ` Heinz Diehl
2012-09-08 19:36                                         ` Arno Wagner
2012-09-08 14:58                                   ` Marc MERLIN
2012-09-19  4:15                       ` Two Spirit
2012-09-19  4:52                         ` Javier Juan Martínez Cabezón
2012-09-19  5:13                           ` Arno Wagner
2012-08-24 14:47               ` Arno Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50614FBC.80709@0x01b.net \
    --to=dgbaley27@0x01b.net \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.