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
apt-get install sg3-utils and then use:
sg_scan -i // to see scsi type devices
sg_map // to see device associations
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
Alternatively, make an /etc/fstab entry:
/dev/sdc1 /home/kevin/mnt/usbdevice vfat noauto,user 0 0
Diagnose by checking:
/var/log/messages
/var/log/syslog
/proc/bus/usb // shows what's been seen
/proc/scsi/scsi // to see what scsi devices are there
Notes: Like any other hard drive, you can use other commands
on your mounted USB storage device:
fdisk /dev/sdc1 // play with partitions
mkfs -t vfat /dev/sdc1 // format the partition(s) in FAT
mkfs -t ext3 /dev/sdc1 // format in Linux ext3 but not a good
// idea for digital camera disks
--
Kevin Coyner
mailto: kevin@rustybear.com
GnuPG key: 1024D/8CE11941
Attachment:
pgp7uQQf19Cvy.pgp
Description: PGP signature