OpenWrt Forum Archive

Topic: Cant access USB HD

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

i followed the usb storage howto 2 times and did search and read stuff here on the forum for 4 hours to rule out any mistakes but i really cant get my USB Maxtor Onetouch 2.5" going!!!

HW Data is:

ASUS WL-500G Premium with most recent Whiterussion stable (0.9) and x-wrtg.

The system is able to detect and mount a 256MB USB Ramstick (ext2 fs + swap), detect and mount a Cardreader  with a 2GB SD Ram Card (vfat fs) but when i insert the HD i only get errors.

"lsub" detects the HD:

Bus 001 Device 001: ID 0000:0000  
Bus 001 Device 004: ID 0d49:7250 Maxtor 
Bus 001 Device 005: ID 0dda:2005 Integrated Circuit Solution, Inc.

(See next posting for lsusb -v details)

But when i inser the HD i get tons of errors and no "/dev/scsi/...lunx/part1" etc. device. Only a "/dev/scsi/...lunx/disc" entry. Needless to say that the HD works well under Ubuntu and Windoozes. The HD has 2 ext2 partions, one swap partition and one large (127GB) vfat partition.

Heres the head of the error message (again see next posting for full dmesg output)

hub.c: new USB device 01:03.2-1, assigned address 7
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
VFS: busy inodes on changed media.
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sda : block size assumed to be 512 bytes, disk size 1GB.  
sda: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0
 unable to read partition table
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)

One more Question: Most of the USB 2,5" HDs seem to have two USB connectors for sucking electricity. Are there HDs know to work with only one USB Plug? Should i invest into a power adapter for the HD or should i buy an USB Hub?!

thx,

nethead

Here now full debug data:

dmesg after inserting the HD

hub.c: new USB device 01:03.2-1, assigned address 7
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
VFS: busy inodes on changed media.
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sda : block size assumed to be 512 bytes, disk size 1GB.  
sda: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0
 unable to read partition table
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
VFS: Disk change detected on device 08:10
sdb: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdb : block size assumed to be 512 bytes, disk size 1GB.  
sdb: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun1: I/O error: dev 08:10, sector 0
 I/O error: dev 08:10, sector 0
VFS: Disk change detected on device 08:10
sdb: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdb : block size assumed to be 512 bytes, disk size 1GB.  
sdb: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun1: I/O error: dev 08:10, sector 0
 I/O error: dev 08:10, sector 0
VFS: Disk change detected on device 08:20
sdc: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdc : block size assumed to be 512 bytes, disk size 1GB.  
sdc: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun2: I/O error: dev 08:20, sector 0
 I/O error: dev 08:20, sector 0
VFS: Disk change detected on device 08:20
sdc: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdc : block size assumed to be 512 bytes, disk size 1GB.  
sdc: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun2: I/O error: dev 08:20, sector 0
 I/O error: dev 08:20, sector 0
VFS: Disk change detected on device 08:30
sdd: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdd : READ CAPACITY failed.
sdd : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdd : block size assumed to be 512 bytes, disk size 1GB.  
sdd: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun3: I/O error: dev 08:30, sector 0
 I/O error: dev 08:30, sector 0
VFS: Disk change detected on device 08:30
sdd: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdd : READ CAPACITY failed.
sdd : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sdd : block size assumed to be 512 bytes, disk size 1GB.  
sdd: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun3: I/O error: dev 08:30, sector 0
 I/O error: dev 08:30, sector 0
VFS: Disk change detected on device 08:40
sde: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sde : READ CAPACITY failed.
sde : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sde : block size assumed to be 512 bytes, disk size 1GB.  
sde: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun4: I/O error: dev 08:40, sector 0
 I/O error: dev 08:40, sector 0
VFS: Disk change detected on device 08:40
sde: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sde : READ CAPACITY failed.
sde : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00 
sde : block size assumed to be 512 bytes, disk size 1GB.  
sde: test WP failed, assume Write Enabled
 /dev/scsi/host0/bus0/target0/lun4: I/O error: dev 08:40, sector 0

