cryptsetup -v luksFormat /dev/sdx
cryptsetup luksDump /dev/sdx
cryptsetup luksOpen /dev/sdx name
dd if=/dev/zero of=/dev/mapper/name bs=1M
mkfs.ext4 /dev/mapper/name
mount -t ext4 /dev/mapper/name /mnt
umount /mnt cryptsetup luksClose
cryptsetup -v luksFormat /dev/sdx
cryptsetup luksDump /dev/sdx
cryptsetup luksOpen /dev/sdx name
dd if=/dev/zero of=/dev/mapper/name bs=1M
mkfs.ext4 /dev/mapper/name
mount -t ext4 /dev/mapper/name /mnt
umount /mnt cryptsetup luksClose