blkid
Locate/print block device attributes.
$ blkid
Examples
# Show all devices blkid # Show specific device blkid /dev/sda1 # Look up by label blkid -L MY_DISK # Look up by UUID blkid -U a1b2c3d4-... # JSON output blkid -o json # Show only LABEL tag blkid -s LABEL /dev/sda1
Sponsors