1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/cryptsetup.md

26 lines
708 B
Markdown
Raw Normal View History

2016-06-17 14:16:02 +02:00
# 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>.
2016-06-17 14:16:02 +02:00
- Initialize a LUKS volume with a passphrase (overwrites all data on the partition):
2016-06-17 14:16:02 +02:00
`cryptsetup luksFormat {{/dev/sdXY}}`
2016-06-17 14:16:02 +02:00
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/mapping_name`:
2016-06-17 14:16:02 +02:00
`cryptsetup open {{/dev/sdXY}} {{mapping_name}}`
- Display information about a mapping:
`cryptsetup status {{mapping_name}}`
- Remove an existing mapping:
`cryptsetup close {{mapping_name}}`
- Change a LUKS volume's passphrase:
`cryptsetup luksChangeKey {{/dev/sdXY}}`