How to find Universal Unique Identifier of a disk?

I am using El Capitan. How do I find Universal Unique Identifier of my USB disk? Or of my internal hard drive? This info was available in Disk Utility in Yosemite. I would just right click on disk, chose Info ant there it was. Where is ti now?


All answers are appreciated - GUI as well as Terminal way of doing this 🙂


Thanks

MacBook Pro, OS X El Capitan (10.11.4)

Posted on May 13, 2016 6:30 AM

Reply
5 replies

May 13, 2016 7:20 AM in response to JosephBullet

The solution proposed by Sparkleberry only gives you the UUID of the Mac itself, it does not give you the UUID of each volume/disk.


Try instead the following -


  • Go the the Apple Menu and select About This Mac
  • Then click on System Report
  • Then on the left select Storage


This will list all the disks and volumes currently mounted and each will when select show in the bottom right section a Volume UUID.

May 13, 2016 7:31 AM in response to JosephBullet

On El Capitan, there are 3 UUID associated with a volume/partition:

  • Core Storage
    • PV UUID
    • LV UUID
  • Disk Partition ID


All graphical approaches will show just the Core Storage related UUID. In the Terminal, system_profiler SPStorageDataType command will only report Core Storage UUID. The diskutil info /dev/disk0s2 will report all 3 of the formats. If you don't want to scroll, the following command will get the real UUID which is first in the listing, and accordingly, I tell egrep to get the first match so it doesn't capture the Core Storage UUID values.


Terminal:

Only type the blue text:

$ diskutil info /dev/disk0s2 | egrep -om1 "([A-Z0-9]{8}.[A-Z0-9]{4}.+$)"

If you want the PV and LV UUID values for the Core Storage only, then change the m1 to m2 in egrep.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to find Universal Unique Identifier of a disk?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.