On Sat, 27 Jan 2007, Vaclav Barta wrote:

> On Saturday 27 January 2007 02:27, Alan Stern wrote:
> > Let's see the usbmon log for the entire sequence, starting with plugging
> > in the stick and including the usbreset, plscsi, and blkdev commands.
> OK, for the first sequence (insert the stick, then
>       ./usbreset /proc/bus/usb/001/002
>       ./plscsi -x '12 0 0 0 24 0' -i 36 /dev/sg0
>       ./plscsi -x '12 0 0 0 24 0' -i 36 /dev/sg1
>       blockdev --rereadpt /dev/sda
> ), it's

...

> Do you also want the other two?

If they also come up still write-protected, then no.

Well, here's one last thing you can try.  The patch below will prevent
Linux from asking the device whether it is write-protected, so there will
be nothing to prevent you from mounting /dev/sda1 read-write.

However, this doesn't mean the device will actually allow you to write on 
it!  The only way to find out it to try it.

You will still need to use usbreset together with the two plscsi commands 
and blockdev.  But then you ought to be able to do a normal mount.

Alan Stern


Index: usb-2.6/drivers/usb/storage/unusual_devs.h
===================================================================
--- usb-2.6.orig/drivers/usb/storage/unusual_devs.h
+++ usb-2.6/drivers/usb/storage/unusual_devs.h
@@ -1370,6 +1370,18 @@ UNUSUAL_DEV(  0x1370, 0x6828, 0x0110, 0x
                US_SC_DEVICE, US_PR_DEVICE, NULL,
                US_FL_IGNORE_RESIDUE ),
 
+/* Reported by Vaclav Barta <[EMAIL PROTECTED]>
+ * This device has 2 LUNs and refuses to read the first LUN before it
+ * has received an INQUIRY for the second LUN.  Attempting to do so
+ * causes it to mark the first LUN write-protected; even a reset won't
+ * change the setting.
+ */
+UNUSUAL_DEV(  0x13fe, 0x1a21, 0x0100, 0x0100,
+               "Unknown",
+               "Nu Drive",
+               US_SC_DEVICE, US_PR_DEVICE, NULL,
+               US_FL_NO_WP_DETECT ),
+
 /* Reported by Francesco Foresti <[EMAIL PROTECTED]> */
 UNUSUAL_DEV(  0x14cd, 0x6600, 0x0201, 0x0201,
                "Super Top",


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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