1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages/linux/cryptsetup.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

19 lines
477 B
Markdown

# cryptsetup
> Manage plain dm-crypt and LUKS (Linux Unified Key Setup) encrypted volumes.
- Initialize a LUKS volume (overwrites all data on the partition):
`cryptsetup luksFormat {{/dev/sda1}}`
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/{{target}}`:
`cryptsetup luksOpen {{/dev/sda1}} {{target}}`
- Remove an existing mapping:
`cryptsetup luksClose {{target}}`
- Change the LUKS volume's passphrase:
`cryptsetup luksChangeKey {{/dev/sda1}}`