lsusb -v

Bus 001 Device 001: ID 0000:0000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0         8
  idVendor           0x0000 
  idProduct          0x0000 
  bcdDevice            2.04
  iManufacturer           3 Linux 2.4.30 ehci_hcd
  iProduct                2 PCI device 1106:3104
  iSerial                 1 01:03.2
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0008
    Ganged power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0x80 
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
 
Bus 001 Device 007: ID 0d49:7250 Maxtor 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0d49 Maxtor
  idProduct          0x7250 
  bcdDevice            0.01
  iManufacturer           1 Maxtor
  iProduct                2 Maxtor OneTouch III
  iSerial                 3 2CASD75X
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      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               0
      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               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1

lsmod

Module                  Size  Used by    Tainted: P  
ppp_async               8108   0 (unused)
ipt_IMQ                  672   1
ipt_length               336   5
ipt_layer7             10512   2
ipt_ipp2p               7320   1
ipt_CONNMARK             816   2
pppoe                   9416   0 (unused)
pppox                   1372   1 [pppoe]
ppp_generic            22868   0 [ppp_async pppoe pppox]
slhc                    6352   0 [ppp_generic]
ehci-hcd               20556   0 (unused)
usb-storage            68624   1
sd_mod                 12500   2
scsi_mod               70616   3 [usb-storage sd_mod]
usbcore                74808   1 [ehci-hcd usb-storage]
vfat                   11692   1
fat                    36840   0 [vfat]
ext2                   41528   0
loop                   11112   0 (unused)
wlcompat               15744   0 (unused)
ip_nat_irc              2336   0 (unused)
ip_conntrack_irc        3128   1
ip_nat_tftp             1824   0 (unused)
ip_conntrack_tftp       1728   1
ip_nat_ftp              2960   0 (unused)
ip_conntrack_ftp        4320   1
wl                    423640   0 (unused)
switch-robo             4460   0 (unused)
switch-core             4912   0 [switch-robo]
diag                   19808   0 (unused)

If someone can please help, this HD is the only thing (hopefully smile ) preventing the final setup of my openwrtg Asus Box!!!! *sic*

cheers,

  netehad

nethead wrote:

One more Question: Most of the USB 2,5" HDs seem to have two USB connectors for sucking electricity. Are there HDs know to work with only one USB Plug? Should i invest into a power adapter for the HD or should i buy an USB Hub?!

I can confirm this. My usb disk sometimes (Not always, strange enough) need 2 usb connectors to spin up. After the spinning up I can remove the other connector.

