cryptsetup-luksformat
Initialize a LUKS partition and the initial key slot (0) with a passphrase or keyfile. tldr-pages
On Linux
Linux
Initialize a LUKS partition and the initial key slot (0) with a passphrase or keyfile. Note: This operation overwrites all data on the partition.
Initialize a LUKS volume with a passphrase
cryptsetup luksFormat /dev/sdXYIdentifyInitialize a LUKS volume with a keyfile
cryptsetup luksFormat /dev/sdXY path/to/keyfileIdentifyInitialize a LUKS volume with a passphrase and set its label
cryptsetup luksFormat --label label /dev/sdXYIdentify