[Pkg-cryptsetup-devel] Bug#402417: cryptsetup: fails to mount encrypted root

Marcus Better marcus at better.se
Tue Jan 2 13:51:46 CET 2007


found 402417 1.0.4+svn16-2
thanks

Hi,

I have a setup with LUKS-encrypted root partition on LVM. The boot fails with 
similar results as the original report. My LVM volume group is 
called 'kelev'.

/etc/crypttab:
-------------------------------------------------------------
# <target device> <source device> <key file> <options>
root    /dev/kelev/root none            luks
home    /dev/kelev/home /etc/keys/home  luks
var     /dev/kelev/var  /etc/keys/var   luks
varlog  /dev/kelev/varlog       /etc/keys/varlog        luks
varcache /dev/kelev/varcache    /etc/keys/varcache      luks
tmp     /dev/kelev/tmp  /etc/keys/tmp   luks
--------------------------------------------------------------

Grub entry:
------------------------------------------------------------------------
title		Debian GNU/Linux, kernel 2.6.19-rc6-kelev
root		(hd0,2)
kernel		/vmlinuz-2.6.19-rc6-kelev root=/dev/mapper/kelev-root ro exec-shield=1 
resume=/dev/hda6 video=intelfb:1024x768-24 splash 
initrd		/initrd.img-2.6.19-rc6-kelev
savedefault
------------------------------------------------------------------------

/etc/fstab entry:
--------------------------------------------------------------
/dev/mapper/root /              reiserfs user_xattr       0       1
--------------------------------------------------------------

When I boot with this configuration, it activates LVM and then prompts me for 
the LUKS pass phrase. But then it tries to mount /dev/mapper/kelev-root (the 
underlying LVM device) as root, which fails, and drops me into a shell. I can 
then
  mount -t reiserfs /dev/mapper/root root
manually and continue the boot.

If instead I supply /dev/mapper/root or /dev/kelev/root as the root= argument 
on the command line (by editing the command line in Grub when booting), then 
it doesn't attempt to activate LVM at all. The output is something like this 
(copied by hand):

----------------------------
Begin: Running /scripts/local-top ...
device-mapper: ioctl: 4.10.0-ioctl <...stuff deleted...>
Setting up cryptographic volume root (based on /dev/kelev/root)
cryptsetup: Source device /dev/kelev/root not found
----------------------------

Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20070102/b0fa59d5/attachment.pgp


More information about the Pkg-cryptsetup-devel mailing list