From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by mail.saout.de (Postfix) with ESMTP for ; Sun, 21 Feb 2010 21:18:11 +0100 (CET) Received: by ewy21 with SMTP id 21so430394ewy.22 for ; Sun, 21 Feb 2010 12:18:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4B81691C.9020500@gmail.com> References: <6294c32a1002171625m77251de0pd665b2cf0c4983ac@mail.gmail.com> <20100220085539.GA4809@resivo.wgnet.de> <6294c32a1002202042i7640ebbrd9899c5bfb33b49c@mail.gmail.com> <4B81691C.9020500@gmail.com> Date: Sun, 21 Feb 2010 15:18:10 -0500 Message-ID: <6294c32a1002211218t25c774fft28e990bf9e2237f0@mail.gmail.com> From: Selim Levy Content-Type: multipart/alternative; boundary=000e0cdfc77cf9f2640480220375 Subject: Re: [dm-crypt] configuration files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de, Bryan Kadzban --000e0cdfc77cf9f2640480220375 Content-Type: text/plain; charset=ISO-8859-1 Hi Brian, Thanks for your input. On 21 February 2010 12:10, Bryan Kadzban wrote: > Selim Levy wrote: > > The contents of the rescue's /etc/crypttab, for which I've tried various > > things is: > > # cat crypttab > > sdb3_crypt /dev/sdb3 none luks > > So, from 1000 miles away... > That's fine. I'm even further away! ;) > Doesn't Debian's initramfs bring up udev and let you use the > /dev/disk/by-*/ symlinks in crypttab? That's a *LOT* better way to find > this drive (in your case, by-id might work, and by-uuid will almost > definitely work, assuming a new-enough udev that can find the UUID of a > LUKS volume). Maybe poke around in /dev/disk when you're at the busybox > prompt, and see what you can find. > (If it doesn't bring up udev and let you use those symlinks, then ... > why not? :-P Not a question for you obviously, but more for the Debian > maintainers.) > > Anyway, then you don't care which sd* name is given to this device, > since you're using an explicitly-guaranteed-stable name for it. > Hmmmm.... that's really interesting. I played around at the busybox prompt and took down all the info in the /dev/disk/by-* directories (which do get created). I redirected output of 'ls -alF' commands from those directories to file and have the info available to me. So here's what I've now confirmed: When I boot into my main/internal hd, /dev/sda, sdb and sdc are the following: internal hd, cardreader, external hd (respectively). When I boot into my rescue/external system, they are the following: internal hd, external hd, cardreader. How do I go about using the /dev/disk/by-* devices with dm-crypt? Does it only require modifying, as before, /etc/fstab and /proc/cmdline? Or is there something else I should play around with? I'm definitely getting closer! Thanks for your help! Cheers, Selim --000e0cdfc77cf9f2640480220375 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Brian,

Thanks for your input.

O= n 21 February 2010 12:10, Bryan Kadzban <bryan.kadzban@gmail.com= > wrote:
Selim Levy w= rote:
> The contents of the rescue's /etc/crypttab, for which I've tri= ed various
> things is:
> # cat crypttab
> sdb3_crypt /dev/sdb3 none luks

So, from 1000 miles away...

That's fine.= =A0 I'm even further away! ;)
=A0
Doesn't Debian's initramfs bring up udev and let you use the
/dev/disk/by-*/ symlinks in crypttab? =A0That's a *LOT* better way to f= ind
this drive (in your case, by-id might work, and by-uuid will almost
definitely work, assuming a new-enough udev that can find the UUID of a
LUKS volume). =A0Maybe poke around in /dev/disk when you're at the busy= box
prompt, and see what you can find.
(If it doesn't bring up udev and let you use those symlinks, then ... why not? =A0:-P =A0Not a question for you obviously, but more for the Debia= n
maintainers.)

Anyway, then you don't care which sd* name is given to this device,
since you're using an explicitly-guaranteed-stable name for it.

Hmmmm.... that's really interesting.=A0 I played= around at the busybox prompt and took down all the info in the /dev/disk/by-* directories (which do get created).=A0 I redirected output of 'ls -alF' command= s from those directories to file and have the info available to me.

So here's what I've now confirmed:
When I boot into my main/= internal hd, /dev/sda, sdb and sdc are the following: internal hd, cardread= er, external hd (respectively).
When I boot into my rescue/external syst= em, they are the following: internal hd, external hd, cardreader.

How do I go about using the /dev/disk/by-* devices with dm-crypt?=A0 Do= es it only require modifying, as before, /etc/fstab and /proc/cmdline?=A0 O= r is there something else I should play around with?

I'm definit= ely getting closer!=A0 Thanks for your help!

Cheers,
Selim
--000e0cdfc77cf9f2640480220375--