lsblk

List block devices Usage: lsblk [options] [device...]

Options

OptionDescription
-A, --noemptyDon’t print empty devices
-a, --allDisable all built-in filters and list all empty devices and RAM disk devices too
-f, --fsOutput info about filesystems. This option is equivalent to -o NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS
-J, --jsonUse JSON output format
-l, --listProduce output in the form of a list
-N, --nvmeOutput info about NVMe devices only
-o, --output listSpecify which output columns to print
-p, --pathsPrint full device paths

Output Columns

OutputDescription
ALIGNMENTalignment offset
ID-LINKthe shortest udev /dev/disk/by-id link name
IDudev ID (based on ID-LINK)
DISC-ALNdiscard alignment offset
DAXdax-capable device
DISC-GRANdiscard granularity
DISK-SEQdisk sequence number
DISC-MAXdiscard max bytes
DISC-ZEROdiscard zeroes data
FSAVAILfilesystem size available
FSROOTSmounted filesystem roots
FSSIZEfilesystem size
FSTYPEfilesystem type
FSUSEDfilesystem size used
FSUSE%filesystem use percentage
FSVERfilesystem version
GROUPgroup name
HCTLHost:Channel:Target:Lun for SCSI
HOTPLUGremovable or hotplug device (usb, pcmcia, …)
KNAMEinternal kernel device name
LABELfilesystem LABEL
LOG-SEClogical sector size
MAJ:MINmajor:minor device number
MIN-IOminimum I/O size
MODEdevice node permissions
MODELdevice identifier
MQdevice queues
NAMEdevice name
OPT-IOoptimal I/O size
OWNERuser name
PARTFLAGSpartition flags
PARTLABELpartition LABEL
PARTNpartition number as read from the partition table
PARTTYPEpartition type code or UUID
PARTTYPENAMEpartition type name
PARTUUIDpartition UUID
PATHpath to the device node
PHY-SECphysical sector size
PKNAMEinternal parent kernel device name
PTTYPEpartition table type
PTUUIDpartition table identifier (usually UUID)
RAread-ahead of the device
RANDadds randomness
REVdevice revision
RMremovable device
ROread-only device
ROTArotational device
RQ-SIZErequest queue size
SCHEDI/O scheduler name
SERIALdisk serial number
SIZEsize of the device
STARTpartition start offset
STATEstate of the device
SUBSYSTEMSde-duplicated chain of subsystems
MOUNTPOINTwhere the device is mounted
MOUNTPOINTSall locations where device is mounted
TRANdevice transport type
TYPEdevice type
UUIDfilesystem UUID
VENDORdevice vendor
WSAMEwrite same max bytes
WWNunique storage identifier
ZONEDzone model
ZONE-SZzone size
ZONE-WGRANzone write granularity
ZONE-APPzone append max bytes
ZONE-NRnumber of zones
ZONE-OMAXmaximum number of open zones
ZONE-AMAXmaximum number of active zones