On Monday 29 January 2007 23:05, Alan Stern wrote:
> Here's a completely different patch.  You shouldn't need the previous one
OK, I've reverted to standard unusual_devs.h, but I still have the patched 
scsiglue.c - is that OK?

> along with this.  This one is completely experimental and unlikely ever to
> be accepted into the standard kernel, but it might get your device to
Whatever works...

> work.  The patch causes the SCSI core to send an INQUIRY command to each
> LUN before registering any of them, which is more or less what Windows
> does.  (You might have to apply the patch by hand, like the other one, but
> it shouldn't be too bad.)
Actually it did apply OK (with some warnings about mismatched line numbers), 
and it does make some difference, but not quite the desirable 
one... /var/log/messages on stick insertion:Jan 30 18:12:28 quanxi kernel: 
usb 1-1: new high speed USB device using ehci_hcd and address 2
Jan 30 18:12:28 quanxi kernel: usb 1-1: Product: Nu Drive
Jan 30 18:12:28 quanxi kernel: usb 1-1: Manufacturer:
Jan 30 18:12:28 quanxi kernel: usb 1-1: SerialNumber: 075A141402A5
Jan 30 18:12:28 quanxi kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 30 18:12:28 quanxi kernel: scsi0 : SCSI emulation for USB Mass Storage 
devices
Jan 30 18:12:33 quanxi kernel:   Vendor:           Model: Nu Drive          
Rev: PMAP
Jan 30 18:12:33 quanxi kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 00
Jan 30 18:12:33 quanxi kernel:   Vendor:           Model: Nu Drive          
Rev: PMAP
Jan 30 18:12:33 quanxi kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 00
Jan 30 18:12:34 quanxi kernel: SCSI device sda: 2048 512-byte hdwr sectors (1 
MB)
Jan 30 18:12:34 quanxi kernel: sda: Write Protect is off
Jan 30 18:12:34 quanxi kernel: SCSI device sda: 2048 512-byte hdwr sectors (1 
MB)
Jan 30 18:12:34 quanxi kernel: sda: Write Protect is off
Jan 30 18:12:34 quanxi kernel:  sda:<7>usb-storage: queuecommand called
Jan 30 18:12:34 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 30 18:12:34 quanxi kernel: sda: Current: sense key=0x3
Jan 30 18:12:34 quanxi kernel:     ASC=0x11 ASCQ=0x0
Jan 30 18:12:34 quanxi kernel: end_request: I/O error, dev sda, sector 0
Jan 30 18:12:34 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 30 18:12:34 quanxi kernel: sda: Current: sense key=0x3
Jan 30 18:12:34 quanxi kernel:     ASC=0x11 ASCQ=0x0
Jan 30 18:12:34 quanxi kernel: end_request: I/O error, dev sda, sector 0
Jan 30 18:12:34 quanxi kernel: sd 0:0:0:0: SCSI error: return code = 
0x08000002
Jan 30 18:12:34 quanxi kernel: sda: Current: sense key=0x3
Jan 30 18:12:34 quanxi kernel:     ASC=0x11 ASCQ=0x0
Jan 30 18:12:34 quanxi kernel: end_request: I/O error, dev sda, sector 0
Jan 30 18:12:34 quanxi kernel:  unable to read partition table
Jan 30 18:12:34 quanxi kernel: sd 0:0:0:0: Attached scsi removable disk sda
Jan 30 18:12:34 quanxi kernel: SCSI device sdb: 983040 512-byte hdwr sectors 
(503 MB)
Jan 30 18:12:34 quanxi kernel: sdb: Write Protect is on
Jan 30 18:12:34 quanxi kernel: SCSI device sdb: 983040 512-byte hdwr sectors 
(503 MB)
Jan 30 18:12:34 quanxi kernel: sdb: Write Protect is on
Jan 30 18:12:34 quanxi kernel:  sdb:<7>usb-storage: queuecommand called
Jan 30 18:12:34 quanxi kernel:  sdb1
Jan 30 18:12:34 quanxi kernel: sd 0:0:0:1: Attached scsi removable disk sdb

I notice that write protect on sda is off, but I can't mount sda1:
# mount -t vfat /dev/sda1 /mnt/stick
mount: special device /dev/sda1 does not exist

sdb1 can be mounted, read-only. Do you want the usbmon log?

        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