On Sun, 2 Sep 2012, Alon Bar-Lev wrote: > I modified the patch to the following to make sure my main disk is unaffected: > This is what I get now, I guess detection is good now, but something > in the IO is wrong, when plugged to computer's sata it works > correctly. > > --- > Sep 2 11:42:55 localhost kernel: Initializing USB Mass Storage driver... > Sep 2 11:42:55 localhost kernel: scsi6 : usb-storage 2-1.1:1.0 > Sep 2 11:42:55 localhost kernel: usbcore: registered new interface > driver usb-storage > Sep 2 11:42:55 localhost kernel: USB Mass Storage support registered. > Sep 2 11:42:56 localhost kernel: scsi 6:0:0:0: Direct-Access WDC > WD30 EZRX-00MMMB0 PQ: 0 ANSI: 5 > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: Attached scsi generic sg2 type 0 > Sep 2 11:42:56 localhost kernel: @ALON: apply workaround 1 > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] 5860533168 > 512-byte logical blocks: (3.00 TB/2.72 TiB) Is this the same as the number of blocks you get when the drive is plugged into a SATA port? > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Mode Sense: 28 00 00 00 > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] No Caching mode page present > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive > cache: write through > Sep 2 11:42:56 localhost kernel: @ALON: apply workaround 1 > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] No Caching mode page present > Sep 2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive > cache: write through > Sep 2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB > device number 7 using ehci_hcd > Sep 2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB > device number 7 using ehci_hcd > Sep 2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB > device number 7 using ehci_hcd > Sep 2 11:42:57 localhost kernel: usb 2-1.1: reset high-speed USB > device number 7 using ehci_hcd > Sep 2 11:42:57 localhost kernel: usb 2-1.1: reset high-speed USB > device number 7 using ehci_hcd > Sep 2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb] Unhandled error code > Sep 2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb] > Sep 2 11:42:57 localhost kernel: Result: hostbyte=0x07 driverbyte=0x00 > Sep 2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb] CDB: > Sep 2 11:42:57 localhost kernel: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00 > Sep 2 11:42:57 localhost kernel: end_request: I/O error, dev sdb, sector 0 > Sep 2 11:42:57 localhost kernel: Buffer I/O error on device sdb, > logical block 0 Yep, something is wrong. To find out what, capture a usbmon trace showing what happens when the drive is plugged in (see Documentation/usb/usbmon.txt for instructions). Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html