LUKS · LUKS2 · Ubuntu, Fedora, Debian · header and key slots · passphrase · header backup
LUKS-encrypted Linux drives. The passphrase opens a key slot in the header. If the header goes, the passphrase has nothing left to open.
LUKS is the standard disk encryption on Linux, used by the installers of the main distributions and by several NAS makers. The start of the volume holds a header with a number of key slots. Each slot contains the volume's master key wrapped by one passphrase or key file. With an intact header and a passphrase, a failing drive can be imaged and opened. If the header is overwritten and no backup of it was kept, the master key no longer exists in any form.
Tell us what the screen says and whether you have the key; you hear what is possible before any fee is taken
0800 6890668
In the LUKS header's key slots, each wrapped by a passphrase or key file; a header backup is the only other copy.
What can be recovered.
Case by case.
| Situation | What is happening | What is needed | Outlook |
|---|---|---|---|
| Laptop drive failing, passphrase known | Image then open | Standard | Good outlook |
| Passphrase refused after a keyboard layout change | Characters typed differently at the prompt | Try the layout in use when it was set | Usually resolved |
| Header overwritten by an installer or partition tool | Key slots destroyed | Header backup needed | Not recoverable without one |
| LVM or RAID beneath or above LUKS | Layers to reassemble | Rebuild the layers, then open | Good with the passphrase |
| Passphrase forgotten | No alternative | Guessing only if largely remembered | Usually not recoverable |
The limits.
Without a header backup, an overwritten LUKS header means the data cannot be decrypted with any passphrase.
There is no vendor or distribution recovery route.
If underlying RAID or LVM members are missing, parts of the encrypted volume are missing too.
In more detail.
Header and key slots
The data on a LUKS volume is encrypted with a master key generated when the volume was made. That key is never stored in the clear. Each key slot holds a copy of it protected by one passphrase, so several people or a passphrase and a key file can each open the same volume. All of this lives in the header. The rest of the volume is encrypted data with no further copies of the key.
The usual accidents
Headers are lost when an operating system installer is pointed at the wrong disk, when a partitioning tool writes a new table, or when the first megabytes of a drive are wiped to 'clear' it. From the outside the result looks like an empty or unknown disk. If only the partition table was changed, the header may be intact a little further in and can be found. If the header itself was written over, a backup is the only remedy.
What the laboratory does
The drive is imaged, and where LUKS sits inside or on top of other layers such as LVM or a RAID set, those are reassembled first. The header is located and checked. With your passphrase the volume is opened read-only from the image and the file system inside is recovered. We tell you early if the header is missing, because in that case no amount of further work will help.
- cryptsetup project: frequently asked questions (LUKS header and keyslots) — gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions
- hashcat v6.2.6 benchmark on an RTX 4090 (Chick3nman, 14 October 2022) — gist.github.com/Chick3nman/32e662a5bb63bc4f51b847bb422222fd
Quotations were checked against the sources named on 15 November 2026. Microsoft and Apple revise their pages, so follow the links for the current wording. None of the companies named has any connection with this site.
Asked about this.
Can you remove LUKS without the passphrase?
No.
I have the passphrase but the header was overwritten.
Then the passphrase has no key slot to open. Only a header backup would help.
My NAS uses LUKS. Does this apply?
The same principles do; see the NAS page for how the key is kept there.
Do not reset it. Tell us what the screen says.
Say what the screen shows, what kind of drive it is and whether you have the key or password. Within a working day you hear what is possible and what is needed, free of charge. Forensic decryption is £400 + VAT flat per drive, taken when the drive is booked in and payable whether or not data is recovered. Until then, change nothing on the computer.