Re: [SLUG] usb devices

From: Eben King (eben1@tampabay.rr.com)
Date: Sun Aug 21 2005 - 14:48:23 EDT


On Sun, 21 Aug 2005, michael hast wrote:

> I recently aquired a digital camera and usb flash card reader from a
> relative who no longer used them. The camera takes pics, I can review
> them in the camera, and the flash card plugs right into the reader.

No USB connection on the camera?

> When I do a "sbin/fdisk/ -l" it shows me the two hard drives and the
> partitions therin.

Same here. I have to tell fdisk to look at the card:

[eben@pc eben]$ /sbin/fdisk -l /dev/sda

Disk /dev/sda: 4 heads, 32 sectors, 978 cylinders
Units = cylinders of 128 * 512 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 978 62591+ 6 FAT16

> Attached devices:
> Host: scsi 1 Channel: 00 Id: Lun: 00
> Vendor: Model: USB Card Reader Rev: 3.00
> Type: Direct-Access ANSI SCSI revision: 02
>
> ...etc with "Lun: 01" and "Lun: 02"
>
> It's a three-slot reader, does each Lun represent one of the slots?

Yes. If the card isn't in the first slot (whichever one that is), you won't
be able to access it unless you enable "multi LUN support" in the kernel
(which apparently you have).

> I really don't know which direction to go at this point. I haven't come
> up with much on Googling.

If you have cdrecord, try

[eben@pc eben]$ cdrecord -scanbus
...
scsibus0:
...
        0,4,0 4) 'Seagate ' 'STT20000N ' '6A51' Removable Tape
(tape drive, SCSI)
...
scsibus1:
        1,0,0 100) 'Generic ' 'STORAGE DEVICE ' '0125' Removable Disk
(CF card, USB)
...
scsibus2:
        2,0,0 200) '_NEC ' 'DVD_RW ND-2510A ' '2.17' Removable CD-ROM
({DVD±,CD-}{R,RW} drive, IDE through IDE-SCSI emulation)

I don't know how to translate what cdrecord returns into something useful,
but at least it'll confirm that the device is visible.

> I went in to "/proc/bus/usb" to take a look at what it saw there, and
> came up with three folders: "001", "002", "003", and a blank document
> "devices". Under the three folders, I found what looks like other blank
> documents.

You can cat them, but I couldn't parse what was in mine.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
LEO:  Now is not a good time to photocopy your butt and staple
it to your boss' face, oh no.  Eat a bucket of tuna-flavored pudding
and wash it down with a gallon of strawberry Quik.  -- Weird Al

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:24:14 EDT