Question

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.

Was it helpful?

Solution

You can use Terminal and execute:

system_profiler SPUSBDataType

It will show all connected USB devices, with detailed information.

OTHER TIPS

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.

USB Prober is the most useful tool. It can be found at /Developer/Applications/Utilities/USB Prober.

I'm not an expert of I/O on Mac OS X, but I've heard of I/O Kit, which may be a good starting point.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top