hello again this time (and last time :) problems with usb pendrive. it has write lock switch, that is autodetected in 2.4 kernel, resulting with message saying, that device is read-only. any futher writes to it are rejected without problem. but in 2.6 it is not detected, so kernel does not know that write is impossible, what leads to mesages as shown below:
Jun 23 00:39:03 darkstar SCSI error : <2 0 0 0> return code = 0x8000002 Jun 23 00:39:03 darkstar Current sdb: sense = 70 7 Jun 23 00:39:03 darkstar ASC=27 ASCQ= 0 Jun 23 00:39:03 darkstar Raw sense data:0x70 0x00 0x07 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x27 0x00 0x00 0x00 0x00 0x00 Jun 23 00:39:03 darkstar end_request: I/O error, dev sdb, sector 1872 Jun 23 00:39:03 darkstar Buffer I/O error on device sdb1, logical block 1840 Jun 23 00:39:03 darkstar lost page write due to I/O error on sdb1 Jun 23 00:39:27 darkstar SCSI error : <2 0 0 0> return code = 0x8000002 Jun 23 00:39:27 darkstar Current sdb: sense = 70 7 Jun 23 00:39:27 darkstar ASC=27 ASCQ= 0 Jun 23 00:39:27 darkstar Raw sense data:0x70 0x00 0x07 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x27 0x00 0x00 0x00 0x00 0x00 Jun 23 00:39:27 darkstar end_request: I/O error, dev sdb, sector 1872 Jun 23 00:39:27 darkstar Buffer I/O error on device sdb1, logical block 1840 to me, it should detect read-only switch and behave in sane way as 2.4 was. Albeiro ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel