1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 16:35:23 +02:00
tldr/pages/linux/cryptsetup-luksformat.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

17 lines
550 B
Markdown

# 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:
`cryptsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}`
- Initialize a LUKS volume with a passphrase and set its label:
`cryptsetup luksFormat --label {{label}} {{/dev/sdXY}}`