USB Devices not working

Shawn Iverson shawn at nccsc.k12.in.us
Tue Feb 3 22:49:30 UTC 2004


> From: Shawn Iverson [mailto:shawn at nccsc.k12.in.us]
> Sent: Saturday, January 31, 2004 5:33 PM
> 
> See bugzilla report:  
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113787
> 

Under the section of this bugzilla report where you copy certain
modules.usbmap to usb.usermap is not necessary if the following is done
(specifically with the Lexar Jumpdrive, but should affect ALL usb-storage
devices):

Edit the /etc/hotplug/hotplug.functions do the following:

Move the following script lines up:

    if echo "$MODULE" | grep -q "usb-storage" > /dev/null 2>&1 ; then
            [ -x /usr/sbin/updfstab ] &&  /usr/sbin/updfstab
    fi

Move them right above this section:

      if [ -x $HOTPLUG_DIR/$TYPE/$MODULE ]; then
            debug_mesg Module setup $MODULE for $DESCRIPTION
            $HOTPLUG_DIR/$TYPE/$MODULE
            LOADED=true
      fi

The $HOTPLUG_DIR/$TYPE/$MODULE translates to the
/etc/hotplug/usb/usb-storage script.  It executes mount as indicated in
bugzilla #113787, but nothing mounts because no entry is made in /etc/fstab.
The reason that the usb.usermap workaround works is because the usb.agent
script calls load_drivers () again for the contents of usb.usermap, and
since the entry has been made, the mount succeeds.

As for the root problem, I am trying to figure out how the /dev/fd0 device
becomes owned by the current user.  If I can figure this out then the rest
should be history.

I am filing this into the bugzilla report.





More information about the fedora-list mailing list