NVME-WRITE(1)
π NAME π
Okay bestie, welcome to NVME-WRITE(1), straight from the NVMe Manual β this one sends an NVMe write command and gives you results. Storage main character energy, no cap β¨
β¨ SYNOPSIS β¨
nvme [<global-options>] write <device>
[--start-block=<slba> | -s <slba>]
[--block-count=<nlb> | -c <nlb>]
[--block-size=<size> | -b <size>]
[--data-size=<size> | -z <size>]
[--metadata-size=<size> | -y <size>]
[--ref-tag=<reftag> | -r <reftag>]
[--data=<data-file> | -d <data-file>]
[--metadata=<metadata-file> | -M <metadata-file>]
[--prinfo=<prinfo> | -p <prinfo>]
[--app-tag-mask=<appmask> | -m <appmask>]
[--app-tag=<apptag> | -a <apptag>]
[--limited-retry | -l] [--force-unit-access | -f]
[--dir-type=<type> | -T <type>]
[--dir-spec=<spec> | -S <spec>] [--dsm=<dsm> | -D <dsm>]
[--show-command | -V] [--dry-run | -w] [--latency | -t]
[--storage-tag<storage-tag> | -g <storage-tag>]
[--storage-tag-check | -C] [--force]
π¦ DESCRIPTION π¦
The Write command writes the logical blocks specified by the command to the medium from the data data buffer provided. If you donβt provide a file, it will use stdin by default, bestie π
π OPTIONS π
-s <slba>,--start-block=<slba>β Start block. Thatβs the starting point, periodt.-c,--block-countβ The number of blocks to transfer. This is a zeroes based value to align with the kernelβs use of this field. (ie.0means transfer1block). Yes, zero really means one here β iconic behavior π-b <size>,--block-size=<size>β If specified, the logical block size in bytes, withmetasizealso describing the metadata size for an individual block. Discovered by identify namespace otherwise.-z <size>,--data-size=<size>β Size of data, in bytes.-y <size>,--metadata-size=<size>β Size of metadata in bytes.-d <data-file>,--data=<data-file>β Data file. If none provided, contents are sent fromSTDIN.-M <metadata-file>,--metadata=<metadata-file>β Metadata file, if necessary.-p <prinfo>,--prinfo=<prinfo>β Protection Information field definition.- Bit
3β PRACT: Protection Information Action. When set to1, PI is stripped/inserted on read/write when the block formatβs metadata size is8. When set to0, metadata is passes. - Bits
2:0β PRCHK: Protection Information Check:- Bit
2β Set to1enables checking the guard tag. - Bit
1β Set to1enables checking the application tag. - Bit
0β Set to1enables checking the reference tag.
- Bit
- Bit
-r <reftag>,--ref-tag=<reftag>β Optional reftag when used with protection information.-m <appmask>,--app-tag-mask=<appmask>β Optional application tag mask when used with protection information.-a <apptag>,--app-tag=<apptag>β Optional application tag when used with protection information.-l,--limited-retryβ Sets the limited retry flag.-f,--force-unit-accessβ Set the force-unit access flag.-T <type>,--dir-type=<type>β Optional directive type. Thenvme-clionly enforces the value be in the defined range for the directive type, though the NVMe specification (1.3a) defines only one directive,01h, for write stream identifiers.-S <spec>,--dir-spec=<spec>β Optional field for directive specifics. When used with write streams, this value is defined to be the write stream identifier. Thenvme-cliwill not validate the stream requested is within the controllerβs capabilities.-D <dsm>,--dsm=<dsm>β The optional data set management attributes for this command. The argument for this is the least significant8bits of the DSM field in a write command; the most significant16bits of the field come from the directive specific field, if used. This may be used to set attributes for the LBAs being written, like access frequency, type, latency, among other things, as well as yet to be defined types. Please consult the NVMe specification for detailed breakdown of how to use this field.-V,--show-cmdβ Print out the command to be sent. (The synopsis says--show-command; yep, thatβs literally whatβs printed up there, bestie π)-w,--dry-runβ Do not actually send the command. If you want to use--dry-run, the--show-cmdoption must be set. Otherwise--dry-runwill be ignored.
π«Ά Real talk: local--dry-runneeds--show-cmd, or it gets ignored. Thatβs the rule.
-t,--latencyβ Print out the latency theIOCTLtook (inus).-g <storage-tag>,--storage-tag=<storage-tag>β Variable Sized Expected Logical Block Storage Tag(ELBST).-C,--storage-tag-checkβ This flag enables Storage Tag field checking as part of end-to-end data protection processing.--forceβ Ignore namespace is currently busy and performed the operation even though. Yes, sheβs pushing through anyway π
π 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.--no-ioctl-probingβ Disable probing for 64-bitIOCTLsupport.--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. Version1uses the original field naming, while version2(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>...]β Setlibnvmelibrary 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.
π EXAMPLES π
The page literally says: No examples yet. Weβre not inventing any β manifesting examples for later though π
π NVME π
Part of the nvme-user suite.
Thatβs the whole manual page, bestie π«Ά This oneβs from the NVMe source/version, dated 10/30/2026. 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