NVME-SED-LOCK(1)
π nvme-sed-lock(1) β the NVMe Manual, bestie edition π
okay so real talk: this is a page from the NVMe Manual, and it's about locking a SED Opal device. tiny command, big security energy. let's get into it π
β¨ NAME β¨
nvme-sed-lock β Lock a SED Opal Device π
like, it locks the thing. that's the whole vibe. iconic honestly.
π¦ SYNOPSIS π¦
nvme [<global-options>] sed lock
[--read-only | -r]
[--ask-key | -k]
<device>
so you call nvme with your <global-options> (optional, but they're there if you need them), then sed lock, then your flags, then the <device>. that's the order, don't fight it π«Ά
πΈ DESCRIPTION πΈ
Lock the given NVMe device. periodt π
that's literally it. you point it at a device, it locks it. no cap.
π OPTIONS π
-r,--read-onlyβ sets the locking range to read-only. so like, lock it but let people still read it π-k,--ask-keyβ prompts you for the SED authentication key. it'll ask, you'll type it, we move on π
π GLOBAL OPTIONS π
okay so these live at the top-level nvme command, but they're available to this subcommand too, and you deserve to know about all of them. no skipping, bestie β¨
--dry-runβ prints the command that would be executed, but doesn't actually execute it. rehearsal mode, no commitment π--no-ioctl-probingβ disables probing for 64-bit IOCTL support. just turns that check off π«--no-retriesβ disables retry logic on transient errors. one shot, one opportunity π-o <fmt>,--output-format=<fmt>β sets the reporting format tonormal,tabular,json, orbinary. only one output format at a time, pick your fighter π--output-format-version=<version>β selects the output format version. version 1 uses the original field naming, while version 2 (default) gives you more consistent and script-friendly field names. other versions are rejected β not negotiable π--quietβ suppresses informational messages. errors are still reported, and--quietcancels any--verbosefor the library log level. shhh π€«--set-options=<key=value>[,<key=value>...]β sets libnvme library options for this invocation. supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dirπ§--timeout=<ms>β sets the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff) β³-v,--verboseβ increases the level of detail in the output. may be specified multiple times to further increase verbosity β stack it, girl π£οΈ
also these options can be set as machine-wide defaults in nvme-cli.conf(5). a command-line flag always overrides the file. flag beats file, every time π―
π₯ EXAMPLES π₯
nvme sed lock /dev/nvme5n1
that's the whole example. clean, simple, slays π
π NVME π
Part of nvme-cli π
that's the page, bestie! this one's from the NVMe manual, dated 10/30/2026, and it's page NVME-SED-LOCK(1). go lock something responsibly π«Άβ¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms