NVME-NS-GET-ID(1)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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 to normal, tabular, json, or binary. 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. Version 1 uses the original field naming, while version 2 (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, --quiet cancels any --verbose for 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 are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir. yes you can stack them, the ,<key=value> is right there πŸ“
  • --timeout=<ms> β€” sets the timeout for the command in milliseconds. infinite or -1 waits 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