Use this when identifying Linux block devices and their stacking, or when a disk is not detected.
Block Devices
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.
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.
hardware → driver → /dev/<dev>
Context & applicabilityCommon mistakes · platform/version boundaries
- Writing to the wrong device because names changed after reboot.
- Missing partitions after adding a disk — run
partprobeor rescan (echo 1 > /sys/class/block/sdX/device/rescan). - Not detecting new SAN LUNs — rescan the SCSI host (
rescan-scsi-bus.shorecho "- - -" > /sys/class/scsi_host/hostN/scan).
Operational reference
Fast context before you go deeper.
lsblk -fPrimary Commands
Configuration and operational commands for this Topic.
- 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.
lsblk -d -o NAME,SIZE,ROTA,TRAN,MODEL,SERIAL— disksls -l /dev/disk/by-id/— stable namescat /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
| Name | Meaning |
|---|---|
/dev/sda | SCSI/SATA/SAS/USB disk |
/dev/nvme0n1 | NVMe controller 0, namespace 1 |
/dev/vda | virtio-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.
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
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 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%