NVME-SNDK-NAMESPAC(1)
π NAME π
okay so bestie, this is the NVME-SNDK-NAMESPAC(1) page β title and all β and it lives in the NVMe Manual. The command is nvme-sndk-namespace-resize, and its whole main-character job is: resizes the device's namespace. periodt. π
β¨ SYNOPSIS β¨
nvme [<global-options>] sndk namespace-resize <device>
[--nsid=<NAMESPACE ID>, -n <NAMSPACE ID>]
[--op-option=<OP OPTION>, -O <OP OPTION>]
π¦ DESCRIPTION π¦
okay so for the NVMe device you hand over, this sends the sndk Vendor Specific Command that modifies the namespace size reported the device. iykyk π«
The <device> parameter is mandatory NVMe character device (ex: /dev/nvme0).
π¨ no cap: this will only work on Sandisk devices supporting this feature. Results for any other device are undefined. fr fr π
π OPTIONS π
-n <NAMESPACE ID>,--namespace-id=<NAMESPACE_ID>β Namespace ID; ID of the namespace to resize. The broadcast value0xffffffffcan also be given asallor-1. π«Ά-O <OP OPTION>,--op-option=<OP OPTION>β Overprovisioning Option; defaults to0xF. Valid Values:0x1- 7% of Original TNVMCAP reported value;0x2- 28% of Original TNVMCAP reported value;0x3- 50% of Original TNVMCAP reported value;0xF- 0% of Original TNVMCAP reported value (original config); All other values - reserved. bestie, read the valid values carefully π
π GLOBAL OPTIONS π
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-runβ Print the command that would be executed, but do not actually execute it. very "look but don't touch" energy β¨--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.--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.--quietβ Suppress informational messages. Errors are still reported, and--quietcancels any--verbosefor the library log level. π€«--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.--timeout=<ms>β Set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff). β³-v,--verboseβ Increase the level of detail in the output. May be specified multiple times to further increase verbosity.
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file. the way that's so tidy π§
π₯ EXAMPLES π₯
- Resizes namespace 1 to 50% of the original TNVMCAP reported value:
# nvme sndk namespace-resize /dev/nvme0 -n 1 -O 3
- Resizes namespace 2 to 7% of the original TNVMCAP reported value:
# nvme sndk namespace-resize /dev/nvme0 --namespace-id=2 --op-option=1
π NVME π
Part of the nvme-user suite. π
okay byeee π«Ά β cute sign-off from NVMe, dated 10/30/2026. π
π¦ 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