I just finished installing 12.04 on my system, configuring it with LUKS and LVM.
I can open the encrypted position just fine in a recovery disk, but I just can't seem to get it to boot.
It waits quite a while for the root partition, then explodes with errors on how it couldn't find the root device:
ALERT! /dev/mapper/vgcryptotop-lvcryptotoproot does not exist. Dropping to a shell!
I then get the initramfs prompt. I have tried running cryptsetup to open the disk from here, but it replies that cryptsetup isn't found by the shell.
I think that somehow, the OS was installed without LUKS and/or LVM. How do I fix this problem? How can I test my theory?
Make sure dm-crypt.ko is in your initramfs. If it's NOT, it won't be able to mount the
/
filesystem and that's probably why you see the error.chroot
or just mount the/boot
or/
filesystem and do a/sbin/lsinitramfs initrd.img-$(uname -r)
You should see something like below (from a Debian wheezy box)
If it's NOT, you may have to chroot into the system from a live CD (e.g. system rescue cd) and regenerate initramfs ->
update-initramfs -u -k all
.Boot and see if it helps, if all good, you should be prompt to input the passphrase for the encryption key.