On Tue, 8 May 2007, Benjamin von Engelhardt wrote:

> > You mean you get the "code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0" message
> > even when a memory stick is in the slot?  If you do then the slot or the
> > stick isn't working right -- that message should appear only when the slot
> > is empty.
> 
> You are right, the message is different, if I enter the slot. Then I 
> something 
> like that:

> 
> May  8 10:46:07 benz505sx kernel: sda: Write Protect is on
> May  8 10:46:07 benz505sx kernel: sda: Mode Sense: 00 6a 11 80
> May  8 10:46:07 benz505sx kernel: sda: assuming drive cache: write through
> May  8 10:46:07 benz505sx kernel: usb-storage: queuecommand called
> May  8 10:46:07 benz505sx kernel: usb-storage: *** thread awakened.
> May  8 10:46:07 benz505sx kernel: usb-storage: Command ALLOW_MEDIUM_REMOVAL 
> (6 
> bytes)
...
> May  8 10:46:07 benz505sx kernel: usb-storage: -- Result from auto-sense is 0
> May  8 10:46:07 benz505sx kernel: usb-storage: -- code: 0x70, key: 0x3, ASC: 
> 0x30, ASCQ: 0x1

This error message means "Medium Error: Cannot read medium - unknown
format".  However I suspect that code is incorrect, because the command
was ALLOW_MEDIUM_REMOVAL, which doesn't require the slot to read anything
from the stick.

More likely the slot just can't handle the command at all.  Fortunately
it's possible to prevent the command from being sent.  If you post the
output from "lsusb -v" for your device, I can send you a patch.  What
version of the kernel are you running?

> > On the other hand if that message shows up only when the slot is empty,
> > and if your only problem is that the log files keep growing, then there's
> > nothing to worry about.  Simply turn off CONFIG_USB_STORAGE_DEBUG; that
> > will prevent these messages from being logged.
> 
> Thats something for a start. But it would be great if I get the slot 
> working...

Does the slot not work?  You haven't said what happens when you try to use 
the stick.  Those errors messages above aren't fatal.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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