All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] configuration files
@ 2010-02-18  0:25 Selim Levy
  2010-02-20  8:55 ` Jonas Meurer
  0 siblings, 1 reply; 18+ messages in thread
From: Selim Levy @ 2010-02-18  0:25 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1978 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-03-08 22:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-18  0:25 [dm-crypt] configuration files Selim Levy
2010-02-20  8:55 ` Jonas Meurer
2010-02-21  4:42   ` Selim Levy
2010-02-21 11:27     ` Jonas Meurer
2010-02-21 19:46       ` Selim Levy
2010-02-21 20:40         ` Selim Levy
2010-02-21 17:10     ` Bryan Kadzban
2010-02-21 20:18       ` Selim Levy
2010-02-21 20:53         ` Jonas Meurer
2010-02-22  6:59           ` Selim Levy
2010-02-22 11:13             ` Jonas Meurer
2010-02-22 21:40               ` Selim Levy
2010-02-22 23:12                 ` Jonas Meurer
2010-03-05 19:36                   ` Selim Levy
2010-03-08 11:52                     ` Jonas Meurer
2010-03-08 21:35                       ` Selim Levy
2010-03-08 22:27                         ` Selim Levy
2010-03-08 22:37                         ` Jonas Meurer

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.