comparison Servers & hardware
NVMe namespaces versus disk partitions
An NVMe namespace is a block address space exposed through a controller. A partition is a range within an exposed device. To interpret a block number, first identify which address space it belongs to.
What it means
An NVMe namespace gives a host a logical block address space. For a controller to expose that namespace to the host, the namespace must be attached to that controller. NVMe Namespaces
A partition answers a different question: which range of blocks within the exposed device are you addressing? In a Linux device name such as nvme0n1p2, nvme0n1 names the namespace block device and p2 identifies a partition on it. A filesystem can reside on that partition. Managing NVMe devices
Try it
The simulation uses a fixed layout on controller C0. Namespaces N1 and N2 each have 200 blocks, with logical block addresses (LBAs) from 0 through 199. It neither measures nor changes your hardware.
NVMe namespaces versus disk partitions
Map a synthetic controller to namespaces, partitions and filesystems; change layer boundaries and identify which address space owns a block.
Synthetic inputs only. This is not a measurement of your hardware or service.
The namespace selects a logical address space; a partition divides that exposed block device. The same numeric LBA in another namespace is a different logical address.
Namespace-relative and partition-relative addresses
- Address-space outcome
- mapped
- Namespace
- N1
- Partition
- N1-P2
- Partition-relative address
- 20 LBA
- Physical separation
- not-established
Walk the address-space layers
- controller C0
- namespace N1
- namespace LBA 120
- partition N1-P2
- partition-relative LBA 20
Evaluated evidence
- Namespace address space
- N1
- Namespace block address (LBA)
- 120
- Attached to host-visible controller
- yes
- Namespace size (blocks)
- 200
Fixed synthetic C0,N1,N2 layout; no namespace creation, partitioning or proof of physical media/failure isolation.
About this model
Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.
Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.
No external request, device command, stored-input history or measurement is performed.
Start with Namespace address space set to N1, Namespace block address set to 120, and Attached to host-visible controller set to Yes. Read the address in two steps:
- Find the range in
N1that contains LBA 120.N1-P1covers 0–99 andN1-P2covers 100–199, so the block belongs toN1-P2. - Count from the start of that partition:
120 − 100 = 20. Namespace LBA 120 and partition-relative LBA 20 describe the same logical block here. The boundary matters: N1 LBA 99 is the last block ofN1-P1, while N1 LBA 100 is block 0 ofN1-P2.
Choose Use the same LBA in namespace N2. The number stays at 120, but the lookup now starts in N2. Its partition N2-P1 starts at 0, so the partition-relative LBA is 120 − 0 = 120. N1:120 and N2:120 are different logical addresses, even though the controller and the LBA number match.
Inspect the evidence boundary returns to N1:120 with attachment set to Unknown / evidence unavailable. The result is unknown: the layout alone cannot tell you whether the host can address that block through C0. Setting attachment to No gives a different result: the namespace is not exposed through C0, so there is no host-visible partition mapping in this example.
An invalid address is different from unknown attachment. Enter a whole-number decimal string: 200 is outside either namespace, and 120.000000000000000001 is invalid, not rounded to 120. Reset restores the default scenario (N1, 120, Yes) and clears prior steps, errors, history, and comparisons.
In practice
If a report says “block 20,” record the controller, namespace, partition start, and layer that supplied the number. For N1-P2 on C0, a partition-relative LBA of 20 maps back to N1 LBA 100 + 20 = 120. If 20 is instead a filesystem block number, identify the filesystem and its mapping before adding a partition offset. The simulation stops at the partition layer.
Use the layer that owns the address to interpret the number. Do not use a logical boundary as evidence of a physical one: separate namespace labels do not establish separate flash chips or independent failure domains. NVMe Namespaces
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Can one controller expose multiple namespaces?
Yes. A controller can provide access to multiple namespaces, and attachment determines which namespaces are exposed through it. The sample has one controller and two separate logical address spaces.
Is a namespace a partition?
Not in the depicted layering. The namespace is the exposed logical block address space; the synthetic partitions divide that block device into smaller address ranges.
Does a namespace prove physical isolation?
No. NVM Express explicitly distinguishes logical namespace isolation from physical block isolation. A namespace label alone does not identify separate flash chips or failure domains.
Why must an LBA include its device context?
LBA 120 in N1 is not LBA 120 in N2. A bare number omits the address space, and a partition-relative address also needs the partition’s starting offset to map back to its namespace.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- NVMe Namespaces
What is a namespace; NSZE/NCAP/NUSE; attachment. A namespace exposes a logical address space; namespaces need not imply physical isolation and require attachment to be host-visible.
Checked .
- Managing NVMe devices
Introduction and device names. Linux exposes NVMe namespace block devices that may contain partitions and filesystems; partition suffixes identify the lower address-space layer.
Checked .