hi list,

first off, my apologies if this is not the right place to send this
message to, (i am not a developer myself) but to me this seems a
matter for the usb developers, so i decided to come here. it is a
rather long message, but i have tried to find out as much info on this
bug as i could.

i recently bought a digital camera and a multi-media card reader, both
of which have usb connectors. the camera is a Sony DSC-P7, which,
after applying a patch i found somewhere, works fine. the card reader
is a SiteCom CN-300, which is reported to work fine under linux both
on the working devices list and on the manufacturers web site, but i
have run into a problem.

when i first put a memory stick in the reader and try to mount it, i
get this error:

 mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
         or too many mounted file systems

when i try to mount a second time, it works fine: there is no
error. the error only seems to occur with the first attempt after
inserting the memory stick into the reader. when i keep the stick in,
i can umount and mount again without any problem.

i can also read the device, but when i copy large files off of it, the
copy is invariably corrupted. smaller files are copied just fine.

i am sure this is not a problem with the camera or the memory stick,
because when i connect the camera itself and copy the file that way,
the images are fine. furthermore, the problem occurs with two
different memory sticks, both of which can be read fine if i connect
the camera to the computer.

in order to see what is actually corrupted, i copied each picture to
my computer twice, once through the card reader and once through the
camera. when i compared the images with cmp, i noticed that the
corruption always starts at byte 163841. that is, the first 640k bytes
are copied correctly. i checked this on nine different images, and in
all the corruption starts at this same byte.

i then split up some of the corrupted files and their uncorrupted
counterparts into chunks of 640k each, and then compared those. it
turns out that most of these chunks are identical. it is always the
second block that is not, and in some cases there is another block
that is also corrupted. of these blocks, there are usually some 16320
consecutive bytes that are different from what they should be. this
number varies a bit, but i'm guessing that is due to the fact that
sometimes bytes are accidentally "corrupted" to the correct value.

the corruption does not seem to be random. when i copy the same file
to my computer several times, the copied files are both corrupt, but
they are identical.

since i have a uhci controller, i tried with both drivers, uhci and
usb-uhci, and both show the same problems. this is on a 2.4.20 kernel,
BTW.

the output of dmesg and in /var/log/messages doesn't show anything
that seems obviously wrong, at least to me:

dmesg says this:

hub.c: new USB device 00:07.2-1.2, assigned address 4
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: DMI       Model: MultiFlash        Rev: 3.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: DMI       Model: MultiFlash        Rev: 3.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: DMI       Model: MultiFlash        Rev: 3.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: DMI       Model: MultiFlash        Rev: 3.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4

and /var/log/messages shows this:

Jan  7 21:28:53 catv0149 kernel:  sda: I/O error: dev 08:00, sector 0
Jan  7 21:28:53 catv0149 kernel:  sdb: I/O error: dev 08:10, sector 0
Jan  7 21:28:53 catv0149 kernel:  sdc: I/O error: dev 08:20, sector 0
Jan  7 21:28:53 catv0149 kernel:  sdd: sdd1


i hope there is someone here that has an idea of what might be wrong,
and can help me get this resolved.

TIA

joost

-- 
Joost Kremers
University of Nijmegen, The Netherlands
Department of Arabic and Islam

Erasmusplein 1
PO Box 9103
6500 HD Nijmegen, The Netherlands

tel: +31 24 3612996
fax: +31 24 3612807

http://baserv.uci.kun.nl/~jkremers


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to