You are here: Wiki>Sandbox Web>Dualbootencrypted (06 Jul 2022, JohannesSchnell)Edit Attach



How to set up a dual boot with encrypted harddrives win10&Ubuntu 22.04


Follow the tutorial at
! 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


After that use --type=luks2 argument instead of luks1:

# cryptsetup luksFormat --type=luks2 /dev/nvme0n1p6

Follow the tutorial
Topic revision: r1 - 06 Jul 2022, JohannesSchnell
Legal Notice | Privacy Statement

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback