You are not logged in.

#1 2009-07-10 16:56:55

djclue917
Member
Registered: 2006-12-03
Posts: 121

Unable to mount USB storage devices

I've had this problem since like more than a month ago (2.6.29). USB storage devices, e.g. flash drives, get detected, registered as a storage device, then get de-registered immediately.

FYI, I'm using the latest stable packages (x86_64).

I don't remember (I'm actually quite sure that I didn't) changing any config files related to udev/USB/storage devices that's why I'm quite stumped and I don't know how to resolve this annoying problem. >_<
Any help would surely be appreciated. Thanks!

Manually modprobe'ing usb-storage doesn't do anything. In fact, the module is not loaded at all, even if I manually modprobe it.

relevant lsmod output (notice that the usb-storage module is not loaded):

usbhid                 47648  0
usbserial              40176  0
usbcore               178544  5 usbhid,uhci_hcd,ehci_hcd,usbserial
hid                    52352  1 usbhid

relevant dmesg output:

usb 3-1: new high speed USB device using ehci_hcd and address 4
usb 3-1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usbcore: deregistering interface driver usb-storage

relevant lsusb output:

Bus 003 Device 004: ID 125f:1039 A-DATA Technology Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x125f A-DATA Technology Co., Ltd.
  idProduct          0x1039 
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               8

Last edited by djclue917 (2009-07-11 00:13:52)

Offline

#2 2009-07-10 20:04:28

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Unable to mount USB storage devices

The deregistering of an ubs device happens when disconnect it e.g.

Is the contact/cable is good ? Isn't there any contact error ? Do you use extension cable ? Does it work with a livecd, like ubuntu or sushe ?

In last case you can debug this usb driver with printk to the syslog. E.g. Why the deregistering function was called.

Offline

#3 2009-07-11 00:00:36

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Unable to mount USB storage devices

Yes, the contact is good (relatively new laptop and flash drive). I'm not using any extension cables. In fact, the device is still "visible" when you look at the lsusb outputs.

Offline

#4 2009-07-11 08:19:32

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Unable to mount USB storage devices

Has it worked before? Did it stop working after some update? Don't know if it helps but this is my modules line in rc.conf:

MOD_AUTOLOAD="yes"
MODULES=(acpi-cpufreq cpufreq_ondemand cpufreq_powersave b44 mii iwl4965 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore hid_apple !net-pf-10 !pcspkr !snd_pcsp)

and lsmod | grep usb

usb_storage            64192  0 
usbhid                 47584  0 
hid                    52512  2 usbhid,hid_apple
usbcore               178992  5 usb_storage,usbhid,uhci_hcd,ehci_hcd
scsi_mod              131480  5 usb_storage,sr_mod,sg,sd_mod,libata

Offline

#5 2009-07-11 15:32:51

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Unable to mount USB storage devices

if i were you i debug the kernel driver with printk.

Last edited by djszapi (2009-07-11 15:33:08)

Offline

#6 2009-07-11 17:29:47

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Unable to mount USB storage devices

Yes it was working before. My /etc/rc.conf is fine.
The problem is that the usb-storage module fails to load in my system. I don't know why this is the case.
In your case, the usb-storage module is loaded. In my system, even a manual modprobe doesn't do anything.

Btw, here's the relevant lspci output:

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)

this is what happens when a flash drive is plugged in (via udevadm):

KERNEL[1247334380.813562] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1 (usb)
KERNEL[1247334380.813636] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0 (usb)
KERNEL[1247334380.813676] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep01 (usb_endpoint)
KERNEL[1247334380.813713] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep82 (usb_endpoint)
KERNEL[1247334380.813750] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep83 (usb_endpoint)
KERNEL[1247334380.813786] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/usb_device/usbdev3.5 (usb_device)                 
KERNEL[1247334380.813823] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/usb_endpoint/usbdev3.5_ep00 (usb_endpoint)        
UDEV  [1247334380.863826] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1 (usb)                                             
UDEV  [1247334380.905680] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/usb_device/usbdev3.5 (usb_device)                 
UDEV  [1247334380.909888] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/usb_endpoint/usbdev3.5_ep00 (usb_endpoint)        
KERNEL[1247334380.918988] add      /module/usb_storage (module)
KERNEL[1247334380.919212] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5 (scsi)
KERNEL[1247334380.919267] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5/scsi_host/host5 (scsi_host)
KERNEL[1247334380.919387] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1247334380.919875] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0 (usb)
KERNEL[1247334380.945448] remove   /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5/scsi_host/host5 (scsi_host)
KERNEL[1247334380.945474] remove   /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5 (scsi)
KERNEL[1247334380.945711] remove   /bus/usb/drivers/usb-storage (drivers)
KERNEL[1247334380.946013] remove   /module/usb_storage (module)
UDEV  [1247334380.947229] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep82 (usb_endpoint)
UDEV  [1247334380.947690] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1247334380.948886] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep83 (usb_endpoint)
UDEV  [1247334380.950079] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5 (scsi)
UDEV  [1247334380.950998] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.5_ep01 (usb_endpoint)
UDEV  [1247334380.951270] remove   /bus/usb/drivers/usb-storage (drivers)
UDEV  [1247334380.952302] add      /module/usb_storage (module)
UDEV  [1247334380.955378] add      /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5/scsi_host/host5 (scsi_host)
UDEV  [1247334380.971317] remove   /module/usb_storage (module)
UDEV  [1247334380.981111] remove   /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5/scsi_host/host5 (scsi_host)
UDEV  [1247334380.984409] remove   /devices/pci0000:00/0000:00:1d.7/usb3/3-1/3-1:1.0/host5 (scsi)

This is what happens when the usb-storage module is modprobed manually:

KERNEL[1247334543.362694] add      /module/usb_storage (module)
KERNEL[1247334543.362976] add      /bus/usb/drivers/usb-storage (drivers)
KERNEL[1247334543.370560] remove   /bus/usb/drivers/usb-storage (drivers)
KERNEL[1247334543.370635] remove   /module/usb_storage (module)
UDEV  [1247334543.377885] add      /module/usb_storage (module)
UDEV  [1247334543.390070] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1247334543.401306] remove   /module/usb_storage (module)
UDEV  [1247334543.409931] remove   /bus/usb/drivers/usb-storage (drivers)

@djszapi: Would you mind telling me how to do that?

Last edited by djclue917 (2009-07-11 17:50:18)

Offline

#7 2009-07-12 01:52:39

Intrepid
Member
Registered: 2008-06-11
Posts: 254

Re: Unable to mount USB storage devices

I am actually having this same exact problem, except it ONLY occurs after plugging in an off-brand USB card reader/writer.  After that, all usb storage devices stop working AND I'm unable to rmmod usb-storage or halt the computer without holding down my power button.

Last edited by Intrepid (2009-07-12 01:53:43)


Intrepid (adj.): Resolutely courageous; fearless.

Offline

Board footer

Powered by FluxBB