CRYPTSETUP-LUKSDUMP(8)
π CRYPTSETUP-LUKSDUMP β the luksDump girlies' guide π
okay so bestie, you know the cryptsetup-luksDump(8) manual page? this is that, but make it make sense. grab a boba, we're dumping some headers. π§β¨
β¨ NAME β¨
cryptsetup-luksDump β dump the header information of a LUKS device
no cap, that's literally it. it shows you what's inside your LUKS header. π
πΈ SYNOPSIS πΈ
cryptsetup luksDump [<options>] <device>
that's the whole vibe. options in the middle, device at the end. periodt. π
π¦ DESCRIPTION π¦
Dump the header information of a LUKS device.
If you use the --dump-volume-key option, the LUKS device volume key gets dumped instead of the keyslot info. And with the --volume-key-file option, that volume key goes into a file instead of standard output.
π¨ okay pause. beware that the volume key cannot be changed without reencryption, and it can be used to decrypt the data stored in the LUKS container without a passphrase and even without the LUKS header. which means if the volume key is compromised, the whole device has to be erased or reencrypted to prevent further access. use this option carefully. fr fr, this is the scary part. π
A passphrase must be supplied to dump the volume key β either interactively, or via --key-file.
To dump an unbound key (LUKS2 format only), the --unbound parameter, a specific --key-slot id and a proper passphrase must be supplied β interactively, or via --key-file. The optional --volume-key-file parameter enables unbound keyslot dump to a file.
To dump LUKS2 JSON metadata (without basic header information like UUID), use the --dump-json-metadata option.
If --dump-volume-key is used with --key-file and the argument to --key-file is '-', no validation question will be asked and no warning given. (iconic honestly, it just goes) π«Ά
<options> can be [--dump-volume-key, --dump-json-metadata, --key-file, --keyfile-offset, --keyfile-size, --header, --disable-locks, --volume-key-file, --type, --unbound, --key-slot, --timeout, --external-tokens-path].
π OPTIONS π
here's the whole roster, bestie. every single one. no skips. π₯
--batch-mode,-qβ suppresses all confirmation questions. use with care! if the--verify-passphraseoption is not specified, this option also switches off the passphrase verification. it's giving "just do it and don't ask me". π--debugor--debug-jsonβ run in debug mode with full diagnostic logs. debug output lines are always prefixed by#. if--debug-jsonis used, additional LUKS2 JSON data structures are printed. very "tell me everything" of it. π--disable-locksβ disable lock protection for metadata on disk. this option is valid only for LUKS2 and is ignored for other formats.
β οΈ WARNING: Do not use this option unless you run cryptsetup in a restricted environment where locking is impossible to perform (where /run directory cannot be used).
--dump-json-metadataβ forluksDump(LUKS2 only), this option prints the content of the LUKS2 header JSON metadata area. raw JSON, no basic header info like UUID. β¨--dump-volume-key,--dump-master-key(OBSOLETE alias) β print the volume key in the displayed information. use with care, as the volume key can be used to bypass the passphrases, see also option--volume-key-file. this is the "main character energy but make it dangerous" option. π--external-tokens-path <absolute path>β override the system directory path where cryptsetup searches for external token handlers (or token plugins). it must be an absolute path (starting with/character). π--header <device or file storing the LUKS header>β use a detached (separated) metadata device or file where the LUKS header is stored. this option allows one to store the ciphertext and LUKS header on different devices. for commands that change the LUKS header (e.g.,luksAddKey), specify the device or file with the LUKS header directly as the LUKS device. π--help,-?β show help text and default parameters. the classic. π«Ά--key-description textβ set the key description in the keyring that will be used for passphrase retrieval.--key-file,-d fileβ read the passphrase from the file. if the name given is"-", then the passphrase will be read from stdin. in this case, reading will not stop at newline characters. see section NOTES ON PASSPHRASE PROCESSING incryptsetup(8)for more information. π--keyfile-offset valueβ skip value bytes at the beginning of the key file. little hop, then read. π¦--keyfile-size,-l valueβ read a maximum of value bytes from the key file. the default is to read the whole file up to the compiled-in maximum that can be queried with--help. supplying more data than the compiled-in maximum aborts the operation. this option is useful to cut trailing newlines, for example. if--keyfile-offsetis also given, the size count starts after the offset. ngl this one's lowkey underrated. π--key-slot,-S <0-N>β for LUKS operations that add key material, this option allows you to specify which keyslot is selected for the new key. the maximum number of keyslots depends on the LUKS version. LUKS1 can have up to8keyslots. LUKS2 can have up to32keyslots based on keyslot area size and key size, but a valid keyslot ID can always be between0and31for LUKS2. math girlies rise up. π₯--timeout,-t secondsβ the number of seconds to wait before a timeout on passphrase input via terminal. it is relevant every time a passphrase is asked. it has no effect if used in conjunction with--key-file. this option is useful when the system should not stall if the user does not input a passphrase, e.g., during boot. the default is a value of0seconds, which means to wait forever. (forever is a long time bestie π)--type typeβ specifies required device type, for more info, read the BASIC ACTIONS section incryptsetup(8).--unboundβ dumps the existing LUKS2 unbound keyslot. the lone wolf keyslot. πΈ--usageβ show short option help.--version,-Vβ show the program version. π--volume-key-file file,--master-key-file file(OBSOLETE alias) β use a volume key stored in a file. the volume key is stored in a file instead of being printed out to standard output. π
π€ REPORTING BUGS π€
found a bug? not the vibe. report bugs at the cryptsetup mailing list <cryptsetup@lists.linux.dev> or in the Issues project section <https://gitlab.com/cryptsetup/cryptsetup/-/issues/new>.
please attach the output of the failed command with the --debug option added. give them the receipts, bestie. πΈ
π SEE ALSO π
- Cryptsetup FAQ
<https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions> cryptsetup(8),integritysetup(8)andveritysetup(8)
go read those too, iykyk. π
ποΈ CRYPTSETUP ποΈ
Part of cryptsetup project <https://gitlab.com/cryptsetup/cryptsetup/>.
and that's the whole page, bestie!! π«Ά this was cryptsetup 2.8.8, dated 2026-09-07, from the cryptsetup project β so go forth, dump those headers, and stay hydrated. slay. πβ¨ππ¦πΈπ
π¦ where this page comes from
- arch rolling: cryptsetup 2.8.8-1 Β· GPL-2.0-or-later
- fedora 44: cryptsetup 2.8.8-1.fc44 Β· GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception AND LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception
- nixpkgs unstable: cryptsetup 2.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms