[2.6.19] Problems with USB mass storage devices



Hi all,

some weeks ago I upgraded my kernel from 2.6.10-mh1 to 2.6.19 (using
the old .config file) on my desktop machine. Since then I have
problems using my card reader and my external USB HDD. The card
reader isn't assigned to a device file (sometimes it works, most of
the time it doesn't) and there are I/O errors (see below). Thus I
can't access the card reader. With kernel 2.6.19 I didn't have such
problems. And there are I/O errors with the USB HDD. The card
reader, the xD-card and the USB HDD are not broken because they work
on my laptop without any problem.

I use Debian Sarge on my desktop and Ubuntu Edgy on my laptop.
Further information follow:

-->1-----------------------------------------------------------------
Output from /var/log/messages while connecting the card reader with
the xD-card plugged in:

Jan 3 15:00:53 localhost kernel: usb 5-8: new high speed USB device
using ehci_hcd and address 6
Jan 3 15:00:53 localhost kernel: usb 5-8: Product: Card Reader
Jan 3 15:00:53 localhost kernel: usb 5-8: Manufacturer: Hama
Jan 3 15:00:53 localhost kernel: usb 5-8: SerialNumber: 000000000013
Jan 3 15:00:53 localhost kernel: usb 5-8: configuration #1 chosen
from 1 choice
Jan 3 15:00:53 localhost kernel: scsi4 : SCSI emulation for USB
Mass Storage devices
Jan 3 15:00:58 localhost kernel: scsi 4:0:0:0: Direct-Access
Hama CF Card Reader 9317 PQ: 0 ANSI: 0
Jan 3 15:00:58 localhost kernel: SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Jan 3 15:00:58 localhost kernel: sda: Write Protect is off
Jan 3 15:00:58 localhost kernel: SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Jan 3 15:00:58 localhost kernel: sda: Write Protect is off
Jan 3 15:00:58 localhost kernel: sda:<7>ehci_hcd 0000:00:10.4:
devpath 8 ep1in 3strikes
Jan 3 15:00:59 localhost kernel: usb 5-8: USB disconnect, address 6
Jan 3 15:00:59 localhost kernel: sd 4:0:0:0: SCSI error: return
code = 0x00010000
Jan 3 15:00:59 localhost kernel: end_request: I/O error, dev sda,
sector 0
Jan 3 15:00:59 localhost kernel: sd 4:0:0:0: SCSI error: return
code = 0x00010000
Jan 3 15:00:59 localhost kernel: end_request: I/O error, dev sda,
sector 0
Jan 3 15:00:59 localhost kernel: unable to read partition table
Jan 3 15:00:59 localhost kernel: sd 4:0:0:0: Attached scsi
removable disk sda
Jan 3 15:00:59 localhost kernel: sd 4:0:0:0: Attached scsi generic
sg0 type 0
Jan 3 15:01:09 localhost scsi.agent[13001]: Attribute
/sys/devices/pci0000:00/0000:00:10.4/usb5/5-8/5-8:1.0/host4/target4:0:0/4:0:0:0/type
does not exist
Jan 3 15:01:25 localhost hal.hotplug[13154]: timout(10000 ms)
waiting for /block/sda
Jan 3 15:01:25 localhost hal.hotplug[13162]: timout(10000 ms)
waiting for /class/scsi_generic/sg0
--<1------------------------------------------------------------------

-->2------------------------------------------------------------------
Output from /var/log/messages while connecting the empty card reader:

Jan 3 15:03:22 localhost kernel: usb 5-8: new high speed USB device
using ehci_hcd and address 7
Jan 3 15:03:22 localhost kernel: usb 5-8: Product: Card Reader
Jan 3 15:03:22 localhost kernel: usb 5-8: Manufacturer: Hama
Jan 3 15:03:22 localhost kernel: usb 5-8: SerialNumber: 000000000013
Jan 3 15:03:22 localhost kernel: usb 5-8: configuration #1 chosen
from 1 choiceJan 3 15:03:22 localhost kernel: scsi5 : SCSI
emulation for USB Mass Storage devices
Jan 3 15:03:27 localhost kernel: scsi 5:0:0:0: Direct-Access
Hama CF Card Reader 9317 PQ: 0 ANSI: 0
Jan 3 15:03:27 localhost kernel: sd 5:0:0:0: Attached scsi
removable disk sda
Jan 3 15:03:27 localhost kernel: sd 5:0:0:0: Attached scsi generic
sg0 type 0
Jan 3 15:03:27 localhost scsi.agent[13369]: sd_mod: loaded
sucessfully (for disk)
--<2------------------------------------------------------------------

