[ This message is fairly long -- I've added in as much info as I can
  in the hopes that someone will be able to help ]

I have a Sandisk ImageMate SDDR09 SmartMedia reader (badged as a Dane-Elec).
However, I can't seem to mount anything from it. When I first plug the device
in, I get the following in /var/log/messages:

        Dec  5 01:00:06 leto kernel: hub.c: USB new device connect on bus1/2, assigned 
device number 5
        Dec  5 01:00:06 leto kernel: Manufacturer: SCM Microsystems Inc.
        Dec  5 01:00:06 leto kernel: Product: eUSB SmartMedia Adapter
        Dec  5 01:00:06 leto /sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug 
HOSTNAME=leto.astradyne.corp DEVICE=/proc/bus/usb/001/005 INTERFACE=255/1/1 ACTION=add 
DEBUG=kernel MACHTYPE=i386-redhat-linux-gnu OLDPWD=/ DEVFS=/proc/bus/usb TYPE=0/0/0 
SHLVL=1 SHELL=/bin/bash HOSTTYPE=i386 OSTYPE=linux-gnu HOME=/ TERM=dumb 
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=4e6/3/208 _=/usr/bin/env)
        Dec  5 01:00:06 leto /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
        Dec  5 01:00:06 leto /etc/hotplug/usb.agent: Modprobe and setup usb-storage 
for USB product 4e6/3/208

And this in the kernel ring buffer:

        leto:~# dmesg
        hub.c: port 2 connection change
        hub.c: port 2, portstatus 101, change 1, 12 Mb/s
        hub.c: port 2, portstatus 103, change 0, 12 Mb/s
        hub.c: USB new device connect on bus1/2, assigned device number 5
        usb.c: kmalloc IF c4bbd360, numif 1
        usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
        usb.c: USB device number 5 default language ID 0x409
        Manufacturer: SCM Microsystems Inc.
        Product: eUSB SmartMedia Adapter
        usb-storage: act_altsettting is 0
        usb-storage: id_index calculated to be: 11
        usb-storage: Array length appears to be: 81
        usb-storage: Vendor: Sandisk
        usb-storage: Product: ImageMate SDDR09
        usb-storage: USB Mass Storage device detected
        usb-storage: Endpoints: In: 0xc4aa4134 Out: 0xc4aa4120 Int: 0xc4aa4148 (Period 
32)
        usb-storage: Result from usb_set_configuration is 0
        usb-storage: Found existing GUID 04e600030000000000000000
        WARNING: USB Mass Storage data integrity not assured
        USB Mass Storage device found at 5
        usb.c: usb-storage driver claimed interface c4bbd360
        usb.c: kusbd: /sbin/hotplug add 5

However, when I try and mount it, I get:

        leto:~# mount -t vfat /dev/sdb1 /mnt/sd
        mount: block device /dev/sdb1 is write-protected, mounting read-only
        mount: /dev/sdb1 is not a valid block device

It obviously *is* a valid block device:

        leto:~# ls -l /dev/sdb1
        brw-------    1 tet      root       8,  17 Aug 30  2001 /dev/sdb1
        leto:~# cat /proc/devices 
        [...]
        Block devices:
          2 fd
          3 ide0
          8 sd
          9 md
         22 ide1
         65 sd
         66 sd

Furthermore, I can mount my floppy drive as an sd device using ide-scsi.
The device itself is also definitely recognised. See, for example:

        leto:~# cat /proc/scsi/usb-storage-0/1 
           Host scsi1: usb-storage
                   Vendor: SCM Microsystems Inc.
                  Product: eUSB SmartMedia Adapter
        Serial Number: None
                 Protocol: Transparent SCSI
                Transport: EUSB/SDDR09
                         GUID: 04e600030000000000000000
                 Attached: Yes

and:

        leto:~# cdrecord -scanbus
        Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J�rg Schilling
        Linux sg driver version: 3.1.22
        Using libscg version 'schily-0.5'
        scsibus0:
                        0,0,0     0) 'MITBISHI' 'LS-120 COSM   05' '0512' Removable 
Disk
                        0,1,0     1) 'SAMSUNG ' 'CD-ROM SC-140F  ' 'FB07' Removable 
CD-ROM
                        0,2,0     2) *
                        0,3,0     3) *
                        0,4,0     4) *
                        0,5,0     5) *
                        0,6,0     6) *
                        0,7,0     7) *
        scsibus1:
                        1,0,0   100) 'Sandisk' 'ImageMate SDDR09' '0208' Removable Disk
                        1,1,0   101) *
                        1,2,0   102) *
                        1,3,0   103) *
                        1,4,0   104) *
                        1,5,0   105) 'EPSON   ' 'SCANNER GT-7000 ' '1.14' Processor
                        1,6,0   106) 'YAMAHA  ' 'CRW8824S        ' '1.00' Removable 
CD-ROM
                        1,7,0   107) *