Ok fiddling around with hardware and software setup i discoverd that, depening on how i connect the maxtor usb harddisk to the ASUS WL-500gP i get different dmesg logs :(

If i boot it up with the USDB harddisk connected with both USB plugs the HD is at least recognized by the scsi driver:

hub.c: new USB device 01:03.2-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices

but then fails with:

usb_control/bulk_msg: timeout                           
scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
WARNING: USB Mass Storage data integrity not assured                            
USB Mass Storage device found at 2

I now go and buy an USB hub in case all this problems are due to the powersupply is not efficient.

As i said, the HD connects well to other Linux and Windows boxes when only using one usd plug and the ASUS WL-500g can use other USB devices like Mem-Sticks and Cardreaders with SD Cards.

This suxs....

(Last edited by nethead on 26 Sep 2007, 08:08)

belrpr wrote:
nethead wrote:

One more Question: Most of the USB 2,5" HDs seem to have two USB connectors for sucking electricity. Are there HDs know to work with only one USB Plug? Should i invest into a power adapter for the HD or should i buy an USB Hub?!

I can confirm this. My usb disk sometimes (Not always, strange enough) need 2 usb connectors to spin up. After the spinning up I can remove the other connector.

Good to know but is it better to go and buy an external powersupply for the HD or should i buy an USB hub with external powersupply?

And why isnt there indicator on the disc so i know if it has enough power or not? The maxtor onetouch has an LED and ist on even if it doesnt has enough power.  This USB stuff with openwrt on embedded devices is really driving me nuts....

cheers,

  nethead

(Last edited by nethead on 26 Sep 2007, 08:11)

I am going for an external adapter 2 but basicly because I want to silence the damm thing so I can sleep without the annoying thing around my head.

No real change when connecting the USB HD via an external USB 4 port hub with external power suppy. When i disconnect the power-supply and reconnect it i get the same error messages than before

USB Mass Storage device found at 15             
VFS: Disk change detected on device 08:00
sda: Unit Not Ready, sense:                         
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2   
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.                          
sda : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2 
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00  
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled                         
 /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0                       
VFS: Disk change detected on device 08:00                         
sda: Unit Not Ready, sense:                          
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2   
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.                             
sda : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2             
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00  
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled                         
 /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0                       
VFS: Disk change detected on device 08:10                         
sdb: Unit Not Ready, sense:                          
Info fld=0xa00 (nonstd), Current 00:00: sns = 70  2  
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sdb : READ CAPACITY failed.                             
sdb : status = 1, message = 00, host = 0, driver = 08 
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70  2             
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: test WP failed, assume Write Enabled             
 /dev/scsi/host1/bus0/target0/lun1: I/O error: dev 08:10, sector 0

But now the system creates the following device entries:

/dev/scsi/host1/bus0/target0/lun0/disc
/dev/scsi/host1/bus0/target0/lun1/disc
/dev/scsi/host1/bus0/target0/lun2/disc
/dev/scsi/host1/bus0/target0/lun3/disc
/dev/scsi/host1/bus0/target0/lun4/disc

which it didnt create before. Not that it helps because the partitions are obviously missing....

/proc/partitions looks like this btw:

major minor  #blocks  name
 
   8     0    1048575 scsi/host1/bus0/target0/lun0/disc
   8    16    1048575 scsi/host1/bus0/target0/lun1/disc
   8    32    1048575 scsi/host1/bus0/target0/lun2/disc
   8    48    1048575 scsi/host1/bus0/target0/lun3/disc
   8    64    1048575 scsi/host1/bus0/target0/lun4/disc
   8    80     245248 scsi/host2/bus0/target0/lun0/disc
   8    81     187984 scsi/host2/bus0/target0/lun0/part1
   8    82      56800 scsi/host2/bus0/target0/lun0/part2

Anyone has any idea whats going on?! Any pointers where to look for?

I am again searching the openwrt.org (and other sites) for information and did run over this open tikcket concerning the Kamikaze release with the same kernel:

https://dev.openwrt.org/ticket/1819

Anyone can help me with this topic?!

Heres the output when the harddisc gets successfully connected to my Ubuntu Box:

[17042.132000] usb 4-2: new high speed USB device using ehci_hcd and address 8
[17042.132000] usb 4-2: configuration #1 chosen from 1 choice
[17042.132000] scsi6 : SCSI emulation for USB Mass Storage devices
[17042.132000] usb-storage: device found at 8
[17042.132000] usb-storage: waiting for device to settle before scanning
[17047.140000] usb-storage: device scan complete
[17047.872000] scsi 6:0:0:0: Direct-Access     Maxtor   OneTouch III     0364 PQ: 0 ANSI: 4
[17047.904000] SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
[17047.904000] sdb: Write Protect is off
[17047.904000] sdb: Mode Sense: 17 00 00 00
[17047.904000] sdb: assuming drive cache: write through
[17047.904000] SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
[17047.908000] sdb: Write Protect is off
[17047.908000] sdb: Mode Sense: 17 00 00 00
[17047.908000] sdb: assuming drive cache: write through
[17047.908000]  sdb: sdb1 sdb2 sdb3 sdb4
[17047.952000] sd 6:0:0:0: Attached scsi disk sdb
[17047.952000] sd 6:0:0:0: Attached scsi generic sg2 type 0

The discussion might have continued from here.