List all disks and partitions with lsblk
Display every block device as a tree — disks, partitions, sizes, filesystems, UUIDs, and where each is mounted.
01Command
$ lsblk -f02What it does
lsblk reads sysfs and shows devices as a tree: whole disks like sda or nvme0n1 at the top with partitions like sda1 indented beneath. The -f flag adds filesystem type, label, UUID, and mount point — the UUID is what you put in /etc/fstab. Use plain lsblk for a compact view, lsblk -o NAME,SIZE,TYPE,MOUNTPOINT to pick columns, and -a to include empty loop/ram devices. Running it before any mkfs, mount, or dd command is the standard way to confirm you are targeting the right device.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- lsblk(8) — list block devicesEvidence: The lsblk man page documents '-f' / '--fs' as outputting info about filesystems, including FSTYPE, LABEL, UUID, and mount points.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.
Measure the size of each immediate subdirectory and sort them smallest to largest so the biggest offenders land at the bottom.