On Fri, 29 Oct 2004, Moshe Yudkowsky wrote:

> I'm using Debian 2.6.8. I connected and mounted my iRiver USB as a UMS device, 
> copied some files, and unmounted the driver, and disconnected the device. I'm 
> having some problems, not just using the device but figuring out how to debug 
> the problem.
> 
> The file /proc/bus/usb/device can't be read. "lsusb" hangs forever, but of 
> course that's just trying to read the same file.
> 
> kill -KILL of "lsusb" doesn't work. Trying to remove the usb_storage or sd_mod 
> modules also fails.
> 
> Any suggestions on how to release these modules?
> 
> I suspect that what happened is a race condition -- the command "umount" 
> completed on the terminal but not on the device itself.

It's not a race.  Your device has a bug; it reports that it has one more 
sector than it actually does.  When Linux tries to read what appears to be 
the last sector, the device hangs.

> Since that time, even with plugs and unplugs, I don't see anything.
> 
> Let's see... "rmmod sr_mod" also hangs, indefinitely, and it depends on 
> scsi_mod. Nothing in /var/log. Could this be a kernel problem?

There were some problems internal to the SCSI layer, triggered by the bad 
device.  A patch is available for Linux 2.6.9 which should work around the 
buggy device:

http://marc.theaimsgroup.com/?l=linux-scsi&m=109890563230889&w=2

Let me know how it works out.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to