NVME-READ(1)
NVME-READ(1) π
πΈ NAME πΈ
nvme-read β bestie, this is the page that sends an NVMe Read command and gives you the results. Itβs straight from the NVMe Manual, and weβre making it make sense. Periodt. π
π¦ SYNOPSIS π¦
nvme [<global-options>] read <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]
Heads-up, bestie: the synopsis is a little feral. It says--show-commandwhile the options block says--show-cmd, it has--storage-tag<storage-tag>with no=, and it also shows--limited-retry | -lplus--app-tag=<apptag> | -a <apptag>. Iβm keeping every character exactly as the page has it. No cap. π
π DESCRIPTION π
Okay so the Read command reads the logical blocks specified by the command from the medium, then copies them into the data buffer you provided. If you donβt provide a file, it uses stdout by default. Slay. β¨
π OPTIONS π
-s <slba>,--start-block=<slba>β Start block. Thatβs the starting logical block address, bestie.-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). The synopsis form is-c <nlb>/--block-count=<nlb>.-b <size>,--block-size=<size>β If specified, the logical block size in bytes, with metasize also describing the metadata size for an individual block. Otherwise itβs discovered by identify namespace.-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 is provided, contents are sent toSTDOUT.-M <metadata-file>,--metadata=<metadata-file>β Metadata file, if necessary.-p <prinfo>,--prinfo=<prinfo>β Protection Information field definition. Hereβs the bit breakdown, because the table is giving very structured:- 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. (Thatβs the pageβs exact wording, not my typo π) - 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.-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 spells it--show-command, so keep both exact. π-w,--dry-runβ Do not actually send the command. If you want to use--dry-runoption,--show-cmdoption must be set. Otherwise--dry-runoption will be ignored. Important caveat, bestie.-t,--latencyβ Print out the latency the IOCTL took (in us).-g <storage-tag>,--storage-tag=<storage-tag>β Variable Sized Expected Logical Block Storage Tag(ELBST). The synopsis literally has--storage-tag<storage-tag>with no=; Iβm not touching it.-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.
Extra synopsis-only shoutout, because every flag counts:--limited-retry,-l,--app-tag=<apptag>, and-a <apptag>are in the SYNOPSIS but donβt get their own separate OPTIONS entries on this page. Theyβre still here, still iconic, still exact. π«Ά
π GLOBAL OPTIONS π
These are defined at the top-level nvme command and are available to this subcommand too:
--dry-runβ Print the command that would be executed, but do not actually execute it.--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. (Yes, the page has that stray apostrophe in'json. Keeping it.)--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>...]β 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. π
π EXAMPLES π
No examples yet.
The page said it, not me. When they drop, theyβll be here. π§
π NVME π
Part of the nvme-user suite.
π Thatβs the whole page, bestie β source/version NVMe, date 10/30/2026, footer NVME-READ(1). Periodt. π
π¦ 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