On Sat, 26 Aug 2006, Anton Litvinov wrote:

> > So I'll guess the device doesn't like this command.  The patch below will
> > prevent Linux from sending that command.  Let us know if it helps.

> Hello.
> 
> 
> I noticed an interesting thing:
> If I plug my USB flash memory during FreeBSD or MS-Windows session and
> after that reboot into Linux, then I see my USB flash and can read it !

That may indicate the PREVENT-ALLOW MEDIUM REMOVAL command isn't the
problem.  I don't know about FreeBSD; does it have any way for you to 
monitor the data sent over the USB bus?

With Windows, you can use the USB Snoop program (from sourceforge) to 
monitor the communication with the device.  Comparing it to what Linux 
sends might indicate where the problem is.

> By the way I looked into FreeBSD kernel sources and didn't find there
> anything specific to my USB flash.

Not necessarily meaningful.

> If I plug my USB flash during Linux session I see situation described
> in my first post.
> 
> Patching unusual_devs.h doesn't change this behaviour.
> 
> 
> dmesg log after I patched unusual_devs.h:

> usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
> usb-storage:  1e 00 00 00 01 00

Looks like you used the original driver, not the patched one.  With that
patch, this command wouldn't be here.

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-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to