This last entry makes me suspicious, though. The scanner and CD Writer
are genuine SCSI devices attached to a Tekram controller. Yet the USB
mass storage device is also attaching itself to controller 1. Surely
it should either be creating a third controller, or attaching itself
to the other virtual controller (used for ide-scsi)?

BTW, I've also tried ejecting the device first, as suggested by Mark
Rubin in a thread on this list a few months ago:

        http://sourceforge.net/mailarchive/forum.php?thread_id=918139&forum_id=5395

Anyway, after try to mount the card, there's copious output shown by dmesg.
I've attched this below in the hopes that someone can make sense of what's
happening.

        leto:~# dmesg
        usb-storage: queuecommand() called
        usb-storage: *** thread awakened.
        usb-storage: Skipping START_STOP command
        usb-storage: *** thread sleeping.
        VFS: Disk change detected on device sd(8,17)
        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 82 c1
        usb-storage: SDDR09: Send control for command 00 20 00 00 00 00 00 00 00 00 00 
00 
        usb-uhci.c: interrupt, status 3, frame# 1000
        usb-storage: -- Stall on control pipe. Clearing
        usb-storage: -- usb_clear_halt() returns 0
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 45 DD 00 00 6B 42 11 C0 45 DD 00 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 CC E2 00 00 6B 42 11 C0 CC E2 00 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 53 E8 00 00 6B 42 11 C0 53 E8 00 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        usb-storage: *** thread sleeping.
        sdb : READ CAPACITY failed.
        sdb : status = 1, message = 00, host = 0, driver = 08 
        Current sd00:00: sense key Not Ready
        Additional sense indicates Medium not present
        sdb : block size assumed to be 512 bytes, disk size 1GB.  
        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 82 c1
        usb-storage: SDDR09: Dummy up request for all mode pages
        usb-storage: scsi cmd done, result=0x0
        usb-storage: *** thread sleeping.
        sdb: Write Protect is on
         sdb: I/O error: dev 08:10, sector 0
         I/O error: dev 08:10, sector 0
         unable to read partition table
        usb-storage: queuecommand() called
        usb-storage: *** thread awakened.
        usb-storage: Skipping START_STOP command
        usb-storage: *** thread sleeping.
        VFS: Disk change detected on device sd(8,17)
        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 82 c1
        usb-storage: SDDR09: Send control for command 00 20 00 00 00 00 00 00 00 00 00 
00 
        usb-storage: -- Stall on control pipe. Clearing
        usb-storage: -- usb_clear_halt() returns 0
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 7B F5 00 00 6B 42 11 C0 7B F5 00 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 02 FB 00 00 6B 42 11 C0 02 FB 00 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        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 82 c1
        usb-storage: Reading capacity...
        usb-storage: Result of send_control for device ID is 0
        usb-storage: SCM data in transfer 64 sg buffers 0
        usb-storage: EPIPE: clearing endpoint halt for pipe 0xc0010580, stalled at 0 
bytes
        usb-storage: usbat_raw_bulk(): output pipe stalled
        usb-storage: rd: 43 44 45 46 00 00 00 00 0C 00 00 00 68 DE 00 DA 
        usb-storage: rd: 53 54 00 30 00 00 00 00 00 00 00 00 30 31 32 33 
        usb-storage: rd: 34 35 36 37 89 00 01 00 6B 42 11 C0 89 00 01 00 
        usb-storage: Result of read_deviceID is 1
        usb-storage: -- transport indicates command failure
        usb-storage: Issuing auto-REQUEST_SENSE
        usb-storage: SDDR09: Send control for command 03 20 00 00 12 00 00 00 00 00 00 
00 
        usb-storage: SDDR09: Control for command OK
        usb-storage: SDDR09: receiving 18 bytes
        usb-storage: SCM data in transfer 18 sg buffers 0
        usb-storage: Transferred 18 of 18 bytes
        usb-storage: rd: 70 00 02 00 00 00 00 0B 00 00 00 00 3A 00 00 00 
        usb-storage: rd: 00 00 
        usb-storage: -- Result from auto-sense is 0
        usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
        usb-storage: Not Ready: (unknown ASC/ASCQ)
        usb-storage: scsi cmd done, result=0x2
        usb-storage: *** thread sleeping.
        sdb : READ CAPACITY failed.
        sdb : status = 1, message = 00, host = 0, driver = 08 
        Current sd00:00: sense key Not Ready
        Additional sense indicates Medium not present
        sdb : block size assumed to be 512 bytes, disk size 1GB.  
        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 82 c1
        usb-storage: SDDR09: Dummy up request for all mode pages
        usb-storage: scsi cmd done, result=0x0
        usb-storage: *** thread sleeping.
        sdb: Write Protect is on
         sdb: I/O error: dev 08:10, sector 0
         I/O error: dev 08:10, sector 0
         unable to read partition table

Any ideas?

Thanks,

Tet


-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to