-->3-----------------------------------------------------------------
Output from /var/log/messages while plugging in the xD-card into the
card reader:

[nothing happens]
--<3------------------------------------------------------------------

There are no problems when I use the USB docking station of my
digital camera.

-->4------------------------------------------------------------------
Output from /var/log/messages using the USB docking station of my
digital camera:

Jan 3 15:07:30 localhost kernel: usb 4-1: new full speed USB device
using uhci_hcd and address 4
Jan 3 15:07:31 localhost kernel: usb 4-1: Product: IR-500
Jan 3 15:07:31 localhost kernel: usb 4-1: Manufacturer: OLYMPUS
Jan 3 15:07:31 localhost kernel: usb 4-1: SerialNumber: 000723227387
Jan 3 15:07:31 localhost kernel: usb 4-1: configuration #1 chosen
from 1 choice
Jan 3 15:07:31 localhost kernel: scsi6 : SCSI emulation for USB
Mass Storage devices
Jan 3 15:07:36 localhost kernel: scsi 6:0:0:0: Direct-Access
OLYMPUS IR-500 1.00 PQ: 0 ANSI: 2
Jan 3 15:07:36 localhost kernel: SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Jan 3 15:07:36 localhost kernel: sda: Write Protect is off
Jan 3 15:07:36 localhost kernel: SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Jan 3 15:07:36 localhost kernel: sda: Write Protect is off
Jan 3 15:07:36 localhost kernel: sda: sda1
Jan 3 15:07:36 localhost kernel: sd 6:0:0:0: Attached scsi
removable disk sda
Jan 3 15:07:36 localhost kernel: sd 6:0:0:0: Attached scsi generic
sg0 type 0
Jan 3 15:07:36 localhost scsi.agent[13808]: sd_mod: loaded
sucessfully (for disk)
--<4------------------------------------------------------------------

-->5---------------------------------------------------------------
Output from /var/log/messages while plugging in the USB HDD (it
works when the HDD is plugged in while switched off):

Jan 8 14:57:16 localhost kernel: usb 5-8: new high speed USB device
using ehci_hcd and address 6
Jan 8 14:57:18 localhost kernel: usb 5-8: Product: USB2.0 Storage
Device
Jan 8 14:57:18 localhost kernel: usb 5-8: Manufacturer: Cypress
Semiconductor
Jan 8 14:57:18 localhost kernel: usb 5-8: SerialNumber: DEF107679C83
Jan 8 14:57:18 localhost kernel: usb 5-8: configuration #1 chosen
from 1 choiceJan 8 14:57:18 localhost kernel: scsi2 : SCSI
emulation for USB Mass Storage devices
Jan 8 14:57:23 localhost kernel: scsi 2:0:0:0: Direct-Access
SAMSUNG HD400LD 0000 PQ: 0 ANSI: 0
Jan 8 14:57:23 localhost kernel: SCSI device sda: 781422768
512-byte hdwr sectors (400088 MB)
Jan 8 14:57:23 localhost kernel: sda: Write Protect is off
Jan 8 14:57:23 localhost kernel: SCSI device sda: 781422768
512-byte hdwr sectors (400088 MB)
Jan 8 14:57:23 localhost kernel: sda: Write Protect is off
Jan 8 14:57:23 localhost kernel: sda: sda1 < sda5 sda6 sda7 sda8
sda9 sda10 sda11 sda12 sda13 sda14 > sda2 sda3 sda4
Jan 8 14:57:23 localhost kernel: sd 2:0:0:0: Attached scsi disk sda
Jan 8 14:57:23 localhost kernel: sd 2:0:0:0: Attached scsi generic
sg0 type 0
Jan 8 14:57:23 localhost scsi.agent[18969]: sd_mod: loaded
sucessfully (for disk)
Jan 8 14:57:58 localhost kernel: usb 5-8: reset high speed USB
device using ehci_hcd and address 6
Jan 8 14:58:00 localhost last message repeated 2 times
Jan 8 14:58:01 localhost kernel: Filesystem "dm-1": Disabling
barriers, not supported by the underlying device
Jan 8 14:58:01 localhost kernel: XFS mounting filesystem dm-1
Jan 8 14:58:01 localhost kernel: usb 5-8: reset high speed USB
device using ehci_hcd and address 6
Jan 8 14:58:06 localhost last message repeated 5 times
Jan 8 14:58:07 localhost kernel: sd 2:0:0:0: SCSI error: return
code = 0x00070000
Jan 8 14:58:07 localhost kernel: end_request: I/O error, dev sda,
sector 234336323
Jan 8 14:58:07 localhost kernel: usb 5-8: reset high speed USB
device using ehci_hcd and address 6
Jan 8 14:58:09 localhost kernel: usb 5-8: reset high speed USB
device using ehci_hcd and address 6
Jan 8 14:58:10 localhost kernel: XFS: empty log check failed
Jan 8 14:58:10 localhost kernel: XFS: log mount/recovery failed:
error 5
Jan 8 14:58:10 localhost kernel: XFS: log mount failed
--<5----------------------------------------------------------------

