2024-10-16 09:23:22 +02:00
|
|
|
# cryptsetup luksFormat
|
|
|
|
|
|
|
|
> Initialize a LUKS partition and the initial key slot (0) with a passphrase or keyfile.
|
|
|
|
> Note: this operation overwrites all data on the partition.
|
|
|
|
> More information: <https://manned.org/cryptsetup-luksFormat>.
|
|
|
|
|
|
|
|
- Initialize a LUKS volume with a passphrase:
|
|
|
|
|
|
|
|
`cryptsetup luksFormat {{/dev/sdXY}}`
|
|
|
|
|
|
|
|
- Initialize a LUKS volume with a keyfile:
|
|
|
|
|
2024-11-08 15:55:00 +09:00
|
|
|
`cryptsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}`
|
2024-10-16 09:23:22 +02:00
|
|
|
|
|
|
|
- Initialize a LUKS volume with a passphrase and set its label:
|
|
|
|
|
|
|
|
`cryptsetup luksFormat --label {{label}} {{/dev/sdXY}}`
|