I followed this tutorial from 2014: https://www.oxygenimpaired.com/multiple-linux-distro-installs-on-a-luks-encrypted-harddrive
I am installing Linux Mint 19.1 XFCE and Ubuntu 18.04, both fully encrypted in a single disk. First I installed Linux Mint on /dev/sda5
.
After following all steps to install the first Linux, and rebooting the machine, I got into the Boot drops to a (initramfs) prompts/busybox with this error:
When following the tutorial, I ran the following commands:
fdisk /dev/sda
, then, created the following partitions:cryptsetup luksFormat /dev/sda5
cryptsetup luksOpen /dev/sda5 sda5_crypt
pvcreate /dev/mapper/sda5_crypt
vgcreate vggroup /dev/mapper/sda5_crypt
lvcreate -L1G -n mint_xfce_swap vggroup
lvcreate -L8.9G -n mint_xfce_root vggroup
mkdir /mnt/newroot
mount /dev/mapper/[vg-name]-[root1-lv-name] /mnt/newroot
mount -o bind /proc /mnt/newroot/proc
mount -o bind /dev /mnt/newroot/dev
mount -o bind /dev/pts /mnt/newroot/dev/pts
mount -o bind /sys /mnt/newroot/sys
cd /mnt/newroot
chroot /mnt/newroot
mount /dev/sda1 /boot
blkid /dev/sda5
update-initramfs -u
update-grub
exit
reboot
Other references: