All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS	partition
Date: Wed, 10 Feb 2010 19:08:57 +0100	[thread overview]
Message-ID: <20100210180857.GA20545@tansi.org> (raw)
In-Reply-To: <76df45931002100943ld718ab1vb430707f4f440d4b@mail.gmail.com>

On Wed, Feb 10, 2010 at 12:43:55PM -0500, M Thomas Frederiksen wrote:
> On Wed, Feb 10, 2010 at 12:14, Arno Wagner <arno@wagner.name> wrote:
> 
> > On Wed, Feb 10, 2010 at 12:00:39PM -0500, M Thomas Frederiksen wrote:
> >
> > There is no "drive unlocking", what happens is that a new
> > device is created which just happens to contain a decrypted
> > version of the encrypted one. They are not associated in any
> > way (except by an LVM mapping that is typically not understood
> > by applications).
> >
> >
> > So either there is a corresponding device in /dev/mapper or
> > not, btrfs does not care where the device comes from. And
> > if you have not done the cryptsetup, then there is no device
> > in /dev/mapper and btrfs cannot use a non-existent device.
> >
> 
> The point is that once the other volumes are added, btrfs will need three
> devices in /dev/mapper:
> 
>    1. /dev/mapper/sda3_crypt
>    2. /dev/mapper/sdb2_crypt
>    3. /dev/mapper/sdc2_crypt
> 
> However, during the boot process, /dev/mapper/sda3_crypt is the only device
> being created.  If I do a blkid, I get:
> 
> /dev/mapper/sda3_crypt: UUID="e0948aa0-efab-4449-938d-6d74b6ccbf93"
> UUID_SUB="b3b1e4cc-ca0e-44ba-be35-32405b20025b" TYPE="btrfs"
> 
> So would I change the fstab from:
> 
> /dev/mapper/sda3_crypt / btrfs error=remount-ro,compress 0 1
> 
> to:
> 
> UUID_SUB=b3b1e4cc-ca0e-44ba-be35-32405b20025b / btrfs
> error=remount-ro,compress 0 1

Why would you, is /dev/mapper/sda3_not fine?
 
> ?  Would that be the same UUID_SUB for other /dev/mapper/sdX_crypts? 

I don't think so.

> And
> would grub / boot scripts be smart enough to figure out that it needs all
> three device files?

Grub is not involved. What your boot script does, I have no idea.

You may want to look at /etc/crypttab, that could give you the 
option to mount all three with the same passphrase. I have only 
used it to set up encrypted sawp, no idea what it can do in
addition (man crypttab for a description).


Arno
-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

  reply	other threads:[~2010-02-10 18:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 17:00 [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS partition M Thomas Frederiksen
2010-02-10 17:14 ` Arno Wagner
2010-02-10 17:43   ` M Thomas Frederiksen
2010-02-10 18:08     ` Arno Wagner [this message]
2010-02-10 22:23       ` M Thomas Frederiksen
2010-02-10 23:09         ` 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=20100210180857.GA20545@tansi.org \
    --to=arno@wagner.name \
    --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.