Background
We have an application which is written using the QT framework. One key requirement is that we can correctly detect the hardware serial number of the USB flash drive used (not an external hard drive). This function has been working correctly for 4 years and worked on Windows XP, Windows Vista, Windows 2007 and on all Mac versions.

To our surprise we got clients complaining that the USB hardware ID was not being read and shown completely. After testing extensively it turns out that ONLY the combination of Mac OS mountain Lion + Mac Book (Pro) does NOT detect the hardware ID.

Mountain Lion on an iMac, on a Mini Mac, works fine. Leopard, Snow Leopard and Lion work fine on all Macs, including the Mac Book Pro.

We have been looking for a fix for nearly 1 one month but without results. Can anyone provide a small piece of code that works or give information what causes this issue (and really only on this combination) and how to fix it.

Note
Several resources can be found on the internet of other USB hardware that has issues with mountain lion but nowhere an answer was given to the solution to exactly the problem as described above.

Additional info:
We use the following code at the moment which works correctly on all Macs except those that have a USB3.0 port.

A little more input on this topic. After further testing it appears that ONLY Mac Books that have a USB 3.0 port do return the USB Serial number. When we run the following command in terminal: [code]system_profiler SPUSBDataType| grep -A 10 '^.*Removable Media: Yes'| grep 'Serial Number:' | sed -e 's/^.*Number: //'[code] it returns the serial number on all other Macs but on a Mac Book with a USB 3.0 port it returns nothing. Any clue what needs to be changed to the above command to get the correct serial number?
–
Edward GreenFeb 25 '13 at 3:51