On Tue, 14 Jun 2005, Simon Rowe wrote: > Right here's the output with debug compiled in but I've found a work-around. > > Although the pendrive is unformatted,
You mean unpartitioned, not unformatted. > for historical reasons the init script > tries to mount /dev/sda1 before /dev/sda. If I remove this first mount > attempt then everything works as expected. It appears that trying to mount > the non-existent partition confuses usb-storage somehow. I don't need this > old behaviour any more so I can drop it. It doesn't confuse usb-storage. I'm guessing now because the relevant information wasn't present in your dmesg; it occurred before the start of the portion you posted. Apparently the attempt to access the non-existent /dev/sda1 caused the pendrive to reject a READ(10) command, maybe because the logical block address was garbage. The rejection may have been done using the wrong error code, causing the SCSI layer to think that the drive wanted to get a READ(6) instead of a READ(10). But that was exactly wrong; the drive rejected all READ(6) commands and consequently no further reads worked. > It would still be good if the cause could be pinned down, let me know if > anything else would help. That's probably it. You could find out for sure by plugging the pendrive into a running system, so that the entire debugging session could be captured. Since you're okay now maybe you don't really care. A safer workaround for this would be to partition the pendrive; that way you wouldn't have to worry about the kernel reading an invalid partition table. But it's up to you. Alan Stern ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
