Skip to contentSkip to conversation

Malfunctioning USB stick

DISCUSSION Oliver Neukum 2 participants 3 messages May 13, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

Hi,

this stick is acting up.
I just mounted it and got (no disconnection physically):

May 13 18:07:50 macbeth kernel: usb 1-1: new high speed USB device using address 3
May 13 18:07:50 macbeth /etc/hotplug/usb.agent[8343]: need a device for this command
May 13 18:07:50 macbeth kernel: Initializing USB Mass Storage driver...
May 13 18:07:50 macbeth kernel: scsi1 : SCSI emulation for USB Mass Storage devices
May 13 18:07:50 macbeth kernel:   Vendor:           Model: USB DISK Pro      Rev: 2.00
May 13 18:07:50 macbeth kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
May 13 18:07:51 macbeth kernel: SCSI device sda: 250880 512-byte hdwr sectors (128 MB)
May 13 18:07:51 macbeth kernel: sda: assuming Write Enabled
May 13 18:07:51 macbeth kernel: sda: assuming drive cache: write through
May 13 18:07:51 macbeth kernel:  sda: sda1
May 13 18:07:51 macbeth kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
May 13 18:07:51 macbeth kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0,  type 0
May 13 18:07:51 macbeth kernel: USB Mass Storage device found at 3
May 13 18:07:51 macbeth kernel: usbcore: registered new driver usb-storage
May 13 18:07:51 macbeth kernel: USB Mass Storage support registered.
May 13 18:07:51 macbeth /etc/hotplug/scsi_device.agent[8422]: FATAL: Module sg not found.
May 13 18:07:51 macbeth /etc/hotplug/block.agent[8421]: new block device /block/sda/sda1
May 13 18:07:51 macbeth /etc/hotplug/block.agent[8412]: waiting for /var/lock/block.agent.lock, process 8421 holds it
May 13 18:08:04 macbeth /etc/hotplug/block.agent[8421]: mount by-path/usb-storage-07441418065B:0:0:0p1
May 13 18:08:04 macbeth /etc/hotplug/block.agent[8421]: mount: fs type subfs not supported by kernel
May 13 18:08:04 macbeth /etc/hotplug/block.agent[8412]: new block device /block/sda
May 13 18:09:01 macbeth su: (to root) oliver on /dev/pts/42
May 13 18:09:01 macbeth su: pam_unix2: session started for user root, service su 
May 13 18:10:21 macbeth kernel: scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
May 13 18:10:21 macbeth kernel: scsi1 (0:0): rejecting I/O to offline device
May 13 18:10:21 macbeth kernel: SCSI error: host 1 id 0 lun 0 return code = 4000000
May 13 18:10:21 macbeth kernel: 	Sense class 0, sense error 0, extended sense 0
May 13 18:10:30 macbeth kernel: usb 1-1: USB disconnect, address 3
May 13 18:10:30 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
May 13 18:10:30 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
May 13 18:10:30 macbeth kernel: Call Trace:
May 13 18:10:30 macbeth kernel:  [<c0304bda>] scsi_device_set_state+0xea/0x140
May 13 18:10:30 macbeth kernel:  [<c02ff408>] scsi_device_cancel+0x28/0xfa
May 13 18:10:30 macbeth kernel:  [<c02ff520>] scsi_device_cancel_cb+0x0/0x20
May 13 18:10:30 macbeth kernel:  [<c02c312d>] device_for_each_child+0x3d/0x70
May 13 18:10:30 macbeth kernel:  [<c02ff57e>] scsi_host_cancel+0x3e/0xd0
May 13 18:10:30 macbeth kernel:  [<c02ff520>] scsi_device_cancel_cb+0x0/0x20
May 13 18:10:30 macbeth kernel:  [<c0343032>] usb_buffer_free+0x52/0x60
May 13 18:10:30 macbeth kernel:  [<c02ff626>] scsi_remove_host+0x16/0x60
May 13 18:10:30 macbeth kernel:  [<e1b3cdd5>] storage_disconnect+0x35/0x40 [usb_storage]
May 13 18:10:30 macbeth kernel:  [<c0341d2a>] usb_unbind_interface+0x6a/0x70
May 13 18:10:30 macbeth kernel:  [<c02c4056>] device_release_driver+0x66/0x70
May 13 18:10:30 macbeth kernel:  [<c02c4195>] bus_remove_device+0x55/0xa0
May 13 18:10:30 macbeth kernel:  [<c02c3067>] device_del+0x57/0xc0
May 13 18:10:30 macbeth kernel:  [<c02c30e0>] device_unregister+0x10/0x20
May 13 18:10:30 macbeth kernel:  [<c0347e80>] usb_disable_device+0x90/0xc0
May 13 18:10:30 macbeth kernel:  [<c0342962>] usb_disconnect+0xa2/0xf0
May 13 18:10:30 macbeth kernel:  [<c03448ef>] hub_port_connect_change+0x8f/0x2d0
May 13 18:10:30 macbeth kernel:  [<c0344463>] hub_port_status+0x43/0xb0
May 13 18:10:30 macbeth kernel:  [<c0344da3>] hub_events+0x273/0x320
May 13 18:10:30 macbeth kernel:  [<c0344ea3>] hub_thread+0x53/0x100
May 13 18:10:30 macbeth kernel:  [<c0116ad0>] default_wake_function+0x0/0x20
May 13 18:10:30 macbeth kernel:  [<c0344e50>] hub_thread+0x0/0x100
May 13 18:10:30 macbeth kernel:  [<c01022ad>] kernel_thread_helper+0x5/0x18
May 13 18:10:30 macbeth kernel: 
May 13 18:10:30 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
May 13 18:10:30 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
May 13 18:10:30 macbeth kernel: Call Trace:
May 13 18:10:30 macbeth kernel:  [<c0304bda>] scsi_device_set_state+0xea/0x140
May 13 18:10:30 macbeth kernel:  [<c03071e0>] scsi_remove_device+0x20/0xc0
May 13 18:10:30 macbeth kernel:  [<c030653a>] scsi_forget_host+0x2a/0x50
May 13 18:10:30 macbeth kernel:  [<c02ff636>] scsi_remove_host+0x26/0x60
May 13 18:10:30 macbeth kernel:  [<e1b3cdd5>] storage_disconnect+0x35/0x40 [usb_storage]
May 13 18:10:30 macbeth kernel:  [<c0341d2a>] usb_unbind_interface+0x6a/0x70
May 13 18:10:30 macbeth kernel:  [<c02c4056>] device_release_driver+0x66/0x70
May 13 18:10:30 macbeth kernel:  [<c02c4195>] bus_remove_device+0x55/0xa0
May 13 18:10:30 macbeth kernel:  [<c02c3067>] device_del+0x57/0xc0
May 13 18:10:30 macbeth kernel:  [<c02c30e0>] device_unregister+0x10/0x20
May 13 18:10:30 macbeth kernel:  [<c0347e80>] usb_disable_device+0x90/0xc0
May 13 18:10:30 macbeth kernel:  [<c0342962>] usb_disconnect+0xa2/0xf0
May 13 18:10:30 macbeth kernel:  [<c03448ef>] hub_port_connect_change+0x8f/0x2d0
May 13 18:10:30 macbeth kernel:  [<c0344463>] hub_port_status+0x43/0xb0
May 13 18:10:30 macbeth kernel:  [<c0344da3>] hub_events+0x273/0x320
May 13 18:10:30 macbeth kernel:  [<c0344ea3>] hub_thread+0x53/0x100
May 13 18:10:30 macbeth kernel:  [<c0116ad0>] default_wake_function+0x0/0x20
May 13 18:10:30 macbeth kernel:  [<c0344e50>] hub_thread+0x0/0x100
May 13 18:10:30 macbeth kernel:  [<c01022ad>] kernel_thread_helper+0x5/0x18
#1 lore raw
Quoted 4 lines · Oliver Neukum

Hi,

this stick is acting up.
I just mounted it and got (no disconnection physically):

It looks like some sort of I/O problem reading the partition table. What do you get with verbose usb-storage debugging enabled?

Alan Stern

#2 lore raw

Am Donnerstag, 13. Mai 2004 20:09 schrieb Alan Stern:

Quoted 9 lines · Oliver Neukum
Quoted 5 lines

Hi,

this stick is acting up.
I just mounted it and got (no disconnection physically):

It looks like some sort of I/O problem reading the partition table. What do you get with verbose usb-storage debugging enabled?

It turns out that the stick is defect. I've tested it on three computers and two operating systems. In fact during tests it got alarmingly hot. I think, there's little sense in further testing. It already turned up one little issue in the scsi code and I am impressed at the quality of our error handling :-)
Now I'll have the pleasure the return it to the shop on a friday :-(

Regards
Oliver

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel