usb 2.0 external hard drive stuck

zelcor zelcor at free.fr
Mon Sep 13 12:51:09 UTC 2004


Hi all,

I'm running FC2 with 2.6.8-1.521 kernel.

I try to use a 160 GB external hard drive in a Enermax EHD-350 USB 2.0 box.
When I plug the HD in, I see this in /var/log/messages :


Sep 13 13:34:59 localhost kernel: usb 1-5: new high speed USB device 
using address 5
Sep 13 13:34:59 localhost kernel: SCSI subsystem initialized
Sep 13 13:34:59 localhost kernel: Initializing USB Mass Storage driver...
Sep 13 13:34:59 localhost kernel: scsi0 : SCSI emulation for USB Mass 
Storage devices
Sep 13 13:34:59 localhost kernel:   Vendor: Genesys   Model: USB to IDE 
Disk   Rev: 0002
Sep 13 13:34:59 localhost kernel:   Type:   
Direct-Access                      ANSI SCSI revision: 02
Sep 13 13:34:59 localhost kernel: usbcore: registered new driver usb-storage
Sep 13 13:34:59 localhost kernel: USB Mass Storage support registered.
Sep 13 13:34:59 localhost scsi.agent[4975]: disk at 
/devices/pci0000:00/0000:00:03.2/usb1/1-5/1-5:1.0/host0/0:0:0:0
Sep 13 13:34:59 localhost kernel: SCSI device sda: 312581808 512-byte 
hdwr sectors (160042 MB)
Sep 13 13:34:59 localhost kernel: sda: test WP failed, assume Write Enabled
Sep 13 13:34:59 localhost kernel: sda: assuming drive cache: write through
Sep 13 13:34:59 localhost kernel:  sda: sda1
Sep 13 13:34:59 localhost kernel: Attached scsi removable disk sda at 
scsi0, channel 0, id 0, lun 0
Sep 13 13:35:00 localhost kernel: Attached scsi generic sg0 at scsi0, 
channel 0, id 0, lun 0,  type 0
Sep 13 13:35:00 localhost kernel: updfstab: Using deprecated /dev/sg 
mechanism instead of SG_IO on the actual device
Sep 13 13:35:00 localhost kernel: inserting floppy driver for 2.6.8-1.521
Sep 13 13:35:00 localhost kernel: Floppy drive(s): fd0 is 1.44M
Sep 13 13:35:00 localhost kernel: FDC 0 is a post-1991 82077
Sep 13 13:35:01 localhost kernel: updfstab: Using deprecated /dev/sg 
mechanism instead of SG_IO on the actual device
Sep 13 13:35:02 localhost udev[5070]: creating device node '/udev/sda'
Sep 13 13:35:02 localhost udev[5072]: creating device node '/udev/sg0'
Sep 13 13:35:02 localhost udev[5073]: creating device node '/udev/fd0'
Sep 13 13:35:02 localhost udev[5071]: creating device node '/udev/sda1'


Then, I mount the drive with:

mount /dev/sda1 /mnt/usbstorage

All seems ok when I ls /mnt/usbstorage but when I try to copy a big file 
(700 MB) from internal HD to usb HD, the usb one gets stuck after a few 
seconds and cp fails with the error message "cp: writing 
`/mnt/usbstorage/my_big_file': Input/output error".

The access LED remains lit on the usb drive and /var/log/messages says:

Sep 13 13:45:31 localhost udev[5200]: removing device node '/udev/sg0'
Sep 13 13:45:31 localhost kernel: scsi: Device offlined - not ready 
after error recovery: host 0 channel 0 id 0 lun 0
Sep 13 13:45:31 localhost kernel: SCSI error : <0 0 0 0> return code = 
0x50000
Sep 13 13:45:31 localhost kernel: end_request: I/O error, dev sda, 
sector 25255071
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255008
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: scsi0 (0:0): rejecting I/O to offline 
device
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255009
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255010
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255011
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255012
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255013
Sep 13 13:45:31 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:31 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255014
Sep 13 13:45:31 localhost udev[5219]: removing device node '/udev/sda1'
Sep 13 13:45:31 localhost udev[5230]: removing device node '/udev/sda'
Sep 13 13:45:32 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:32 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255015
Sep 13 13:45:32 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:32 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255016
Sep 13 13:45:32 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:32 localhost kernel: Buffer I/O error on device sda1, 
logical block 25255017
Sep 13 13:45:32 localhost kernel: lost page write due to I/O error on sda1
Sep 13 13:45:32 localhost kernel: scsi0 (0:0): rejecting I/O to offline 
device
Sep 13 13:45:32 localhost last message repeated 124 times
Sep 13 13:45:32 localhost kernel: usb 1-5: USB disconnect, address 5
Sep 13 13:45:32 localhost kernel: scsi0 (0:0): rejecting I/O to device 
being removed
Sep 13 13:45:32 localhost last message repeated 86 times
Sep 13 13:45:32 localhost kernel: FAT: unable to read inode block for 
updating (i_pos 204823069)
Sep 13 13:45:32 localhost kernel: scsi0 (0:0): rejecting I/O to device 
being removed
Sep 13 13:45:32 localhost last message repeated 549 times
Sep 13 13:45:32 localhost kernel: FAT: bread(block 3115) in fat_access 
failed
Sep 13 13:45:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:45:32 localhost kernel: FAT: bread(block 3114) in fat_access 
failed
Sep 13 13:46:03 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:03 localhost kernel: FAT: unable to read inode block for 
updating (i_pos 204823069)
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801376) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801377) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801378) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801379) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801380) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
Sep 13 13:46:32 localhost kernel: FAT: Directory bread(block 12801381) 
failed
Sep 13 13:46:32 localhost kernel: scsi0 (0:0): rejecting I/O to dead device
...

After that, I unplug the usb HD, plug it in again but nothing happens 
(no message in /var/log/messages). To be detected, the usb HD must be 
powered down and powered up again.


The usb drive works fine on a window$ box.

If my problem has already been described, please forward me to the right 
place.

thx for help





More information about the fedora-list mailing list