LUKS disk encryption
high risk
cryptsetup luksHeaderBackup <dev> --header-backup-file hdr.imgBack up the headercryptsetup luksDump <dev>Review key slotsSets up, opens and manages LUKS encrypted volumes.
| Flag | Meaning |
|---|---|
luksFormat | Encrypt a device (erases data)⚠ Destroys existing data. |
open | Unlock a volume |
close | Lock a volume |
luksHeaderBackup | Back up the LUKS header |
luksRemoveKey | Remove a passphrase |
cryptsetup open /dev/sdb1 secureUnlock · explain & risk-check →cryptsetup luksHeaderBackup /dev/sdb1 --header-backup-file hdr.imgBack up the header · explain & risk-check →Reference text is hand-written and may be incomplete — check man cryptsetup for your version. Test destructive commands on a non-production system first.