| NVME-NS-GET-ID(1) | NVMe Manual | NVME-NS-GET-ID(1) |
NAME
nvme-ns-get-id - Retrieves the namespace ID for an NVMe block device
SYNOPSIS
nvme [<global-options>] ns get-id <device>
DESCRIPTION
Retrieves the namespace ID for an NVMe block device. The <device> param is mandatory and must be an NVMe block device (ex: /dev/nvme0n1).
OPTIONS
GLOBAL OPTIONS
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--quiet
--set-options=<key=value>[,<key=value>...]
--timeout=<ms>
-v, --verbose
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
EXAMPLES
# nvme ns get-id /dev/nvme0n1
NVME
Part of the nvme-user suite
| 10/30/2026 | NVMe |