When to use lsblk
Use lsblk to understand how disks, partitions and other block devices relate to mounts. This is a read-only starting point before changing storage configuration or checking a suspected capacity problem.
Syntax
lsblk [PARAMETERS] [DEVICE...]Square brackets mark optional arguments; an ellipsis means repetition. Replace example file names, user names and server addresses with your own values.
Common options and arguments
Usage examples
Show device tree
lsblkA hierarchical device view shows the visible storage layout.
Show file systems
lsblk -fFilesystem information and identifiers are added to the view.
Print size and mount points
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTSExplicit columns focus the report on device sizes, filesystem types and mountpoints.
Notes and limitations
- Available columns depend on the util-linux version. Use MOUNTPOINT instead of MOUNTPOINTS on older systems.
- Before operating on a device, verify its size, type and mount point.
Common questions and troubleshooting
Why do filesystem labels or UUIDs appear blank?
The device may not contain a filesystem, metadata may not yet be available, or access can be limited. Cross-check with suitable read-only tools.
Does a listed unmounted device mean it is unused?
No. It may belong to a storage stack, application or inactive recovery volume. Investigate ownership before formatting or reassigning it.
Further help
Options vary by version and distribution. Check the installed documentation with this command: man lsblk.