NVME-WDC-NAMESPACE(1)
π¦ NVME-WDC-NAMESPACE(1) π¦
okay so this is a page from the NVMe Manual, and bestie, we're talking about nvme-wdc-namespace-resize today β a whole vibe of a command that literally resizes your device's namespace. no cap. let's get into it π
β¨ NAME β¨
nvme-wdc-namespace-resize β resizes the device's namespace. that's it, that's the whole thing π
β¨ SYNOPSIS β¨
nvme [<global-options>] wdc namespace-resize <device>
[--nsid=<NAMESPACE ID>, -n <NAMSPACE ID>]
[--op-option=<OP OPTION>, -O <OP OPTION>]
(yes, <NAMSPACE ID> is spelled exactly like that in the synopsis β we don't fix, we report π«Ά)
β¨ DESCRIPTION β¨
so for the NVMe device you hand it, this sends the WDC Vendor Specific Command that modifies the namespace size reported by the device. like, the device is out here reporting a size and we're like "girl, change it." π
the <device> parameter is mandatory and it's an NVMe character device (ex: /dev/nvme0), iykyk.
β οΈ this will only work on WDC devices that support this feature. results for any other device are undefined β so please don't come for me if you try it on something random π
β¨ OPTIONS β¨
-n <NAMESPACE ID>,--namespace-id=<NAMESPACE_ID>β namespace ID; the ID of the namespace you wanna resize. the broadcast value0xffffffffcan also be given asallor-1. iconic little shortcut, honestly π-O <OP OPTION>,--op-option=<OP OPTION>β overprovisioning option; defaults to0xF. valid values, bestie, listen up:0x1β 7% of Original TNVMCAP reported value0x2β 28% of Original TNVMCAP reported value0x3β 50% of Original TNVMCAP reported value0xFβ 0% of Original TNVMCAP reported value (original config)- all other values β reserved π«
β¨ GLOBAL OPTIONS β¨
these are defined at the top-level nvme command and are available to this subcommand too. so they're like the main character options that let the subcommands hang out with them π
--dry-runβ print the command that would be executed, but do not actually execute it. a little peek, no commitment π--no-ioctl-probingβ disable probing for 64-bit IOCTL support.--no-retriesβ disable retry logic on transient errors.-o <fmt>,--output-format=<fmt>β set the reporting format tonormal,tabular,'json, orbinary. only one output format may be used at a time. (that stray apostrophe beforejson` is canon, don't @ me π)--output-format-version=<version>β select 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. sorry to those versions π--quietβ suppress informational messages. errors are still reported, and--quietcancels any--verbosefor the library log level. shhh π€«--set-options=<key=value>[,<key=value>...]β set libnvme library options for this invocation. supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir. mix and match, slay β¨--timeout=<ms>β set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff). no clock, no stress β³-v,--verboseβ increase the level of detail in the output. may be specified multiple times to further increase verbosity. say it with me: more v's, more tea π₯
these options can also be set as machine-wide defaults in nvme-cli.conf(5). a command-line flag always overrides the file. periodt π
β¨ EXAMPLES β¨
- resizes namespace 1 to 50% of the original TNVMCAP reported value:
# nvme wdc namespace-resize /dev/nvme0 -n 1 -O 3
- resizes namespace 2 to 7% of the original TNVMCAP reported value:
# nvme wdc namespace-resize /dev/nvme0 --namespace-id=2 --op-option=1
see? two lines and you're a namespace-resizing legend π
β¨ NVME β¨
part of the nvme-user suite. you're in good company, bestie π§
and that's the whole page, no crumbs left π this gorgeous little number comes from the NVMe folks, dated 10/30/2026, filed under NVME-WDC-NAMESPACE(1) β go forth and resize responsibly, mwah π
π¦ 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