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

@@ -5,21 +5,26 @@ source: https://github.com/tldr-pages/tldr.git
---
# cryptsetup
> Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes.
> More information: <https://gitlab.com/cryptsetup/cryptsetup/>.
> Manage plain `dm-crypt` and LUKS (Linux Unified Key Setup) encrypted volumes.
> Some subcommands such as `luksFormat` have their own usage documentation.
> More information: <https://manned.org/cryptsetup>.
- Initialize a LUKS volume (overwrites all data on the partition):
- Initialize a LUKS volume with a passphrase (overwrites all data on the partition):
`cryptsetup luksFormat {{/dev/sda1}}`
`cryptsetup luksFormat {{/dev/sdXY}}`
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/target`:
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/mapping_name`:
`cryptsetup luksOpen {{/dev/sda1}} {{target}}`
`cryptsetup open {{/dev/sdXY}} {{mapping_name}}`
- Display information about a mapping:
`cryptsetup status {{mapping_name}}`
- Remove an existing mapping:
`cryptsetup luksClose {{target}}`
`cryptsetup close {{mapping_name}}`
- Change the LUKS volume's passphrase:
- Change a LUKS volume's passphrase:
`cryptsetup luksChangeKey {{/dev/sda1}}`
`cryptsetup luksChangeKey {{/dev/sdXY}}`