Commands · Command

CommandLinux

lsblk

lsblk [options]

Lists all block devices (disks and their partitions) in a tree view, showing size, mount point, and filesystem type at a glance.

// FLAGS

-falso show filesystem type and label
-ochoose which columns to display

// EXAMPLE

lsblk -f — shows every disk and partition along with what filesystem is on each and where (if anywhere) it's mounted.

// GOTCHA

lsblk shows what the kernel currently sees — a newly attached drive that isn't showing up usually means a driver or connection issue, not something lsblk itself can fix.

// RELATED COMMANDS