-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Dharm Sent: Saturday, December 03, 2005 9:20 PM To: Stephen Beaver Cc: Alan Stern; linux-usb-users@lists.sourceforge.net Subject: Re: [Linux-usb-users] Memory stick detection
On Sat, Dec 03, 2005 at 11:56:09AM -0500, Stephen Beaver wrote: > > Thanks for your reply. If bInterfaceClass is supposed to be an 8 for this > type of device but all the ones I tried (each from a different manufacturer) > report a 0, perhaps the USB system is broken. I'll make the same tests on a > PC and see what I get. There are two bInterfaceClass numbers to look at. The per-device one for most (all?) storage devices is '0', which means look at the other one. The other one is per-interface. That one should be 8 for storage devices. Matt -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver Somebody call an exorcist! -- Dust Puppy User Friendly, 5/16/1998 ============================================================================ Thanks Matt. After rebooting the system, I did see an improvement. USB mass storage devices now all seem to report ${INTERFACE} = 8/6/80 and this code in /sbin/hotplug: usb) if [ ${INTERFACE%/*/* = "8" ] ; then if ( ! mount -t vfat /dev/sda1 /mnt/memstick ) ; then mkdosfs -I /dev/sda1 if ( ! mount -t vfat /dev/sda1 /mnt/memstick ) ; then echo "Unable to mount/format this device" fi fi fi ;; seems to be a reliable way to do what I need. It's working well, at least for small devices. (mkdosfs doesn't seem to like sticks > 64 MB though) Where might I find the documentation on these issues? - I have searched everywhere I know and not really found anything yet. Steve ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users