I am trying to install Xubuntu 15.04 with LVM and LUKS, manually partitioning in order to have a separate /home partition.
So far I have booted the Xubuntu live CD and went through these steps:
- Used gparted to create three partitions:
200 MB fat32 with boot flag as /dev/sda1- EFI System Partition.300 MB ext2 as /dev/sda2- Will be used for /boot.400 GB unformatted as /dev/sda3- Will be the encrypted volume.
- Created and opened the encrypted volume:
cryptsetup luksFormat --cipher aes-xts-plain64 --key-size 512 --hash sha512 /dev/sda3cryptsetup luksOpen /dev/sda3 crypt
- Set up the logical volumes on the encrypted volume:
pvcreate /dev/mapper/cryptvgcreate vgcrypt /dev/mapper/cryptlvcreate -n lvcryptroot -L 30G vgcryptlvcreate -n lvcryptswap -L 10G vgcryptlvcreate -n lvcrypthome -l 100%FREE vgcrypt
- Set up the filesystem on the logical volumes:
mkfs.ext4 /dev/vgcrypt/lvcryptrootmkfs.ext4 /dev/vgcrypt/lvcrypthomemkswap /dev/vgcrypt/lvcryptswap
- Ran the installer, selected the appropriate options and started the installation.
- Set
/dev/mapper/vgcrypt-lvcryptrootto mount point/. - Set
/dev/mapper/vgcrypt-lvcrypthometo mount point/home. - Set
/dev/sda2to mount point/boot. - Set
/dev/sdaas the device for boot loader installation.
- Set
- When the installer finished, I chroot-ed into the new system:
cd /mntmkdir rootmount /dev/mapper/vgcrypt-lvcryptroot rootmount /dev/sda2 root/bootchroot rootmount -t proc proc /procmount -t sysfs sys /sys
- I created
/etc/crypttaband added an entry for/dev/sda3to it:vi /etc/crypttab- Inserted the line:
crypt UUID=<uuid_here> none luks update-initramfs -uexitreboot
Upon attempting to boot into the newly installed system, I am not asked for a password to decrypt the encrypted volume. I am thrown into the initramfs prompt without any errors. What did I miss?