Matthew Dharm wrote: > Try recompiling _without_ the unusual_devs.h entry and with USB Mass > Storage Verbose Debugging turned on. Then we can see the debug log.
dmesg' when device was connected at boot time: hub.c: USB new device connect on bus1/2, assigned device number 2 usb-storage: act_altsettting is 0 usb-storage: id_index calculated to be: 52 usb-storage: Array length appears to be: 54 usb-storage: USB Mass Storage device detected usb-storage: Endpoints: In: 0xc186c9e0 Out: 0xc186c9f4 Int: 0xc186ca08 (Period 255) usb-storage: New GUID 0c7600030000000000000000 usb-storage: GetMaxLUN command result is 1, data is 0 usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: *** thread sleeping. scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 ff 00 00 00 20 d3 98 c1 usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 255 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 41/255 usb-storage: Bulk data transfer result 0x1 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x1 R 214 Stat 0x0 usb-storage: Fixing INQUIRY data to show SCSI rev 2 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 02 usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad LUN (0/1) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (1/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (2/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (3/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (4/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (5/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (6/0) usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Bad target number (7/0) usb-storage: *** thread sleeping. Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 00 00 00 00 12 c0 usb-storage: Bulk command S 0x43425355 T 0xa Trg 0 LUN 0 L 0 F 0 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xa R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk command S 0x43425355 T 0xa Trg 0 LUN 0 L 18 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 18 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18 usb-storage: usb_stor_transfer_partial(): transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xa R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0xf0, key: 0x6, ASC: 0x28, ASCQ:usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xb R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command READ_CAPACITY (10 bytes) usb-storage: 25 00 00 00 00 00 00 00 00 00 12 c0 usb-storage: Bulk command S 0x43425355 T 0xc Trg 0 LUN 0 L 8 F 128 CL 10 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 8 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 8/8 usb-storage: usb_stor_transfer_partial(): transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xc R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. SCSI device sda: 63680 512-byte hdwr sectors (33 MB) usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command MODE_SENSE (6 bytes) usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 12 c0 usb-storage: Bulk command S 0x43425355 T 0xd Trg 0 LUN 0 L 255 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 255 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 12/255 usb-storage: Bulk data transfer result 0x1 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xd R 243 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. sda: Write Protect is off sda:<7>usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command READ_10 (10 bytes) usb-storage: 28 00 00 00 00 00 00 00 08 00 12 c0 usb-storage: Bulk command S 0x43425355 T 0xe Trg 0 LUN 0 L 4096 F 128 CL 10 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 4096/4096 usb-storage: usb_stor_transfer_partial(): transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0xe R 0 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. sda1 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 2 Adding Swap: 524624k swap-space (priority -1) eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1. 0x0 usb-storage: Unit Attention: not ready to ready transition usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 00 00 00 00 12 c0 usb-storage: Bulk command S 0x43425355 T 0xb Trg 0 LUN 0 L 0 F 0 CL 6 dmesg' output when trying a "mount /dev/sda /mnt/usb" usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command MODE_SENSE (6 bytes) usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 86 c1 usb-storage: Bulk command S 0x43425355 T 0x17 Trg 0 LUN 0 L 255 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 255 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 12/255 usb-storage: Bulk data transfer result 0x1 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x17 R 243 Stat 0x0 usb-storage: scsi cmd done, result=0x0 usb-storage: *** thread sleeping. sda: Write Protect is off sda: I/O error: dev 08:00, sector 0 I/O error: dev 08:00, sector 0 unable to read partition table usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command START_STOP (6 bytes) usb-storage: 1b 00 00 00 01 00 00 00 00 00 00 00 usb-storage: Bulk command S 0x43425355 T 0x18 Trg 0 LUN 0 L 0 F 0 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x18 R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk command S 0x43425355 T 0x18 Trg 0 LUN 0 L 18 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 18 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18 usb-storage: usb_stor_transfer_partial(): transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x18 R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0xf0, key: 0x5, ASC: 0x24, ASCQ: 0x0 usb-storage: Illegal Request: invalid field in CDB usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. SCSI device (ioctl) reports ILLEGAL REQUEST. VFS: Disk change detected on device sd(8,0) Device busy for revalidation (usage=1) I/O error: dev 08:00, sector 0 FAT: unable to read boot sector usb-storage: queuecommand() called usb-storage: *** thread awakened. usb-storage: Command START_STOP (6 bytes) usb-storage: 1b 00 00 00 01 00 1b c0 46 02 00 00 usb-storage: Bulk command S 0x43425355 T 0x19 Trg 0 LUN 0 L 0 F 0 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x19 R 0 Stat 0x1 usb-storage: -- transport indicates command failure usb-storage: Issuing auto-REQUEST_SENSE usb-storage: Bulk command S 0x43425355 T 0x19 Trg 0 LUN 0 L 18 F 128 CL 6 usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_transfer_partial(): xfer 18 bytes usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18 usb-storage: usb_stor_transfer_partial(): transfer complete usb-storage: Bulk data transfer result 0x0 usb-storage: Attempting to get CSW... usb-storage: Bulk status result = 0 usb-storage: Bulk status Sig 0x53425355 T 0x19 R 0 Stat 0x0 usb-storage: -- Result from auto-sense is 0 usb-storage: -- code: 0xf0, key: 0x5, ASC: 0x24, ASCQ: 0x0 usb-storage: Illegal Request: invalid field in CDB usb-storage: scsi cmd done, result=0x2 usb-storage: *** thread sleeping. output from messages when trying to mount: Dec 30 15:53:25 magrathea -- root[835]: ROOT LOGIN ON tty1 Dec 30 15:53:50 magrathea kernel: SCSI device (ioctl) reports ILLEGAL REQUEST. Dec 30 15:53:50 magrathea kernel: SCSI device sda: 63680 512-byte hdwr sectors (33 MB) Dec 30 15:53:50 magrathea kernel: sda: Write Protect is off Dec 30 15:53:50 magrathea kernel: sda: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: unable to read partition table Dec 30 15:53:50 magrathea kernel: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: SCSI device (ioctl) reports ILLEGAL REQUEST. Dec 30 15:53:50 magrathea kernel: SCSI device sda: 63680 512-byte hdwr sectors (33 MB) Dec 30 15:53:50 magrathea kernel: sda: Write Protect is off Dec 30 15:53:50 magrathea kernel: sda: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: unable to read partition table Dec 30 15:53:50 magrathea kernel: SCSI device (ioctl) reports ILLEGAL REQUEST. Dec 30 15:53:50 magrathea kernel: Device busy for revalidation (usage=1) Dec 30 15:53:50 magrathea kernel: I/O error: dev 08:00, sector 0 Dec 30 15:53:50 magrathea kernel: FAT: unable to read boot sector The syslog reports correctly if the write protection is on or off. The device works fine with Wondoze. And the Box of the device is labeled "Works on Linux - no additional drivers required". -fl _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
