Use it as the entry point for adding, identifying or troubleshooting disks.
Disks & Block Devices
Disks and block devices are the storage the kernel presents as /dev/sdX, /dev/nvmeXnY, /dev/vdX, with partitions, RAID, LVM and encryption layered on top before a filesystem.
1. lsblk -f — which device, what is on it?
2. ls -l /dev/disk/by-id — map to serial/WWN.
3. Health: smartctl -H /dev/<disk> / nvme smart-log.
4. New disk not visible → rescan the bus.
5. Then partition/LVM/filesystem as needed.
disk detected → block device → partition table → RAID/LVM/crypt layers → filesystem → mount
For Disks & Block Devices, continue with the first unproven Topic check: Capture lsblk-style topology, major/minor identity, size, transport and parent/child relationships. If that boundary is healthy, advance to the adjacent check: Correlate kernel/udev events with the expected physical or virtual device identity. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lsblkPrimary Commands
Configuration and operational commands for this Topic.
lsblkVerifyDisplay block-device topology, sizes, types, mount relationships and selected device attributes.
Use when: Primary lookup intent: verify. Use lsblk when the lookup goal is to display block-device topology, sizes, types, mount relationships and selected device attributes. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsblk is documented as an operational lookup primitive under Disks & Block Devices. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
blkidReferenceRead block-device signatures such as filesystem type, UUID and label.
Use when: Primary lookup intent: verify. Use blkid when the lookup goal is to read block-device signatures such as filesystem type, UUID and label. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. blkid is documented as an operational lookup primitive under Disks & Block Devices. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
fdiskReferenceInspect or edit disk partition tables using a sector-oriented partitioning interface.
Use when: Primary lookup intent: destructive. Use fdisk when the lookup goal is to inspect or edit disk partition tables using a sector-oriented partitioning interface. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for fdisk: Re-read the partition table, verify start/end sectors and test each dependent storage layer/workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: destructive. Safety class: destructive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. fdisk is documented as an operational lookup primitive under Disks & Block Devices. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
partedReferenceInspect or edit partition tables and partition boundaries with scriptable size units.
Use when: Primary lookup intent: destructive. Use parted when the lookup goal is to inspect or edit partition tables and partition boundaries with scriptable size units. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for parted: Re-read partition boundaries and test each dependent storage layer and workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: destructive. Safety class: destructive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. parted is documented as an operational lookup primitive under Disks & Block Devices. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
hardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/O
Healthy evidence: the expected device appears once with the correct size, transport, parentage, partition table and identifiers, and the intended upper layer maps to it consistently.
Step 2 Commands Verify boundary
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID
blkid
fdisk -l
smartctl -a /dev/sda
Step 3 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture lsblk-style topology, major/minor identity, size, transport and parent/child relationships.
- Correlate kernel/udev events with the expected physical or virtual device identity.
- Inspect partition-table type and stable identifiers without writing changes first.
- Trace the selected block device upward into LVM/filesystem/mount and the original workload.
Verification chain. hardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/O
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: duplicate or changing identifiers, wrong size/parentage, missing kernel discovery, stale device nodes or an unexpected partition map indicate the failure is below the filesystem/application layer.
Block-device evidence shows kernel-visible topology and identifiers only, but it does not show filesystem integrity, LVM correctness, mount state or application data consistency.
Next check: Continue from the first step that has not been verified: show backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change.
Step 5 Common mistakes Narrow the fault
- Partitioning the wrong disk (check serial and size first).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Block Devices are kernel-managed random-access storage endpoints represented by major/minor device numbers and commonly exposed through /dev, including disks, virtual disks, multipath mappings and partition devices.
Subtopic GPTGPT is the GUID Partition Table format, using protective MBR compatibility, a primary header/table and a backup header/table with CRC-protected metadata and globally unique partition identifiers.
Subtopic MBRMBR partitioning stores boot code and a four-entry primary partition table in the first sector, with extended/logical partition chaining used to exceed four partitions and classic 32-bit LBA limits constraining large disks.
Subtopic PartitionsPartitions divide a block device into bounded LBA ranges that the kernel exposes as child block devices; their correctness depends on the parent disk, table format, alignment and non-overlapping start/end boundaries.
Subtopic UUIDUUIDs provide stable identifiers at multiple Linux storage layers, including GPT partition GUID/PARTUUID, filesystem UUID and LVM PV/LV identities; the identifier type must be matched to the layer being referenced.
Subtopic udevudev is the userspace device manager that reacts to kernel device events, applies rules and properties, and creates or updates device-node permissions and persistent symlinks used by Linux storage consumers.
Identify disks by serial or WWN (/dev/disk/by-id), not by sdX order. Map the full stack with lsblk before changing anything. New disks in VMs may need a rescan (echo 1 > /sys/class/scsi_device/*/device/rescan or rescan-scsi-bus).
lsblk -f— disks, partitions, filesystems, UUIDs and mount pointsblkid— UUIDs, labels and typesfdisk -l / parted -l— partition tablesudevadm info /dev/<dev>— device properties
ReferenceWhat it is1 section · depth on demand
Core model
Start with kernel discovery and transport visibility, then map major/minor device identity, partition tables, partitions and stable identifiers. Separate a device node in /dev from an actually present backing device, and separate block-device visibility from readable filesystem or application data. Preserve before/after topology and kernel events before changing partition state.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Block-device evidence shows kernel-visible topology and identifiers only, but it does not show filesystem integrity, LVM correctness, mount state or application data consistency.
In depth
Surveying disks and their layers with lsblk
On a Linux server, storage usually comes in layers: a physical disk, partitions, perhaps RAID or LUKS, LVM, and finally a file system. lsblk shows them all as a tree. The lsblk(8) manual page describes the tool:
- It lists available block devices, using sysfs and the udev database.
- RAM disks are left out unless
-ais given. -fadds file system information: type, version, label, UUID, free space, use and mount point.-oselects columns,-pprints full device paths and-dhides the layers below a device.-tshows topology (alignment and I/O sizes),--discardshows TRIM support and-Jprints JSON.
The manual notes that the default columns may change between versions. Scripts should always choose their columns with -o.
Layers and how they look
| TYPE | Layer | Example name |
|---|---|---|
| disk | Physical or virtual disk | sda, nvme0n1, vda |
| part | Partition | sda1, nvme0n1p2 |
| raid1 / raid5 … | Software RAID | md0 |
| crypt | LUKS-encrypted device | luks-3f1c… |
| lvm | Logical volume | vg0-root |
| loop | Loop device (images, snaps) | loop0 |
Related tools
| Question | Tool |
|---|---|
| Which file systems are mounted where? | findmnt, df -hT |
| Partition table details | fdisk -l, sfdisk -d |
| Disk model, serial, health | udevadm info, smartctl -a, nvme smart-log |
| Which process uses a device | fuser -vm /mnt, lsof +f -- /mnt |
host$ lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINTS
NAME TYPE SIZE FSTYPE MOUNTPOINTS
nvme0n1 disk 476G
├─nvme0n1p1 part 512M vfat /boot/efi
├─nvme0n1p2 part 1G ext4 /boot
└─nvme0n1p3 part 474G LVM2_member
├─vg0-root lvm 30G xfs /
├─vg0-log lvm 10G xfs /var/log
└─vg0-swap lvm 8G swap [SWAP]
sda disk 1.8T linux_raid_member
└─md0 raid1 1.8T xfs /srv
sdb disk 1.8T linux_raid_member
└─md0 raid1 1.8T xfs /srv
host$ lsblk -d -o NAME,MODEL,SERIAL,ROTA,TRAN
host$ lsblk --discard -d
host$ lsblk -J -o NAME,SIZE,MOUNTPOINTS /dev/sda | jq '.blockdevices[0].children'
Reading the tree
md0 appears under both sda and sdb, because it's built from both disks. That's how lsblk shows RAID members. The NVMe disk carries the boot partitions and one LVM physical volume, which holds the root, log and swap volumes.
Documented example, not captured output.
How it works at runtime
Disks & Block Devices is part of Disks & Block Devices. Disks & Block Devices describes the Linux block-I/O device layer from kernel-discovered devices through partitions and stable identifiers, before a filesystem, LVM, RAID or application consumes the storage.
Topic-specific state model. Disks & Block Devices describes the Linux block-I/O device layer from kernel-discovered devices through partitions and stable identifiers, before a filesystem, LVM, RAID or application consumes the storage.
Technical metadata. Host, kernel/distribution, timestamp, device major/minor, /dev + sysfs path, model/serial/WWN where available, size/sector geometry, partition-table type and boundaries, UUID/PARTUUID, udev links, filesystem type/UUID/features, mount namespace/source/target/options, free blocks/inodes, PV/VG/LV UUIDs, extents/segments, device-mapper mapping, snapshot/thin state, kernel/storage errors, original workload path and I/O result.
Interpretation rule. - A /dev node exists ≠ the backing device is healthy or reachable.
- A block device is visible ≠ its partition table or filesystem is valid.
- A stable identifier resolves ≠ the intended device contains the expected data.
- Kernel discovery success ≠ upper storage layers or workload I/O are healthy.
Quick reference
Disk management toolkit:
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS,MODEL,SERIAL,ROTA
blkid
fdisk -l /dev/sdb; parted /dev/sdb print
smartctl -a /dev/sda; nvme smart-log /dev/nvme0
wipefs -a /dev/sdb # remove old signatures (destructive)
partprobe /dev/sdb
Always identify disks by serial/WWN (ls -l /dev/disk/by-id/) before destructive operations — /dev/sdX names can change between boots.
Limits and how it fails
Primary failure point. Block-device evidence shows kernel-visible topology and identifiers only, but it does not show filesystem integrity, LVM correctness, mount state or application data consistency.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Disks & Block Devices owns Linux block-device discovery, partition tables, partitions, identifiers and udev relationships. LVM, Filesystems & Mounting and RAID own their higher layers.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Disks & Block Devices. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Disks & Block Devices operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Disks & Block Devices.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Disks & Block Devices describes the Linux block-I/O device layer from kernel-discovered devices through partitions and stable identifiers, before a filesystem, LVM, RAID or application consumes the storage. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | hardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/O | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Block-device evidence proves kernel-visible topology and identifiers only; it does not prove filesystem integrity, LVM correctness, mount state or application data consistency. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: hardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/O | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. Block-device evidence proves kernel-visible topology and identifiers only; it does not prove filesystem integrity, LVM correctness, mount state or application data consistency. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
Disks & Block Devices · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Disks & Block Devices |
|---|---|
| Topic path | Disks & Block Devices |
| Runtime state | Disks & Block Devices describes the Linux block-I/O device layer from kernel-discovered devices through partitions and stable identifiers, before a filesystem, LVM, RAID or application consumes the storage. |
| Fast checks | - Capture lsblk-style topology, major/minor identity, size, transport and parent/child relationships. - Correlate kernel/udev events with the expected physical or virtual device identity. - Inspect partition-table type and stable identifiers without writing changes first. - Trace the selected block device upward into LVM/filesystem/mount and the original workload. |
| Verification chain | hardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/O Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Block-device evidence proves kernel-visible topology and identifiers only; it does not prove filesystem integrity, LVM correctness, mount state or application data consistency. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |