Bug 229020

Summary: cannot read, but can write to motorola a1200 in storage mode
Product: [Fedora] Fedora Reporter: ritz <rkhadgar>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.20-1.3045.fc7PAE Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-09 08:10:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description ritz 2007-02-16 15:54:38 UTC
Description of problem:
I cannot use cp to copy files from my phone motorola a1200 in storage mode. This
worked fine FC5.

Version-Release number of selected component (if applicable):
Linux localhost 2.6.20-1.2930.fc7 #1 SMP Wed Feb 14 17:25:18 EST 2007 i686 i686
i386 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. plug in the phone in storage mode
2. mount partition 
3. read using cp
  
Actual results:
cannot copy files from device, but can write.

Expected results:
can read and write.

Additional info:
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 2:0:0:0: Direct-Access     Motorola Phone                 PQ: 0 ANSI: 4
SCSI device sdb: 990976 512-byte hdwr sectors (507 MB)
sdb: Write Protect is off
sdb: Mode Sense: 10 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 990976 512-byte hdwr sectors (507 MB)
sdb: Write Protect is off
sdb: Mode Sense: 10 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: Attached scsi disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 2:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
usb 5-8.2.4: USB disconnect, address 7
usb 5-8.2.4: new full speed USB device using ehci_hcd and address 8
usb 5-8.2.4: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 3:0:0:0: Direct-Access     Motorola Phone                 PQ: 0 ANSI: 4
SCSI device sdb: 990976 512-byte hdwr sectors (507 MB)
sdb: Write Protect is off
sdb: Mode Sense: 10 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 990976 512-byte hdwr sectors (507 MB)
sdb: Write Protect is off
sdb: Mode Sense: 10 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 3:0:0:0: Attached scsi disk sdb
sd 3:0:0:0: Attached scsi generic sg1 type 0
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
sd 3:0:0:0: SCSI error: return code = 0x08000002
sdb: Current: sense key: Medium Error
    ASC=0x0 ASCQ=0x5a
end_request: I/O error, dev sdb, sector 990968
Buffer I/O error on device sdb, logical block 123871
usb 5-8.2.4: reset full speed USB device using ehci_hcd and address 8

Comment 1 ritz 2007-02-16 15:55:45 UTC
no error or issue seen on FC5 kernel.

Comment 2 Pete Zaitcev 2007-02-16 18:05:26 UTC
What's the reported size on FC-5? I'd like to see the content of
/sys/block/sda/size on FC-5 (should be sda because FC-5 had no libata)
and /sys/block/sdb/size on FC-6.

The strange block size (4KB!) is really suspicious. I suspect that FAT
forgets to set the right sector size on the device. I remember dimly
that the necessary call had to be added to it, maybe it was lost.


Comment 3 ritz 2007-02-16 19:33:37 UTC
From RHEL4,FC5, and rawhide.
$ cat /sys/block/sda/size 
990976 




Comment 4 ritz 2007-02-16 20:06:48 UTC
will check up with my home box, and confirm.

Comment 5 ritz 2007-02-20 14:22:24 UTC
home box is gone for a toss. cannot verify.
using a card reader as a workaround.

i can write to phone, but i cannot copy file from phone :(


Comment 6 ritz 2007-04-09 08:10:03 UTC
works fine with kernel 2.6.20-1.3045.fc7PAE

no more error messages .