Use this when working with disks, partitions, LVM, file systems and mounts on Linux, or when a disk or mount is missing or full.
Linux Storage
Linux storage covers block devices, partitions, LVM and device-mapper, file systems such as ext4, XFS and Btrfs, multipath, udev naming and fstab mounting — the layers between a disk and a mounted directory.
1. Linux storage stack: block devices → device-mapper (LVM, crypt, multipath) → filesystems → mounts.
2. Use UUIDs/by-id names.
3. udev names devices.
4. fstab for persistence.
5. Kernel log for errors.
device → udev → dm → filesystem → mount
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTSPrimary Commands
Configuration and operational commands for this Topic.
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTSVerifyDisplay block-device topology.
Use when: Use for a read-only inventory of host-visible disks, partitions and mapped filesystems before storage changes.
Linux · mixedlsblkVerifyDisplay 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.
mdadmReferenceInspect, assemble, create and manage Linux MD software RAID arrays.
Use when: Primary lookup intent: configure. Use mdadm when the lookup goal is to inspect, assemble, create and manage Linux MD software RAID arrays. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for mdadm: Verify array/member state, resync outcome and application-level data integrity before normal writes. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. mdadm is documented as an operational lookup primitive under RAID. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
mountReferenceAttach a filesystem to the namespace or display currently mounted filesystems.
Use when: Primary lookup intent: configure. Use mount when the lookup goal is to attach a filesystem to the namespace or display currently mounted filesystems. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for mount: Verify source/type/options and perform fresh read/write or application I/O on the intended mount. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. mount is documented as an operational lookup primitive under Filesystems & Mounting. 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 Common mistakes Narrow the fault
- Device names instead of UUIDs in fstab.
- No monitoring of LVM thin pools or ZFS pools.
Subtopics
Go one level deeper into this subject.
Linux block devices are disks and disk-like devices such as /dev/sda, /dev/nvme0n1 and /dev/mapper/*.
Subtopic udevudev is the Linux device manager that creates /dev entries and stable symlinks like /dev/disk/by-id and by-uuid when devices appear.
Subtopic LVMLVM (Logical Volume Manager) groups physical volumes into volume groups and carves them into logical volumes that can be resized, snapshotted or moved online, managed with pvs, vgs and lvs.
Subtopic MultipathLinux multipath (dm-multipath) combines several paths to the same SAN LUN into one /dev/mapper device with failover and load balancing, configured in /etc/multipath.conf and checked with multipath -ll.
Subtopic device-mapperDevice-mapper is the Linux kernel framework that creates virtual block devices from other devices.
Subtopic fstab/etc/fstab lists file systems to mount at boot with device, mount point, type, options, dump and fsck order.
Subtopic ext4ext4 is the long-standing default Linux journaling file system: stable, fast to check and able to grow and shrink offline.
Subtopic XFSXFS is a high-performance journaling Linux file system and the default on RHEL.
Subtopic BtrfsBtrfs is a copy-on-write Linux file system with checksums, subvolumes, snapshots, compression and built-in RAID 1/10.
Subtopic Linux Storage TroubleshootingTroubleshoot Linux storage with lsblk, dmesg and journalctl for I/O errors, df and df -i for space and inodes, mount and fstab, smartctl, iostat for latency, and fsck or xfs_repair on unmounted file systems.
- Device names like /dev/sdb can change; use UUIDs or /dev/disk/by-id.
- df shows space; df -i shows inodes, which can run out first.
- A wrong fstab entry can stop boot unless nofail is set.
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID— devicesfindmnt— mountsdmesg | grep -i -e 'I/O error' -e sd -e nvme— kernel storage messages
ReferenceHow it works2 sections · depth on demand
How it works
Linux storage is layered: block devices (/dev/sdX, /dev/nvmeXnY) → optional partitions → optional RAID (md) or LVM → device mapper (encryption, multipath) → filesystem → mount point. lsblk shows the whole tree.
Inspecting the stack
lsblk -f
findmnt
pvs ; vgs ; lvs
cat /proc/mdstat
zpool status
ReferenceImportant terms & boundaries1 section · depth on demand
Tools
| Layer | Tools |
|---|---|
| Devices | lsblk, blkid, udevadm |
| Multipath | multipath -ll |
| Volume management | LVM, mdadm, ZFS, Btrfs |
| File systems | ext4, XFS, Btrfs |
| Mounts | findmnt, /etc/fstab |
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/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.