From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 18 Feb 2010 01:25:27 +0100 (CET) Received: by ewy8 with SMTP id 8so8916337ewy.29 for ; Wed, 17 Feb 2010 16:25:27 -0800 (PST) MIME-Version: 1.0 Date: Wed, 17 Feb 2010 19:25:27 -0500 Message-ID: <6294c32a1002171625m77251de0pd665b2cf0c4983ac@mail.gmail.com> From: Selim Levy Content-Type: multipart/alternative; boundary=000e0ce0d792edddf7047fd50060 Subject: [dm-crypt] configuration files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --000e0ce0d792edddf7047fd50060 Content-Type: text/plain; charset=ISO-8859-1 Hello, I've looked around but can't seem to find the solution to my seemingly simple problem. Anything pointing me in the right direction would be highly appreciated. I'm running debian (mostly) lenny on an x86_64. I have been using dm-crypt on an LVM volume group containing 2 logical volumes: one for my swap and one for my root partition. I'm very happy with it and everything is working perfectly. Recently, I wanted to install debian lenny to my external USB hard drive as a "rescue" disk for my internal hard drive. I have already installed linux to my external USB drive before and, following a minor tweak in my GRUB configuration file, everything worked well. However, I can't seem to get dm-crypt to work when booting from the external hard drive. The cause: During the CD installation of debian, the debian installer associates the external hard drive to /dev/sdb. However, following the installation, when I boot *from* the external hard drive, the system associates it with /dev/sda. So essentially, I'm installing linux (and dm-crypt and everything else) to /dev/sdb, though it will then be called /dev/sda when I boot from it. The question: I've already made the necessary changes to GRUB and the /boot partition is booting properly -- I can get a busybox prompt -- but I'm unable to continue booting into the root partition. Where are the files on /boot located that must be changed in order for the boot partition to properly deal with the dm-crypt encrypted LVM volume group? I have already found the conf/conf.d/cryptroot file within my initrd image and have modified both lines in it. (One line is for the root partition, the other for swap.) I've modified the 'target=' and the 'source=' entries (on both llines) to show 'sda3' as opposed to the original 'sdb3'. What else must be changed? Thanks in advance! S --000e0ce0d792edddf7047fd50060 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I've looked around but can't seem to find the solutio= n to my seemingly simple problem.=A0 Anything pointing me in the right dire= ction would be highly appreciated.

I'm running debian (mostly) l= enny on an x86_64.=A0 I have been using dm-crypt on an LVM volume group con= taining 2 logical volumes: one for my swap and one for my root partition.= =A0 I'm very happy with it and everything is working perfectly.=A0 Rece= ntly, I wanted to install debian lenny to my external USB hard drive as a &= quot;rescue" disk for my internal hard drive.=A0 I have already instal= led linux to my external USB drive before and, following a minor tweak in m= y GRUB configuration file, everything worked well.=A0 However, I can't = seem to get dm-crypt to work when booting from the external hard drive.

The cause:
During the CD installation of debian, the debian installe= r associates the external hard drive to /dev/sdb.=A0 However, following the= installation, when I boot *from* the external hard drive, the system assoc= iates it with /dev/sda.=A0 So essentially, I'm installing linux (and dm= -crypt and everything else) to /dev/sdb, though it will then be called /dev= /sda when I boot from it.

The question:
I've already made the necessary changes to GRUB an= d the /boot partition is booting properly -- I can get a busybox prompt -- = but I'm unable to continue booting into the root partition.=A0 Where ar= e the files on /boot located that must be changed in order for the boot par= tition to properly deal with the dm-crypt encrypted LVM volume group?=A0 I = have already found the conf/conf.d/cryptroot file within my initrd image an= d have modified both lines in it.=A0 (One line is for the root partition, t= he other for swap.)=A0 I've modified the 'target=3D' and the &#= 39;source=3D' entries (on both llines) to show 'sda3' as oppose= d to the original 'sdb3'.=A0 What else must be changed?

Thanks in advance!
S
--000e0ce0d792edddf7047fd50060--