I have a USB (1.1) hard drive, actually an Archos Jukebox 20 mp3 player, that won't get recognized by the computer.
I get a variety of responses when plugging the drive into the USB port. Rarely, everything works, and dmesg shows
When this happens, I can mount everything properly.ohci_hcd 0000:00:02.0: wakeup
usb 2-2: new full speed USB device using ohci_hcd and address 18
scsi18 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 18
usb-storage: waiting for device to settle before scanning
Vendor: HITACHI_ Model: DK23CA-20 Rev: 00H1
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)
sda: assuming drive cache: write through
SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)
sda: assuming drive cache: write through
sda: sda1
Attached scsi disk sda at scsi18, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi18, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
Other times, also rarely, I get
This time, even though is says it assigns sda to a SCSI disk, I still can't get to it. for example, "fdisk /dev/sda" returns a message of "Unable to read /dev/sda"ohci_hcd 0000:00:02.0: wakeup
usb 2-2: new full speed USB device using ohci_hcd and address 17
scsi16 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 17
usb-storage: waiting for device to settle before scanning
Vendor: HITACHI_ Model: DK23CA-20 Rev: 00H1
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)
sda: assuming drive cache: write through
SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)
sda: assuming drive cache: write through
sda:<6>SCSI error : <16 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 0
printk: 1 messages suppressed.
Buffer I/O error on device sda, logical block 0
SCSI error : <16 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
unable to read partition table
Attached scsi disk sda at scsi16, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi16, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
SCSI error : <16 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
SCSI error : <16 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 8
Buffer I/O error on device sda, logical block 1
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 16
Buffer I/O error on device sda, logical block 2
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 24
Buffer I/O error on device sda, logical block 3
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 32
Buffer I/O error on device sda, logical block 4
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 40
Buffer I/O error on device sda, logical block 5
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 48
Buffer I/O error on device sda, logical block 6
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 56
Buffer I/O error on device sda, logical block 7
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 512
Buffer I/O error on device sda, logical block 64
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 512
Buffer I/O error on device sda, logical block 64
SCSI error : <16 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
Most of the time, I get the following:
Here is some info.usb 2-3: new full speed USB device using ohci_hcd and address 39
scsi36 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 39
usb-storage: waiting for device to settle before scanning
usb 2-3: reset full speed USB device using ohci_hcd and address 39
usb 2-3: reset full speed USB device using ohci_hcd and address 39
usb 2-3: reset full speed USB device using ohci_hcd and address 39
usb-storage: device scan complete
gentoo sources 2.6.13-r5
udev-071
hal-0.4.7-r2
hotplug-20040923-r1
Appropriate kernel options (USB storage, SCSI, etc.) should be OK, as I can use USB memory sticks just fine. When I put one in, a mount point is created in /media, so all I have to do is right click, and select mount (I'm using Xfce4). Also, this device is based on the non-standard ISD-200 USB bridge, so I've compiled that into the kernel.
(more as I think of it . . .)
As you can see below, the OS sees the ISD-200 chip, and can even make out the Hitachi drive--it just can't connect to partitions.
udevinfo -a -p /sys/block/sda gives
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
device '/sys/block/sda' has major:minor 8:0
looking at class device '/sys/block/sda':
KERNEL=="sda"
SUBSYSTEM=="block"
SYSFS{dev}=="8:0"
SYSFS{range}=="16"
SYSFS{removable}=="0"
SYSFS{size}=="39070080"
SYSFS{stat}==" 8 7 120 1560756 0 0 0 0 0 930724 1560756"
follow the "device"-link to the physical device:
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0/host16/target16:0:0/16:0:0:0':
BUS=="scsi"
ID=="16:0:0:0"
DRIVER=="sd"
SYSFS{device_blocked}=="0"
SYSFS{iocounterbits}=="32"
SYSFS{iodone_cnt}=="0x15"
SYSFS{ioerr_cnt}=="0x10"
SYSFS{iorequest_cnt}=="0x34"
SYSFS{max_sectors}=="240"
SYSFS{model}=="DK23CA-20 "
SYSFS{queue_depth}=="1"
SYSFS{queue_type}=="none"
SYSFS{rev}=="00H1"
SYSFS{scsi_level}=="3"
SYSFS{state}=="running"
SYSFS{timeout}=="30"
SYSFS{type}=="0"
SYSFS{vendor}=="HITACHI_"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0/host16/target16:0:0':
BUS==""
ID=="target16:0:0"
DRIVER=="unknown"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0/host16':
BUS==""
ID=="host16"
DRIVER=="unknown"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0':
BUS=="usb"
ID=="2-2:1.0"
DRIVER=="usb-storage"
SYSFS{bAlternateSetting}==" 0"
SYSFS{bInterfaceClass}=="ff"
SYSFS{bInterfaceNumber}=="00"
SYSFS{bInterfaceProtocol}=="ff"
SYSFS{bInterfaceSubClass}=="00"
SYSFS{bNumEndpoints}=="03"
SYSFS{modalias}=="usb:v05ABp0031d0110dcFFdsc00dpFFic_isc_ip_"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2':
BUS=="usb"
ID=="2-2"
DRIVER=="usb"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="ff"
SYSFS{bDeviceProtocol}=="ff"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}==" 98mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0110"
SYSFS{bmAttributes}=="c0"
SYSFS{configuration}==""
SYSFS{devnum}=="17"
SYSFS{idProduct}=="0031"
SYSFS{idVendor}=="05ab"
SYSFS{manufacturer}=="In-System Design"
SYSFS{maxchild}=="0"
SYSFS{product}=="USB Storage Adapter"
SYSFS{serial}=="8C2432B21B02871D"
SYSFS{speed}=="12"
SYSFS{version}==" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0/usb2':
BUS=="usb"
ID=="usb2"
DRIVER=="usb"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="09"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="8"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0206"
SYSFS{bmAttributes}=="e0"
SYSFS{configuration}==""
SYSFS{devnum}=="1"
SYSFS{idProduct}=="0000"
SYSFS{idVendor}=="0000"
SYSFS{manufacturer}=="Linux 2.6.13-gentoo-r5 ohci_hcd"
SYSFS{maxchild}=="3"
SYSFS{product}=="nVidia Corporation nForce2 USB Controller"
SYSFS{serial}=="0000:00:02.0"
SYSFS{speed}=="12"
SYSFS{version}==" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.0':
BUS=="pci"
ID=="0000:00:02.0"
DRIVER=="ohci_hcd"
SYSFS{class}=="0x0c0310"
SYSFS{device}=="0x0067"
SYSFS{irq}=="5"
SYSFS{local_cpus}=="1"
SYSFS{modalias}=="pci:v000010DEd00000067sv00001565sd00003400bc0Csc03i10"
SYSFS{subsystem_device}=="0x3400"
SYSFS{subsystem_vendor}=="0x1565"
SYSFS{vendor}=="0x10de"
looking at the device chain at '/sys/devices/pci0000:00':
BUS==""
ID=="pci0000:00"
DRIVER=="unknown"
Is this a Gentoo problem, maybe my drive needs formatting, or perhaps the USB chip in the Archos is failing?
Any ideas are welcome . . .
Jim



