UUIDs in Ubuntu | Unix Tutorial
List UUIDs for all your devicesIf you are using one of the recent releases of Ubuntu UUIDs have been there since Edgy, you can use the blkid command to get a list of all the drives and partitions along with their UUIDs:
ubuntu# blkid
Get UUID for a particular device
If you know a device name and just want to confirm the UUID for it to later use it in /etc/fstab, here’s how you can do it using vol_id command:
ubuntu# vol_id -u /dev/sdb1
via UUIDs in Ubuntu | Unix Tutorial.
Advertisement