sudo cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 -y /dev/sdb2 --label test --type luks2 sudo cryptsetup luksOpen /dev/sdb2 tmp sudo mkfs.btrfs /dev/mapper/tmp -L test sudo cryptsetup luksClose tmp