On Mon, 16 Aug 2004, Darsen Lu wrote: > I have a 128MB Apacer Audio Steno, but I can't mount it under kernel > 2.6. Does anyone know how to solve this problem? > > It works on Windows and Mandrake 9.2 (kernel 2.4.22-10mdk). However, > when I tried Mandrake 10 (kernel 2.6.3-7mdk) it failed. I typed "dmesg" > and saw "Buffer I/O error on device sda, logic block ....." I found > similar problems concerning usb storage devices on the web (including > kernel 2.6.5, 2.6.6, 2.6.7, 2.6.7bk20, 2.6.8 ...) > > Then, I compiled linux-2.6.8.1, which is the newest version now. I > patched it with supermount and compiled it, but the same thing > happened. I don't know what to do. I attached some information below > for convenience. Thanks in advance!
The problem is clear enough, although why it comes up isn't quite so obvious... Your log says: > SCSI device sda: 251905 512-byte hdwr sectors (129 MB) So your device claims to have 251905 blocks, numbered from 0 to 251904. > usb-storage: Illegal Request: Logical block address out of range > usb-storage: scsi cmd done, result=0x2 > usb-storage: *** thread sleeping. > end_request: I/O error, dev sda, sector 251904 > Buffer I/O error on device sda, logical block 251904 But when the computer tries to read the last block, the device returns an error saying that block number 251904 is out of range. Clearly this is a bug in your device. Maybe it really has only 251904 blocks, so the last block number should be 251903. Why does Linux try to read the last block of the device? My guess is because the device doesn't have a regular valid partition table stored in the first block, so the system tries to find an alternate type of partition table in the last block. Maybe Linux 2.4 doesn't look for the same sorts of alternate partition tables and so doesn't trigger the bug. It's possible to create a patch that will reduce by 1 the value reported for the number of blocks in your device. That might be enough to make things work. To do this, I need to see the contents of your /proc/bus/usb/devices file with the device plugged in (the file you sent before didn't have an entry for the device). Alan Stern ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users