On Sun, 4 Dec 2005, Stephen Beaver wrote: > Thanks Matt. > > After rebooting the system, I did see an improvement. USB mass storage > devices now all seem to report ${INTERFACE} = 8/6/80
That should have been there all along. But as long as it's working now... > 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) You probably need to use the -F32 flag, to force mkdosfs to create a VFAT32 filesystem. > Where might I find the documentation on these issues? - I have searched > everywhere I know and not really found anything yet. The interface descriptors should be described in any book about USB. The canonical reference is the USB 2.0 Specification (chapter 9), available at www.usb.org. You may also be interested in the Mass Storage class specification. mkdosfs is described in its man page. Alan Stern ------------------------------------------------------- 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