cryptsetup: update page; cryptsetup-{open,luksformat}: add page (#14153)

This commit is contained in:
Lena
2024-10-16 09:23:22 +02:00
committed by GitHub
parent a539317252
commit 5802774ae0
3 changed files with 57 additions and 9 deletions

View File

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