NVME-NS-RESCAN(1)

πŸ¦‹ nvme-ns-rescan(1) β€” the NVMe manual, but make it cute πŸ¦‹

okay so bestie, welcome to nvme-ns-rescan πŸ’… this is a page from the NVMe Manual, and it's literally the entire vibe of "hey controller, go look at your namespaces again." Let's get into it ✨


🌸 NAME 🌸

nvme-ns-rescan β€” aka the little command that rescans the nvme namespaces 🫢


πŸŽ€ SYNOPSIS πŸŽ€

nvme [<global-options>] ns-rescan <device>

that's the whole shape of it, no cap πŸ’–


✨ DESCRIPTION ✨

So what does it do? It requests the NVMe controller rescans the namespaces. That's it. That's the errand 🧚

Now listen, the <device> param is mandatory β€” like, not optional, not "ehh maybe later," mandatory πŸ™ˆ and it must be an NVMe character device, for example /dev/nvme0. Get that wrong and it's not giving what you need it to give πŸ’€


πŸ”₯ OPTIONS πŸ”₯

πŸ‘‘ GLOBAL OPTIONS πŸ‘‘

okay so these bad boys are defined at the top-level nvme command, and they're available to this subcommand too. main character energy, they show up everywhere 🌈

  • --dry-run β€” prints the command that would be executed, but does not actually execute it. window shopping, but for syscalls πŸ’…
  • --no-ioctl-probing β€” disables probing for 64-bit IOCTL support. if you wanna skip the vibe check, here's your flag 😌
  • --no-retries β€” disables retry logic on transient errors. one shot, no takebacks 🎯
  • -o <fmt>, --output-format=<fmt> β€” sets the reporting format to normal, tabular, 'json, or binary. and! only one output format at a time, so don't be greedy bestie ✨
  • --output-format-version=<version> β€” selects the output format version. version 1 uses the original field naming, while version 2 (default) provides more consistent and script-friendly field names. other versions are rejected β€” no exceptions 🚫
  • --quiet β€” suppresses informational messages. errors are still reported, and --quiet cancels any --verbose for the library log level. shhh 🀫
  • --set-options=<key=value>[,<key=value>...] β€” sets libnvme library options for this invocation. supported keys are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir. mix and match, it's giving customization πŸ’œ
  • --timeout=<ms> β€” sets the timeout for the command in milliseconds. infinite or -1 waits without a time limit (0xffffffff). patience is a virtue fr fr ⏳
  • -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) πŸŽ€ but a command-line flag always overrides the file. command line stays undefeated πŸ‘‘

πŸ’– EXAMPLES πŸ’–

  • rescans the nvme namespaces. literally what it says on the tin πŸ“
# nvme ns-rescan /dev/nvme0

🌟 NVME 🌟

part of the nvme-user suite 🫢 iykyk


and that's the page, bestie!! this one's from the NVMe manual, dated 10/30/2026, and it's page NVME-NS-RESCAN(1) in the source β€” slay, stay hydrated, and may all your namespaces rescan flawlessly πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from