blkid
Print type, label and UUID of filesystem on a block device or image. toybox
On Linux
Linux
blkid [-o TYPE] [-s TAG] [-UL] DEV...
-UShow UUID only (or device with that UUID)-LShow LABEL only (or device with that LABEL)-o TYPEOutput format (full, value, export)-s TAGOnly show matching tags (default all)Linux
List all recognized partitions and their Universally Unique Identifier (UUID).
List all partitions
sudo blkidIdentifyList all partitions in a table, including current mountpoints
sudo blkid --output listIdentifyGet the UUID of the filesystem on a partition
sudo blkid --match-tag UUID --output value /dev/sdXYIdentify