Dualbootencrypted
Introduction
How to set up a dual boot with encrypted harddrives win10&Ubuntu 22.04
Content
Follow the tutorial at
https://www.mikekasberg.com/blog/2020/04/08/dual-boot-ubuntu-and-windows-with-encryption.html! remeber to have your Windows
BitLocker key avaiable during the process ! its recommended to save it as a pdf using print to pdf options and write it down/photograph it
You might run into errors after using the command
# cryptsetup luksFormat --type=luks1 /dev/nvme0n1p6
such as
WARNING: Data offset is outside of currently available data device. Cannot wipe header on device /dev/nvme0n1p6
try to use gparted GUI to remove partions nvme0n1p5 (your designated /boot) and nvme0n1p6 (/root) and recreate them using gparted GUI. Then run
# sgdisk --change-name=5:/boot --change-name=6:rootfs /dev/nvme0n1
# sgdisk --typecode=5:8300 --typecode=6:8300 /dev/nvme0n1
# mkfs.ext4 -L boot /dev/nvme0n1p5
again.
After that use --type=luks2 argument instead of luks1:
# cryptsetup luksFormat --type=luks2 /dev/nvme0n1p6
Follow the tutorial