Is there an easy way to get the serial number of all the hard disks in a Mac using an API?
Basically, I\'m looking for a unique identifier for the hard disk with whi
From the command line:
ioreg -rd1 -w0 -c AppleAHCIDiskDriver | grep Serial
This gives you the serial number of the built-in hard disk.