tldr/pages/linux/cryptsetup.md
Agniva De Sarker 4b06c12713 cryptsetup: simplify page (#953)
- Cited actual examples rather than placeholder text
- Added the 'close' command
2016-07-14 11:57:07 +01:00

392 B

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}}