C.4.3. Format the Device as a dm-crypt/LUKS Encrypted Device

Warning

The command below will destroy any existing data on the device.
cryptsetup luksFormat <device>

Note

For more information, read the cryptsetup(8) man page.
After supplying the passphrase twice the device will be formatted for use. To verify, use the following command:
cryptsetup isLuks <device> && echo Success
To see a summary of the encryption information for the device, use the following command:
cryptsetup luksDump <device>