Return-Path: Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 10 Feb 2010 18:43:56 +0100 (CET) Received: by qw-out-2122.google.com with SMTP id 5so73042qwd.55 for ; Wed, 10 Feb 2010 09:43:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20100210171445.GA19887@tansi.org> References: <76df45931002100900l57607c1fmb13bcdbcb3def003@mail.gmail.com> <20100210171445.GA19887@tansi.org> Date: Wed, 10 Feb 2010 12:43:55 -0500 Message-ID: <76df45931002100943ld718ab1vb430707f4f440d4b@mail.gmail.com> From: M Thomas Frederiksen Content-Type: multipart/alternative; boundary=00c09f9c97e611e015047f429433 Subject: Re: [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --00c09f9c97e611e015047f429433 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 10, 2010 at 12:14, Arno Wagner 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 ? Would that be the same UUID_SUB for other /dev/mapper/sdX_crypts? And would grub / boot scripts be smart enough to figure out that it needs all three device files? -- Cheers, ~Thomas Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong." --00c09f9c97e611e015047f429433 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Feb 10, 2010 at 12:14, Arno Wagn= er <arno@wagner.na= me> wrote:
On Wed, Feb 10, 2010 at 12:00:39PM -0500, M Thomas Freder= iksen 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 ne= ed three devices in /dev/mapper:
  1. /dev/mapper/sda3_crypt
  2. /dev/mapper/sdb2_crypt
  3. /dev/mapper/sdc2_crypt
Howe= ver, during the boot process, /dev/mapper/sda3_crypt is the only device bei= ng created.=A0 If I do a blkid, I get:

/dev/mapper/sda3_crypt: UUID= =3D"e0948aa0-efab-4449-938d-6d74b6ccbf93" UUID_SUB=3D"b3b1e4= cc-ca0e-44ba-be35-32405b20025b" TYPE=3D"btrfs"

So would I change the fstab from:

/dev/mapper/sda3_crypt / btrfs error=3Dremount-ro,compress 0 1

to:

UUI= D_SUB=3Db3b1e4cc-ca0e-44ba-be35-32405b20025b / btrfs error=3Dremou= nt-ro,compress 0 1

?=A0 Would that be the same UUID_SUB for othe= r /dev/mapper/sdX_crypts?=A0 And would grub / boot scripts be smart enough = to figure out that it needs all three device files?

--
Cheers,
~Thomas


Samuel Goldwyn<= /a> =A0- "I'm willing to admit that I may not always be right, but= I am never wrong." --00c09f9c97e611e015047f429433--