[Bug 40561] Problem with USB Mass Storage

marduk dennis.schwan at leuchtturm-it.de
Fri Sep 15 11:24:35 UTC 2006


Public bug reported:

I have this problem with 2 PC's running Dapper Drake Beta (Last Upgrade today).
The USB-Device gets connected and is also mounted automatically. But syslog already writes down some errors:

[4295161.475000] cdc_acm 2-2:1.1: ttyACM0: USB ACM device
[4295161.478000] cdc_acm 2-2:1.3: ttyACM1: USB ACM device
[4295161.480000] usbcore: registered new driver cdc_acm
[4295161.480000] drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
[4295174.463000] usb 2-2: USB disconnect, address 2
[4295177.919000] usb 2-2: new full speed USB device using uhci_hcd and address 3
[4295178.210000] SCSI subsystem initialized
[4295178.223000] Initializing USB Mass Storage driver...
[4295178.223000] scsi0 : SCSI emulation for USB Mass Storage devices
[4295178.224000] usb-storage: device found at 3
[4295178.224000] usb-storage: waiting for device to settle before scanning
[4295178.224000] scsi1 : SCSI emulation for USB Mass Storage devices
[4295178.224000] usb-storage: device found at 3
[4295178.224000] usb-storage: waiting for device to settle before scanning
[4295178.225000] usbcore: registered new driver usb-storage
[4295178.225000] USB Mass Storage support registered.
[4295183.228000]   Vendor: SEMC      Model: Int.Memory        Rev: 0000
[4295183.228000]   Type:   Direct-Access                      ANSI SCSI revision: 00
[4295183.228000]   Vendor: SEMC      Model: Mem-Stick         Rev: 0000
[4295183.228000]   Type:   Direct-Access                      ANSI SCSI revision: 00
[4295183.233000] usb-storage: device scan complete
[4295183.233000] usb-storage: device scan complete
[4295183.333000] SCSI device sda: 53996 512-byte hdwr sectors (28 MB)
[4295183.339000] sda: Write Protect is off
[4295183.339000] sda: Mode Sense: 00 6a 00 00
[4295183.339000] sda: assuming drive cache: write through
[4295183.352000] SCSI device sda: 53996 512-byte hdwr sectors (28 MB)
[4295183.357000] sda: Write Protect is off
[4295183.357000] sda: Mode Sense: 00 6a 00 00
[4295183.357000] sda: assuming drive cache: write through
[4295183.357000]  sda: sda1
[4295183.371000] sd 0:0:0:0: Attached scsi removable disk sda
[4295183.381000] SCSI device sdb: 960481 512-byte hdwr sectors (492 MB)
[4295183.386000] sdb: Write Protect is off
[4295183.386000] sdb: Mode Sense: 00 6a 00 00
[4295183.386000] sdb: assuming drive cache: write through
[4295183.399000] SCSI device sdb: 960481 512-byte hdwr sectors (492 MB)
[4295183.405000] sdb: Write Protect is off
[4295183.405000] sdb: Mode Sense: 00 6a 00 00
[4295183.405000] sdb: assuming drive cache: write through
[4295183.405000]  sdb: sdb1
[4295183.426000] sd 1:0:0:0: Attached scsi removable disk sdb
[4295183.459000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[4295183.459000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[4295183.727000] Buffer I/O error on device sdb1, logical block 960472
[4295183.727000] Buffer I/O error on device sdb1, logical block 960473
[4295183.727000] Buffer I/O error on device sdb1, logical block 960474
[4295183.727000] Buffer I/O error on device sdb1, logical block 960475
[4295183.727000] Buffer I/O error on device sdb1, logical block 960476
[4295183.728000] Buffer I/O error on device sdb1, logical block 960477
[4295183.728000] Buffer I/O error on device sdb1, logical block 960478
[4295183.728000] Buffer I/O error on device sdb1, logical block 960479
[4295183.728000] Buffer I/O error on device sdb1, logical block 960472
[4295183.728000] Buffer I/O error on device sdb1, logical block 960473
[4295185.052000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[4295185.462000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

Then i write some files on the Device. Sometimes the copy job "hangs"
for a few seconds.

[4295245.559000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.559000] end_request: I/O error, dev sdb, sector 241504
[4295245.559000] printk: 94 messages suppressed.
[4295245.559000] Buffer I/O error on device sdb1, logical block 241473
[4295245.559000] lost page write due to I/O error on sdb1
[4295245.569000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.569000] end_request: I/O error, dev sdb, sector 241505
[4295245.569000] Buffer I/O error on device sdb1, logical block 241474
[4295245.569000] lost page write due to I/O error on sdb1
[4295245.580000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.580000] end_request: I/O error, dev sdb, sector 241506
[4295245.580000] Buffer I/O error on device sdb1, logical block 241475
[4295245.580000] lost page write due to I/O error on sdb1
[4295245.590000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.590000] end_request: I/O error, dev sdb, sector 241507
[4295245.590000] Buffer I/O error on device sdb1, logical block 241476
[4295245.590000] lost page write due to I/O error on sdb1
[4295245.600000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.600000] end_request: I/O error, dev sdb, sector 241508
[4295245.600000] Buffer I/O error on device sdb1, logical block 241477
[4295245.600000] lost page write due to I/O error on sdb1
[4295245.610000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.610000] end_request: I/O error, dev sdb, sector 241509
[4295245.610000] Buffer I/O error on device sdb1, logical block 241478
[4295245.610000] lost page write due to I/O error on sdb1
[4295245.620000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.620000] end_request: I/O error, dev sdb, sector 241510
[4295245.620000] Buffer I/O error on device sdb1, logical block 241479
[4295245.620000] lost page write due to I/O error on sdb1
[4295245.629000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.629000] end_request: I/O error, dev sdb, sector 241511
[4295245.629000] Buffer I/O error on device sdb1, logical block 241480
[4295245.629000] lost page write due to I/O error on sdb1
[4295245.639000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.639000] end_request: I/O error, dev sdb, sector 241512
[4295245.639000] Buffer I/O error on device sdb1, logical block 241481
[4295245.639000] lost page write due to I/O error on sdb1
[4295245.649000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.649000] end_request: I/O error, dev sdb, sector 241513
[4295245.649000] Buffer I/O error on device sdb1, logical block 241482
[4295245.649000] lost page write due to I/O error on sdb1
[4295245.659000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.659000] end_request: I/O error, dev sdb, sector 241514
[4295245.669000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.669000] end_request: I/O error, dev sdb, sector 241515
[4295245.679000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.679000] end_request: I/O error, dev sdb, sector 241516
[4295245.689000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.689000] end_request: I/O error, dev sdb, sector 241517
[4295245.699000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.699000] end_request: I/O error, dev sdb, sector 241518
[4295245.709000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.709000] end_request: I/O error, dev sdb, sector 241519
[4295245.713000] usb 2-2: USB disconnect, address 3
[4295245.713000] sd 1:0:0:0: SCSI error: return code = 0x10000
[4295245.713000] end_request: I/O error, dev sdb, sector 241520

Then i want to eject the device but it doesn umount (manually umount
also doesnt work). When i remove the cable from the PC i get this in my
syslog:

[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed

The files that i have transferred to the device are corrupted (0 bytes).
I can write to it with Windows XP / Vista without any problems, tried
with Knoppix and had the same. The USB-Device is brand new (arrived
today).

lsusb -v:

Bus 002 Device 007: ID 0fce:e042 Sony Ericsson Mobile Communications AB
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0fce Sony Ericsson Mobile Communications AB
idProduct 0xe042
bcdDevice 0.00
iManufacturer 1 Sony Ericsson
iProduct 2 Sony Ericsson W810
iSerial 3 359061003023867_0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 55
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 4 memory 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x07 EP 7 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 5 Sony Ericsson USB WMC Modem
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)

** Affects: linux-source-2.6.15 (Ubuntu)
     Importance: Medium
         Status: Confirmed

-- 
Problem with USB Mass Storage
https://launchpad.net/bugs/40561




More information about the kernel-bugs mailing list