whatis luks

LUKS

Also known as: Linux Unified Key Setup, cryptsetup, dm-crypt

The standard Linux disk encryption format, managed with cryptsetup, that encrypts a whole partition behind one or more passphrases.

What Is LUKS in Linux?

LUKS wraps a block device with dm-crypt encryption. A header holds up to several key slots, so you can have a passphrase, a recovery key, and a TPM-backed key all unlocking the same data.

Full-disk encryption with LUKS protects data on a stolen laptop or a decommissioned drive. It does nothing once the system is booted and unlocked, so it complements rather than replaces other security.

Example

sudo cryptsetup luksFormat /dev/sdb1
sudo cryptsetup open /dev/sdb1 secure