Blkid

blkid is a maintenance utility that finds partitions on all your connected storage media (whether mounted or not) and shows important information: special device, label, UUID and partition type.

It must be run as superuser or it will not see most drives.

The source of this utility can be found at.

= Links =

Provided by
Most (all?) Linux distributions incorporate this from the [util-linux] project.