Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Disks & Block Devices

Direct answer

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.

When to use this

Use it as the entry point for adding, identifying or troubleshooting disks.

First 30 seconds

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.

Operational verification

disk detected → block device → partition table → RAID/LVM/crypt layers → filesystem → mount

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandlsblk
Scope / prerequisiteUse it as the entry point for adding, identifying or troubleshooting disks.
Verify · 1Reference · 3
What next?3 suggested next steps
Child topics (this level)6
Catalog command links4
Evidence1
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

lsblkVerify
lsblk

Display 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.

Linux · state
blkidReference
blkid

Read 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.

Linux · state
fdiskReference
fdisk

Inspect 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.

Linux · configuration
partedReference
parted

Inspect 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.

Linux · configuration
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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).

Key checks
  • lsblk -f — disks, partitions, filesystems, UUIDs and mount points
  • blkid — UUIDs, labels and types
  • fdisk -l / parted -l — partition tables
  • udevadm 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 -a is given.
  • -f adds file system information: type, version, label, UUID, free space, use and mount point.
  • -o selects columns, -p prints full device paths and -d hides the layers below a device.
  • -t shows topology (alignment and I/O sizes), --discard shows TRIM support and -J prints 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

TYPELayerExample name
diskPhysical or virtual disksda, nvme0n1, vda
partPartitionsda1, nvme0n1p2
raid1 / raid5 …Software RAIDmd0
cryptLUKS-encrypted deviceluks-3f1c…
lvmLogical volumevg0-root
loopLoop device (images, snaps)loop0

Related tools

QuestionTool
Which file systems are mounted where?findmnt, df -hT
Partition table detailsfdisk -l, sfdisk -d
Disk model, serial, healthudevadm info, smartctl -a, nvme smart-log
Which process uses a devicefuser -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Terminology layer

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.

Aliases that resolve here
linux block devicesdisk topology linuxlsblk storage modellinux disk discovery
Embedded reference data

Quick lookup tables

Disks & Block Devices operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Disks & Block Devices.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateDisks & 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 verificationPin 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 chainhardware/virtual disk → kernel block device → major/minor + device node → partition table → partition → stable identifier → upper storage layer → mount/application I/OTrace requested/configured state through effective state to the observed workload result.
Failure boundaryBlock-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 evidenceCorrelated 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/OUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryDisks & Block Devices
Topic pathDisks & Block Devices
Runtime stateDisks & 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 chainhardware/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 boundaryBlock-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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?