CRYPTSETUP-ISLUKS(8)
π CRYPTSETUP-ISLUKS π
okay bestie, welcome to cryptsetup-isLuks β she's a lil command from the cryptsetup manual (section 8, Maintenance Commands, iykyk) and honestly? she's giving "am I LUKS or not" and nothing else. queen of the yes/no question. π
β¨ NAME β¨
cryptsetup-isLuks β check if a device is a LUKS device π¦
πΈ SYNOPSIS πΈ
cryptsetup isLuks [<options>] <device>
π DESCRIPTION π
So basically: this returns true if <device> is a LUKS device, and false otherwise. That's it. That's the whole job. iconic behaviour honestly. π
Slap on the -v option and you get actual human-readable feedback instead of cryptic silence. If it prints 'Command successful.' β congrats babe, that device is a LUKS device. π
And if you wanna get specific? By specifying --type you can query for a particular LUKS version. main character energy: know exactly which version you're asking about. π
Oh and for the record, <options> can be [--header, --type, --disable-locks]. that's the whole guest list. π«Ά
π OPTIONS π
--batch-mode,-qβ suppresses all the confirmation questions. no "are you sure" energy, just vibes. Use with care! π Also β heads up β if the--verify-passphraseoption is not specified, this option also switches off the passphrase verification. so yeah, careful bestie.--debugor--debug-jsonβ run in debug mode with full diagnostic logs. every debug output line is always prefixed by#. And if you go with--debug-json, you also get additional LUKS2 JSON data structures printed out. extra data? we love to see it. β¨--disable-locksβ turns off lock protection for metadata on disk. This option is valid only for LUKS2 and gets ignored for every other format. ngl, it only works for one of the girlies. π
β οΈ WARNING: do not use this option unless you're running cryptsetup in a restricted environment where locking is literally impossible to perform (like, where the /run directory cannot be used). fr fr, this one is a last resort. π¨
--header <device or file storing the LUKS header>β use a detached (separated) metadata device or file where the LUKS header lives. this option lets you keep the ciphertext and the LUKS header on different devices β long-distance relationship, but make it storage. π¦
For commands that change the LUKS header (e.g., luksAddKey), specify the device or file with the LUKS header directly as the LUKS device. yes, directly. no middleman. π
--help,-?β show help text and default parameters. always read the manual, bestie. π--type typeβ specifies the required device type. for more info, read the BASIC ACTIONS section incryptsetup(8). go read it, I'll wait. π«Ά--usageβ show short option help. the lil snack-sized version. π--verbose,-vβ print more information on command execution. this is the one that gives you the human-readable feedback, remember? β¨--version,-Vβ show the program version. gotta know which era of cryptsetup you're living in. πΈ
π REPORTING BUGS π
Found a bug? Report it at the cryptsetup mailing list <cryptsetup@lists.linux.dev> or in the Issues project section at <https://gitlab.com/cryptsetup/cryptsetup/-/issues/new>. π
And please β pretty please β attach the output of the failed command with the --debug option added. we need the receipts, bestie. π
π SEE ALSO π
- Cryptsetup FAQ β
<https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions> cryptsetup(8),integritysetup(8)andveritysetup(8)π
π CRYPTSETUP π
Part of the cryptsetup project β <https://gitlab.com/cryptsetup/cryptsetup/>. the whole squad. π
and that's the page, babe! this was cryptsetup 2.8.8, dated 2026-09-07 β literally the freshest. now go check if your device is LUKS, periodt. π β¨π¦
π¦ 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