Ensure to select the proper drive fdisk -l lsblk Setup encryption Assuming sdX is the device to encrypt cryptsetup luksFormat --type luks2 /dev/sdX Format device Re-attach disk so mapper is created mkfs.ext4 /dev/mapper/luks-xyz