Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-17 00:17:21 +00:00
parent f32d2d1ccd
commit 7d8d3edd4e
24 changed files with 307 additions and 37 deletions

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`