[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Belkin CompactFlash reader problems



On Mon, May 26, 2003 at 10:53:20AM -0400, Kevin Coyner wrote:
> 
> 
> On Mon, May 26, 2003 at 11:52:02PM +1000, Chris Kenrick wrote......
> 
> > Hi all,
> > 
> > I've got a Belkin compact flash card reader connected to my USB port.
> > Works fine under Win2K even with plug and play, so the hardware is OK.
> > 
> > I think I've got all the right modules loaded.  The reader seems to be
> > picked up
> > 
> > chrisk@gandalf:~$ cat /proc/scsi/scsi 
> > Attached devices: 
> > Host: scsi0 Channel: 00 Id: 00 Lun: 00
> >   Vendor: OEI-USB  Model: CompactFlash     Rev: 5.01
> >     Type:   Direct-Access                    ANSI SCSI revision: 02
> > 
> > 
> > But, /var/log/messages reports errors...
> > 
> > May 25 23:29:29 gandalf kernel: SCSI device sda: 31488 512-byte hdwr
> > sectors (16 MB)
> > May 25 23:29:29 gandalf kernel: sda: Write Protect is off
> > May 25 23:29:29 gandalf kernel:  sda: sda1
> > May 25 23:29:29 gandalf kernel: SCSI error: host 0 id 0 lun 0 return
> > code = 8000002
> > 
> > I'm guessing that the reader doesn't work with Linux (says it is mass
> > storage compliant, though).  Anyone have any bright ideas?
> 
> lsmod to see what is loaded.  You potentially need:
>     usb-storage
>     usbcore
>     scsi_mod
>     sd_mod
>     usb-uhci
>     input
>     sr_mod

Yep, got all those (now).
> 
> apt-get install sg3-utils and then use:
> 
>     sg_scan -i      // to see scsi type devices
>     sg_map          // to see device associations
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em]  type=0
    OEI-USB   CompactFlash      5.01 [wide=0 sync=0 cmdq=0 sftre=0
	pq=0x0]

...and...

/dev/sg1  /dev/sda

> 
> Mount the drive found (should be a SCSI drive):
> 
>     mount -t vfat   /dev/sdc1   /home/kevin/mnt/usbdevice
>     // i have 2 scsi HD's, hence my reader is /dev/sdc1
> 

Gives:
mount: /dev/sda1 is not a valid block device

> Diagnose by checking:
> 
>     /var/log/messages
Jun  1 00:14:11 gandalf kernel: ^ISense class 7, sense error 0, extended
sense 0Jun  1 00:14:11 gandalf kernel: SCSI device sda: 31488 512-byte
hdwr sectors (16 MB)
Jun  1 00:14:11 gandalf kernel: usb-uhci.c: interrupt, status 3, frame#
1878
Jun  1 00:14:11 gandalf kernel: sda: Write Protect is off
Jun  1 00:14:11 gandalf kernel:  sda: I/O error: dev 08:00, sector 0
Jun  1 00:14:11 gandalf kernel:  I/O error: dev 08:00, sector 0
Jun  1 00:14:11 gandalf kernel:  unable to read partition table

Doesn't look to be picking up the partition table

>     /var/log/syslog

Whole bunch of messages like these:

Jun  1 00:14:11 gandalf kernel: usb-storage: queuecommand() called
Jun  1 00:14:11 gandalf kernel: usb-storage: *** thread awakened.
Jun  1 00:14:11 gandalf kernel: usb-storage: Command MODE_SENSE (6
bytes)
Jun  1 00:14:11 gandalf kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00
00 61 ccJun  1 00:14:11 gandalf kernel: usb-storage: Bulk command S
0x43425355 T 0x7d Trg 0 LUN 0 L 255 F 128 CL 6
Jun  1 00:14:11 gandalf kernel: usb-storage: Bulk command transfer
result=0
Jun  1 00:14:11 gandalf kernel: usb-storage:
usb_stor_transfer_partial(): xfer 255 bytes
Jun  1 00:14:11 gandalf kernel: usb-storage: usb_stor_bulk_msg()
returned 0 xferred 12/255
Jun  1 00:14:11 gandalf kernel: usb-storage: Bulk data transfer result
0x1
Jun  1 00:14:11 gandalf kernel: usb-storage: Attempting to get CSW...
Jun  1 00:14:11 gandalf kernel: usb-uhci.c: interrupt, status 3, frame#
1878
Jun  1 00:14:11 gandalf kernel: usb-storage: clearing endpoint halt for
pipe 0xc0010280
Jun  1 00:14:11 gandalf kernel: usb-storage: usb_stor_clear_halt:
result=0
Jun  1 00:14:11 gandalf kernel: usb-storage: Attempting to get CSW (2nd
try)...
Jun  1 00:14:11 gandalf kernel: usb-storage: Bulk status result = 0
Jun  1 00:14:11 gandalf kernel: usb-storage: Bulk status Sig 0x53425355
T 0x7d R 243 Stat 0x0
Jun  1 00:14:11 gandalf kernel: usb-storage: scsi cmd done, result=0x0
Jun  1 00:14:11 gandalf kernel: usb-storage: *** thread sleeping.


>     /proc/bus/usb       // shows what's been seen
Checked, it's there.  Didn't include the output for brevity's sake

>     /proc/scsi/scsi     // to see what scsi devices are there
Same output as the sg_scan -i above

> 
> Notes:  Like any other hard drive, you can use other commands
> on your mounted USB storage device:
> 
> fdisk /dev/sdc1          // play with partitions

If I try this with "-l" to list the partitions, there is no output and
the log file records an error message.

Not looking promising.  Any further ideas, anyone?

- Chris



Reply to: