NVME-FEAT-LBA-RAN(1)
π NAME π
okay bestie, welcome to NVME-FEAT-LBA-RAN(1) β the NVMe Manual page for nvme-feat-lba-range-type β and it is literally here for one iconic job: Get and set lba range type feature. slay. π
β¨ SYNOPSIS β¨
nvme [<global-options>] feat lba-range-type <device>
[--nsid=<nsid> | -n <nsid>] [--num=<num> | -N <num>]
[--types=<type-list,> | -t <type-list,>]
[--lbaros=<lbaro-list,> | -l <lbaro-list,>]
[--hlbars=<hlbar-list,>]
[--slbas=<slba-list,> | -s <slba-list,>]
[--nlbs=<nlb-list,> | -b <nlb-list,>]
[--guids=<guid-list,> | -g <guid-list,>]
[--sel=<select> | -S <select>] [--save]
π¦ DESCRIPTION π¦
okay so this command is your get-and-set situation for the LBA range type feature. Get and set lba range type feature β that's the whole vibe, no cap.
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1). choose your fighter.
If the character device is given, the --nsid option is mandatory, otherwise it will use the ns-id of the namespace for the block device you opened. For block devices, the ns-id used can be overridden with the same option.
π¨ bestie, note the mandatory bit: character device without --nsid is a no.
On success it returns 0, error code otherwise.
π OPTIONS π
-n <nsid>,--nsid=<nsid>β Sends the command with the requestednsid. This is required for the character devices, or overrides the block nsid if given. The broadcast value0xffffffffcan also be given asallor-1.-N <num>,--num=<num>β zeroes based LBA ranges number.-t <type-list,>,--types=<type-list,>β LBA range type list.-l <type-list,>,--lbaros=<lbaro-list,>β LBA range overwriteable list.--hlbars=<hlbar-list,>β hide LBA range list.-s <slba-list,>,--slbas=<slba-list,>β starting LBA list.-b <nlb-list,>,--nlbs=<nlb-list,>β zeroes based logical blocks number list.-g <guid-list,>,--guids=<guid-list,>β unique identifier list. Only supported with__int128available.-S <select>,--sel=<select>β TheSelect (SEL)field specifies which value of the attributes to return in the provided data:0β current β Current1β default β Default2β saved β Saved3β supported β Supported capabilities
--saveβ Save the attribute so that it persists through all power states and resets.
π GLOBAL OPTIONS π
These 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-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.
πΈ EXAMPLES πΈ
- This one has the program issue a
feat lba-range-typeto get:
# nvme feat lba-range-type /dev/nvme0 -n 1
- This one has the program issue a
ocp feat lba-range-typewith LBA ranges to set:
# nvme feat lba-range-type /dev/nvme0n1 --num=1 -t 0,1 -l 0,1 -h 1,0 -b 7,7 -s 0,4096 -g 1234,5678
π NVME π
Part of the nvme-user suite. periodt.
That's the whole page, bestie. Signing off from source/version NVMe, dated 10/30/2026, with NVME-FEAT-LBA-RAN(1) energy. πβ¨π¦
π¦ 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