← Disk & Filesystem
Linux · Disk & Filesystem

How to list block devices and partitions in Linux

List disks, partitions, sizes, mount points, UUIDs, and filesystem types with lsblk and blkid.


See the disks and partitions the system has, their sizes, and where they are mounted. lsblk is the readable tree; blkid shows UUIDs and filesystem types.

# Tree of disks, partitions, mount points
lsblk

# Add filesystem type and UUID
lsblk -f

# UUIDs and types (used in /etc/fstab)
blkid

# Detailed partition table (run as root)
sudo fdisk -l
LinuxlsblkBlock Devices