cryptsetup Command Examples

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.

cryptsetup luksFormat {{/dev/sdXY}}

cryptsetup open {{/dev/sdXY}} {{mapping_name}}

cryptsetup status {{mapping_name}}

cryptsetup close {{mapping_name}}

cryptsetup luksChangeKey {{/dev/sdXY}}