1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 21:26:02 +02:00

cryptsetup: simplify page (#953)

- Cited actual examples rather than placeholder text
- Added the 'close' command
This commit is contained in:
Agniva De Sarker 2016-07-14 16:27:07 +05:30 committed by Waldir Pimenta
parent d8a221ef26
commit 4b06c12713

View file

@ -1,11 +1,15 @@
# cryptsetup
> Manage plain dm-crypt and LUKS encrypted volumes.
> Manage plain dm-crypt and LUKS(Linux Unified Key Setup) encrypted volumes.
- Format a drive (or a file) to make it a LUKS volume:
- Initialize a LUKS volume (overwrites all data on the partition):
`cryptsetup luksFormat {{path/to/luks_volume_to_be}}`
`cryptsetup luksFormat {{/dev/sda1}}`
- Open a volume so that you can access it decrypted on the fly at /dev/mapper/{{a}}:
- Open a LUKS volume and create a decrypted mapping at /dev/mapper/{{target}}:
`cryptsetup luksOpen {{path/to/luks_volume_to_be}} {{a}}`
`cryptsetup luksOpen {{/dev/sda1}} {{target}}`
- Remove an existing mapping:
`cryptsetup luksClose {{target}}`