NVME-NS-GET-ID(1)
π NVME-NS-GET-ID(1) π
okay so this is a page from the NVMe Manual and honestly it's a tiny little baby of a manpage but it's useful, so let's get into it π«Ά
β¨ NAME β¨
nvme-ns-get-id β grabs the namespace ID for an NVMe block device. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
nvme [<global-options>] ns get-id <device>
π¦ DESCRIPTION π¦
So like. You point this at an NVMe block device and it retrieves the namespace ID for it. Simple, clean, no drama.
The <device> param is mandatory, bestie β you literally cannot skip it β and it has to be an NVMe block device (think: /dev/nvme0n1). that's the vibe check. if it's not an NVMe block device, it's not passing π«
π OPTIONS π
π GLOBAL OPTIONS π
These ones are defined up at the top-level nvme command, but they're available to this subcommand too β so you get to use them here, lucky you β¨
--dry-runβ prints the command it would execute, but doesn't actually execute it. it's giving "manifesting" β you see the plan, you don't do the thing π--no-ioctl-probingβ turns off probing for 64-bit IOCTL support.--no-retriesβ kills the retry logic on transient errors. one shot, no second chances, main character energy π-o <fmt>,--output-format=<fmt>β sets the reporting format tonormal,tabular,json, orbinary. Only one output format at a time, so don't get greedy and pick two, it's not that kind of party π--output-format-version=<version>β picks which output format version you want. Version1uses the original field naming, while version2(the default, queen behavior) gives you more consistent and script-friendly field names. Any other version? Rejected. not invited. blocked π«--quietβ suppresses informational messages. Errors still get reported though (she's not gonna hide the important stuff from you). also,--quietcancels any--verbosefor the library log level β they like, cancel each other out, iykyk.--set-options=<key=value>[,<key=value>...]β sets libnvme library options just for this invocation. the supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir. yes you can stack them, the,<key=value>is right there π--timeout=<ms>β sets the timeout for the command in milliseconds.infiniteor-1waits with no time limit (0xffffffff). literally forever. no cap β³-v,--verboseβ increases the level of detail in the output. you can throw this multiple times to crank the verbosity even higher π₯
β¨ psst β these options can also be set as machine-wide defaults in nvme-cli.conf(5). but a command-line flag always overrides the file. always. the flag wins. periodt π
π EXAMPLES π
- Shows the namespace id for the given block device:
# nvme ns get-id /dev/nvme0n1
look at her go ππ
π NVME π
Part of the nvme-user suite π§
and that's the page!! slay π this was the NVMe Manual, dated 10/30/2026, from NVME-NS-GET-ID(1) and she ate, no crumbs πΈβ¨π
π¦ 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