commands

cryptsetup — Inspect encrypted containers

Inspect LUKS header metadata in a prepared image. Never use key-dumping options or share sensitive output. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
cryptsetup luksDump FILE

Parameters & Attributes

NameTypeDescription
luksDumpoperandInspect metadata
FILEoperandPrepared disposable LUKS image

Return Value

exit status and output

The luksDump operation reports header metadata from the prepared LUKS image. A failed read or unrecognized header produces diagnostics; a readable header does not prove that the encrypted data can be unlocked.

Working Example

Example Snippetlinux
cryptsetup luksDump ./prepared-luks.img
Linux Reference