Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Block Devices

Direct answer

Linux block devices are disks and disk-like devices such as /dev/sda, /dev/nvme0n1 and /dev/mapper/*. List them with lsblk, inspect with blkid and udevadm, and they hold partitions, LVM or file systems.

When to use this

Use this when identifying Linux block devices and their stacking, or when a disk is not detected.

First 30 seconds

1. Block devices: sdX (SCSI/SATA/SAS), nvmeXnY, vdX (virtio), dm-N, mdN.

2. Names can change — use by-id/UUID.

3. Scheduler: none/mq-deadline for SSD, bfq/mq-deadline for HDD.

4. Rescan after changes.

5. Check sector sizes.

Operational verification

hardware → driver → /dev/<dev>

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Writing to the wrong device because names changed after reboot.
  • Missing partitions after adding a disk — run partprobe or rescan (echo 1 > /sys/class/block/sdX/device/rescan).
  • Not detecting new SAN LUNs — rescan the SCSI host (rescan-scsi-bus.sh or echo "- - -" > /sys/class/scsi_host/hostN/scan).
Platform / version applicability
Linux Storage
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 Storage · Linux
Key commandlsblk -f
Scope / prerequisiteUse this when identifying Linux block devices and their stacking, or when a disk is not detected.
Verify · 1
What next?2 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Key points
  • Names like sdb can change between boots.
  • /dev/disk/by-id and by-uuid give stable names.
  • Devices stack: disk → partition → LVM/dm → file system.
Key checks
  • lsblk -d -o NAME,SIZE,ROTA,TRAN,MODEL,SERIAL — disks
  • ls -l /dev/disk/by-id/ — stable names
  • cat /sys/block/<dev>/queue/scheduler — I/O scheduler
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Block devices are disks and disk-like devices addressed in fixed-size blocks: sdX (SCSI/SATA/SAS/USB/iSCSI/FC), nvmeXnY, vdX (virtio), dm-N (device-mapper: LVM, multipath, LUKS), mdN (software RAID), zdN (ZFS zvols), rbdN (Ceph).

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,MODEL,SERIAL,ROTA
lsblk -t                                  # sector sizes, alignment, scheduler
ls -l /dev/disk/by-id/ /dev/disk/by-path/
cat /sys/block/sda/queue/scheduler        # none / mq-deadline / bfq / kyber
blockdev --getsize64 /dev/sda

Kernel names are assigned in discovery order and can change; use /dev/disk/by-id, UUIDs or labels in configuration.

Device naming

NameMeaning
/dev/sdaSCSI/SATA/SAS/USB disk
/dev/nvme0n1NVMe controller 0, namespace 1
/dev/vdavirtio-blk disk in a VM
/dev/mapper/...device-mapper (LVM, LUKS, multipath)
/dev/disk/by-id/, by-uuid/Stable names — use these in configs

sdX names can change between boots; never rely on them in fstab.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Commands

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS,MODEL,SERIAL
blkid
cat /sys/block/sda/queue/scheduler          # mq-deadline, none, bfq, kyber
cat /sys/block/sda/queue/rotational
iostat -x 2

Names like /dev/sda can change between boots; use /dev/disk/by-id/, UUIDs or labels in configuration. NVMe devices use none or mq-deadline schedulers.

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 Storage current

Authoritative/upstream documentation reviewed for bounded claims in Linux Storage → Block Devices. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/block/index.html · confidence 94%
Confirmation

Confirm action

Continue?