On Thu, 14 Sep 2006, Florian Echtler wrote: > Hi everybody, > > I have a Jenoptik JD6.0 digital camera (a rather cheap one), which can > be attached as an USB storage device. I've had some problems mounting > the camera under Linux, and I've now found out what the reason is: if > the SD card is at least 256 MB in size, the camera generates errors when > reading the last 8 sectors. This happened with several different SD > cards, so it's most likely a camera problem. > > My question is now whether it would make sense to implement some kind of > workaround in the usb-storage driver. AFAIK there are already several > such bugfixes.. so, what's your opinion?
Any such workaround would have to go into the SCSI disk driver, not usb-storage. All usb-storage does is transfer commands and results back and forth between the SCSI core and the USB device. If the commands themselves are bad, the SCSI driver needs to be changed to prevent it from issuing them. Although perhaps nothing really needs to be changed. Can you set the low-level format of the SD card (e.g., fdisk) so that the main partition doesn't include the last 8 sectors? Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel