On Thursday 08 January 2004 02:33 pm, Andrew Perrin wrote: > You can't mount the scsi generic (sg) device; you need to map the > associated disk. Assuming the LITE-ON device from your sg_scan is a scsi > removable (sr) device such as a CD-ROM, your SD reader should be sda. You > can check this with: > > fdisk /dev/sda > > to make sure you're right. If so, you can: > > mount -tvfat -oumask=0000 /dev/sda1 /mnt/sdcard > > Cheers, Thanks Andrew. I had forgotten scsi disk support, so the problem was I didn't have a /dev/sda.
Fixed now, thanks for the input. Steve > ap > > ---------------------------------------------------------------------- > Andrew J Perrin - http://www.unc.edu/~aperrin > Assistant Professor of Sociology, U of North Carolina, Chapel Hill > [EMAIL PROTECTED] * andrew_perrin (at) unc.edu > > On Thu, 8 Jan 2004, steve wrote: > > Hello, does anyone know what I might be missing with trying to get a > > valid device for an usb SD card reader? > > > > Thanks for any input, > > Steve > > > > sg_scan -i and sg_map show the following: > > bash-2.03# sg_scan -i > > /dev/sg0: scsi0 channel=0 id=0 lun=0 [em] type=5 > > LITE-ON LTR-48246S SS06 [wide=0 sync=0 cmdq=0 sftre=0 > > pq=0x0] /dev/sg1: scsi0 channel=0 id=1 lun=0 [em] type=5 > > CD-ROM Drive/F5A B1.4 [wide=0 sync=0 cmdq=0 sftre=0 > > pq=0x0] /dev/sg2: scsi1 channel=0 id=0 lun=0 [em] type=0 > > Generic USB SD Reader 2.00 [wide=0 sync=0 cmdq=0 sftre=0 > > pq=0x0] bash-2.03# sg_map > > /dev/sg0 /dev/scd0 > > /dev/sg1 /dev/scd1 > > /dev/sg2 > > > > sg2 is not mountable: > > bash-2.03# mount -t vfat /dev/sg2 /camera > > mount: /dev/sg2 is not a block device > > > > The cd is mountable under two devices: > > bash-2.03# mount -t iso9660 /dev/scd1 /cdrom > > mount: block device /dev/scd1 is write-protected, mounting read-only > > bash-2.03# mount -t iso9660 /dev/sr1 /cdrom > > mount: block device /dev/sr1 is write-protected, mounting read-only > > > > my kern.log > > Jan 7 01:03:37 debian kernel: host/uhci.c: USB UHCI at I/O 0xb800, IRQ 5 > > Jan 7 01:03:37 debian kernel: usb.c: new USB bus registered, assigned > > bus number 2 > > Jan 7 01:03:37 debian kernel: hub.c: USB hub found > > Jan 7 01:03:37 debian kernel: hub.c: 2 ports detected > > Jan 7 01:03:37 debian kernel: Initializing USB Mass Storage driver... > > Jan 7 01:03:37 debian kernel: usb.c: registered new driver usb-storage > > Jan 7 01:03:37 debian kernel: USB Mass Storage support registered. > > Jan 7 01:03:37 debian kernel: NET4: Linux TCP/IP 1.0 for NET4.0 > > > > Should be something like this: > > Initializing USB Mass Storage driver... > > usb.c: registered new driver usb-storage > > scsi1 : SCSI emulation for USB Mass Storage devices > > Vendor: CONCORD Model: DIGITAL CAMERA Rev: 1.00 > > Type: Direct-Access ANSI SCSI revision: 02 > > Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0 > > SCSI device sda: 246016 512-byte hdwr sectors (126 MB) > > sda: Write Protect is off > > sda: sda1 > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]