Loaded modules:

$ lsmod
Module Size Used by
sd_mod 15376 0
rfcomm 32924 0
l2cap 18436 5 rfcomm
bluetooth 44516 4 rfcomm,l2cap
ipv6 216928 14
ehci_hcd 39816 0
uhci_hcd 28300 0
8250 17956 0
serial_core 16768 1 8250
snd_dummy 8256 2
snd_via82xx 22932 4
snd_ac97_codec 90400 1 snd_via82xx
snd_ac97_bus 2176 1 snd_ac97_codec
snd_pcm_oss 26272 1
snd_mixer_oss 15488 3 snd_pcm_oss
snd_pcm 68488 5
snd_dummy,snd_via82xx,snd_ac97_codec,snd_pcm_osssnd_page_alloc
8456 2 snd_via82xx,snd_pcm
snd_mpu401_uart 6784 1 snd_via82xx
snd_rawmidi 20000 1 snd_mpu401_uart
via_rhine 20616 0
mii 4736 1 via_rhine
crc32 4224 1 via_rhine

Kernel configuration:

$ grep -i usb /usr/local/src/linux-2.6.19/.config | grep -v "#"
CONFIG_BT_HCIUSB=m
CONFIG_BT_HCIUSB_SCO=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_MON=y
$ grep -i scsi .config | grep -v '#'
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_CONSTANTS=y

Hardware:

$ lspci | grep -i usb
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI
USB 1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI
USB 1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI
USB 1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI
USB 1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)


I hope somebody can help me. I'm at a loss with this.

Best,
Christoph
--
+++ Typografie-Regeln: http://zvisionwelt.de/downloads.html (1.6)
.



Relevant Pages

  • Re: 64 bit Windows driver.
    ... The truth is, for most people computers are interchangeable as applications no longer matter to them, so they can use any operating system (Windows, Macintosh, Linux, etc) equally well. ... So many devices these days don't even need a special driver -- plug in your USB flash drive, your digital camera, your phone, or any number of other devices, and it Just Works. ... All can be treated as generic USB mass storage devices for easy drag-and-drop of files on any modern OS. ... The 50g would also work well without special drivers if it implemented its USB with a standard USB to serial interface. ...
    (comp.sys.hp48)
  • Re: OT: Ping eeePC owners
    ... Would be a good thing with a 3g usb dongle. ... Linux and lasts for a few hours etc. ... I know nothing of iPods but believe they *can* be mass storage devices ... MacBook as a 3G to Wifi router, so I can grab work emails when in hotels ...
    (uk.comp.sys.mac)
  • Re: Using Fuji E550 camera and Linux
    ... >>has the camera in their database. ... usb 1-1: USB disconnect, address 7 ... SCSI emulation for USB Mass Storage devices ... SCSI device sdb: 512000 512-byte hdwr sectors ...
    (Debian-User)
  • RE: Controlling specific USB devices on Windows XP
    ... This can be incorporated into a .adm file and added to Group Policy. ... POLICY "USB Mass Storage Installation" ... Selecting 'Grant Permission' will allow USB mass storage devices to be ...
    (Focus-Microsoft)
  • Re: Mounting of USB flashdisk under Rh7.3
    ... > I pass to mount? ... Do I need to load a kernel module? ... ...USB Mass Storage devices are seen as SCSI devices. ...
    (comp.os.linux.misc)