Reputation: 54810
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.
Upvotes: 9
Views: 14166
Reputation: 2543
You can use Terminal and execute:
system_profiler SPUSBDataType
It will show all connected USB devices, with detailed information.
Upvotes: 25
Reputation: 164
USB Prober is the most useful tool. It can be found at /Developer/Applications/Utilities/USB Prober.
Upvotes: 2
Reputation: 81
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.
Upvotes: 5