I need a way to get complete hard drive info on OS X, meaning all hard drive model names, SATA/ATA controllers, volumes, disk identifiers, etc. I checked out diskutil
, but it doesn't contain SATA controller info, system_profiler
has all the information I need but its XML output is not necessarily organized as well as I'd like. Is there any low level Carbon/C API that would let me do this?
Asked
Active
Viewed 5,127 times
6
-
1This thread might help you: http://stackoverflow.com/questions/3545102 – wkl Oct 14 '10 at 23:31
-
2Maybe you should specify what you mean by "but its XML output is not necessarily organized as well as I'd like". If it's got all information you need then just use it: the output is a plist, so it should be perfectly easy to fetch everything you want. – w-m Oct 14 '10 at 23:34
-
possible duplicate of [How to get serial number from Mac hard disks?](http://stackoverflow.com/questions/2019244/how-to-get-serial-number-from-mac-hard-disks) – Parag Bafna Sep 02 '14 at 05:42
1 Answers
4
Look into IOKit. There's also this question on Stack Overflow: How to get serial number from Mac hard disks?

Cœur
- 37,241
- 25
- 195
- 267

Joshua Nozzi
- 60,946
- 14
- 140
- 135