PDA

View Full Version : [ubuntu] LVM initramfs boot problem: “ALERT! /dev/mapper/vgcrypt-root does not exist."



klein4
May 22nd, 2013, 03:50 PM
I followed the guide linked below to create a clean install of Ubuntu on a LUKS-encrypted partition. The only differences are that I used Ubuntu 12.04 rather than 11.10 and I made less LVs than that guide does (I used 3: swap, root, and home).

When I boot, I get the message quoted in the title, then get dropped into an initramfs shell. From that shell, I can run `cryptsetup luksOpen /dev/sda2 pvcrypt`, then Ctrl-D to exit the initramfs shell, and everything boots as it should. But I can't figure out how to make it prompt me to open that LUKS archive automatically rather than dropping me into the initramfs shell.

The guide: http://ubuntuforums.org/showthread.php?t=1867970

Any suggestions would be greatly appreciated.

Herman
May 25th, 2013, 10:30 PM
Have you taken a look at your /etc/crypttab file?
Take a look in the following links, 'Encrypted Filesystem LVM How-to (https://help.ubuntu.com/community/EncryptedFilesystemLVMHowto)' - Ubuntu Community Docs, see especially this part: final preparation (https://help.ubuntu.com/community/EncryptedFilesystemLVMHowto#Final_preparation).