On Monday 29 January 2007 18:21, Alan Stern wrote:
> 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
Well, it didn't apply (I suppose my 2.6.18 sources are too old by now), but 
I've inserted it manually (replacing your first patch of unusual_devs.h).

> 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.
Exactly. :-(  ``mount -t vfat /dev/sda1 /mnt/stick'' succeeds without 
comments, and so does copying a small (<1KB) file, but when I then 
unmount /mnt/stick, I get the following in /var/log/messages:
Jan 29 19:32:44 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 29 19:32:44 quanxi kernel: sda: Current: sense key=0x7
Jan 29 19:32:44 quanxi kernel:     ASC=0x27 ASCQ=0x0
Jan 29 19:32:44 quanxi kernel: end_request: I/O error, dev sda, sector 81
Jan 29 19:32:44 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 29 19:32:44 quanxi kernel: sda: Current: sense key=0x7
Jan 29 19:32:44 quanxi kernel:     ASC=0x27 ASCQ=0x0
Jan 29 19:32:44 quanxi kernel: end_request: I/O error, dev sda, sector 36
Jan 29 19:32:44 quanxi kernel: printk: 1 messages suppressed.
Jan 29 19:32:44 quanxi kernel: lost page write due to I/O error on sda1
Jan 29 19:32:44 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 29 19:32:44 quanxi kernel: sda: Current: sense key=0x7
Jan 29 19:32:44 quanxi kernel:     ASC=0x27 ASCQ=0x0
Jan 29 19:32:44 quanxi kernel: end_request: I/O error, dev sda, sector 42
Jan 29 19:32:44 quanxi kernel: lost page write due to I/O error on sda1
Jan 29 19:32:44 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 29 19:32:44 quanxi kernel: sda: Current: sense key=0x7
Jan 29 19:32:44 quanxi kernel:     ASC=0x27 ASCQ=0x0
Jan 29 19:32:44 quanxi kernel: end_request: I/O error, dev sda, sector 48
Jan 29 19:32:44 quanxi kernel: lost page write due to I/O error on sda1

After mounting again, the stick has no trace of the "copied" file...

        Bye
                Vasek

-------------------------------------------------------------------------
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