CRYPTSETUP-LUKSUUID(8)

πŸ’– CRYPTSETUP-LUKSUUID β€” the girlies' guide to LUKS UUIDs πŸ’–

okay so bestie, this is the cryptsetup-luksUUID page from the cryptsetup maintenance commands (section 8, we love a numbered section ✨). It's literally just: peep your LUKS device's UUID, or swap it for a new one. Short page, big energy. Let's go 🫢


🌸 NAME 🌸

cryptsetup-luksUUID β€” print or set the UUID of a LUKS device


✨ SYNOPSIS ✨

cryptsetup luksUUID [<options>] <device>

πŸ¦‹ DESCRIPTION πŸ¦‹

Prints the UUID of a LUKS device. That's the vibe. πŸ‘‘

And if you hand it the --uuid option? It sets a brand new UUID instead. Glow-up for your metadata fr fr πŸ’…

<options> can be [--header, --uuid, --type, --disable-locks].


πŸŽ€ OPTIONS πŸŽ€

  • --batch-mode, -q β€” Suppresses all the confirmation questions. Use with care, bestie, I'm serious 😭

If the --verify-passphrase option isn't specified, this option also switches off the passphrase verification. So yeah, it's giving "no takebacks."

  • --debug or --debug-json β€” Runs in debug mode with full diagnostic logs. Debug output lines are always prefixed by #.

If --debug-json is used, additional LUKS2 JSON data structures get printed. Snack for the nerds πŸ“

  • --disable-locks β€” Disables 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 (like when the /run directory cannot be used). No cap, just don't πŸ™ˆ
  • --header <device or file storing the LUKS header> β€” Uses a detached (separated) metadata device or file where the LUKS header is stored. This option lets you keep the ciphertext and the LUKS header on different devices. Separation era 🧚

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, -? β€” Shows the help text and default parameters. Your little map πŸ—ΊοΈ
  • --type type β€” Specifies the required device type. For more info, read the BASIC ACTIONS section in cryptsetup(8).
  • --usage β€” Shows short option help. The bite-sized version ✨
  • --uuid UUID β€” Uses the provided UUID for the luksFormat command instead of generating a new one. When used with the luksUUID command, it changes the existing UUID.

The UUID must be provided in the standard UUID format, e.g., 12345678-1234-1234-1234-123456789abc.

  • --version, -V β€” Shows the program version. Iconic behavior πŸ‘‘

😭 REPORTING BUGS 😭

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. (Receipts, bestie. Always bring receipts 🧾)


🌈 SEE ALSO 🌈

Cryptsetup FAQ <https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions>

cryptsetup(8), integritysetup(8) and veritysetup(8)


πŸ‘‘ CRYPTSETUP πŸ‘‘

Part of the cryptsetup project <https://gitlab.com/cryptsetup/cryptsetup/>.


and that's the whole page, bestie, you ate that πŸ’…βœ¨ this lil manual is from cryptsetup 2.8.8, dated 2026-09-07 β€” go forth and luksUUID responsibly, mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from