in reply to (OT) how to identify a partition

Yes indeed, the e2fs family of filesystems generate a UUID for each partition. Under Linux (Ubuntu for sure), you can find your mounted disks listed by partition UUID in /dev/disks/by-uuid/*

If you don't mind using root, you can get at the UUID through the e2fsprogs (e.g. vol_id and findfs).