What is the best way to discover what USB drives are connected, where they are mounted, and their unique details like Serial number, PID and which USB Hub port they are connected to? Something similar to what USBlyzer does for Windows but programmatically.
+1
A:
The Finder has an "about this mac" option under the Apple at the upper left. Ask for more info and follow the devices===> USB tree to find your answers. In a shell or another executing module, I have no idea how to retrieve this info.
guzzibill
2009-01-08 20:02:57
Thank you, that is exactly the information I need, except I need to get it programmatically!
Abdullah Jibaly
2009-01-08 22:23:20
A shell script would be perfect.
Abdullah Jibaly
2009-01-08 22:23:52
The system_profiler command does it from the terminal.
Abdullah Jibaly
2009-01-16 23:50:37
A:
You can use the I/O Kit framework. Look at the examples here and use the complete API reference to get the information you need.
A:
You can also use a Terminal and execute:
system_profiler SPUSBDataType
It will show all USB device connected with detailed informations
Niko
2010-09-29 09:22:07