I followed my own instructions here to shrink down a LUKS-encrypted Ubuntu 20.04 partition and its inner LVM volume so I could install Ubuntu 22.04 in a new LUKS-encrypted partition next to it, but after installing the LUKS-encrypted Ubuntu 22.04 OS, the LUKS-encrypted 20.04 installation (in a separate encrypted partition) is no longer in the Grub boot menu. Why? How do I get this dual boot to work properly? Should I have put both OS's in the same LUKS-encrypted partition, just in different LVM volumes within that partition?
Here's my disk, as shown in gparted while logged into the new Ubuntu 22.04 OS.
Description:
/dev/nvme0n1p1
is the 512 MiB EFI partition/dev/nvme0n1p2
is the ext4 /boot non-encrypted partition for the old Ubuntu 20.04 OS/dev/nvme0n1p3
is the LUKS-encrypted partition containing a single LVM volume with Ubuntu 20.04 in it (no longer in the grub menu)/dev/nvme0n1p4
is the ext4 /boot non-encrypted partition for the new Ubuntu 22.04 OS/dev/nvme0n1p5
is the LUKS-encrypted partition containing a single LVM volume with Ubuntu 22.04 in it (is in the grub menu, and is the OS running right now)
These look potentially useful:
- Ask Ubuntu: How can I install Ubuntu encrypted with LUKS with dual-boot?
- Ask Ubuntu: how do I boot into a LUKS-encrypted environment? - helps me clearly see the definitions of LUKS-partition vs LVM vs logical volumes within it