[ale] Q: how to mount CF card in SanDisk USB reader

Mazukna, Thomas Thomas.Mazukna at delta.com
Tue Apr 29 14:40:53 EDT 2003


the answer is scsi emulation.
my sandisk show up as this in fstab:

/dev/sdd1       /storage/flash  auto    user,uid=1000,gid=1000,defaults 0       2

look into kernel.log/mesages for sdX ....
I also have usb zip disk attached and 4 real scsi devices ....

kern.log.0:Apr 16 21:03:32 mordor kernel: SCSI device sdd: 251905 512-byte hdwr sectors (129 MB)
kern.log.0:Apr 16 21:03:32 mordor kernel: sdd: Write Protect is off
kern.log.0:Apr 16 21:03:32 mordor kernel:  sdd:<7>usb-storage: queuecommand() called
kern.log.0:Apr 16 21:03:32 mordor kernel:  sdd1
kern.log.0:Apr 22 19:49:55 mordor kernel: Attached scsi removable disk sdd at scsi3, channel 0, id 0, lun 0
kern.log.0:Apr 22 19:49:55 mordor kernel: sdd : READ CAPACITY failed.
kern.log.0:Apr 22 19:49:55 mordor kernel: sdd : status = 1, message = 00, host = 0, driver = 08 
kern.log.0:Apr 22 19:49:55 mordor kernel: sdd : block size assumed to be 512 bytes, disk size 1GB.  
kern.log.0:Apr 22 19:49:55 mordor kernel:  sdd: I/O error: dev 08:30, sector 0
kern.log.0:Apr 22 20:35:45 mordor kernel: Attached scsi removable disk sdd at scsi3, channel 0, id 0, lun 0
kern.log.0:Apr 22 20:35:45 mordor kernel: sdd : READ CAPACITY failed.
kern.log.0:Apr 22 20:35:45 mordor kernel: sdd : status = 1, message = 00, host = 0, driver = 08 
kern.log.0:Apr 22 20:35:45 mordor kernel: sdd : block size assumed to be 512 bytes, disk size 1GB.  
kern.log.0:Apr 22 20:35:45 mordor kernel:  sdd: I/O error: dev 08:30, sector 0
kern.log.0:Apr 22 21:50:58 mordor kernel: Attached scsi removable disk sdd at scsi3, channel 0, id 0, lun 0
kern.log.0:Apr 22 21:50:58 mordor kernel: sdd : READ CAPACITY failed.
kern.log.0:Apr 22 21:50:58 mordor kernel: sdd : status = 1, message = 00, host = 0, driver = 08 
kern.log.0:Apr 22 21:50:58 mordor kernel: sdd : block size assumed to be 512 bytes, disk size 1GB.  
kern.log.0:Apr 22 21:50:58 mordor kernel:  sdd: I/O error: dev 08:30, sector 0


-----Original Message-----
From: John Mills [mailto:johnmills at speakeasy.net]
To: ale at ale.org
Sent: Tuesday, April 29, 2003 2:31 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Q: how to mount CF card in SanDisk USB reader


ALErs -

This is probably in ALE archives, but the search engine seems to be having 
indigestion. So far, this monkey at a typewriter has failed to produce any 
poetry, literature, or (in this case) photographs. I'm going in circles on 
this.

I have a generic RH-7.3 box with 2 USB ports. A SanDisk CF reader is 
plugged into one. A formatted, partly filled CF from my camera is plugged 
into the reader. I am trying to mount the CF and find its contents, but 
don't succeed.

If I do:
 # mount -t usbdevfs usbdevfs /proc/bus/usb

Then I see in /proc/bus/usb/devices:
 T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
 B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
 D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=0000 ProdID=0000 Rev= 0.00
 S:  Product=USB UHCI Root Hub
 S:  SerialNumber=e400
 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
 E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
 T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
 D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
 P:  Vendor=0781 ProdID=0005 Rev= 0.05
 S:  Manufacturer=SanDisk
 S:  Product=USB CFII
 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
 I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=ff Driver=(none)
 E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=5ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

This appears to say the usb controller and reader were found, but whatever 
was in the reader (my CF card) was undefined.

I can't find any mount point corresponding to 'usbdevfs' in that command.

I see in /etc/mtab:
 usbdevfs /proc/bus/usb usbdevfs rw 0 0

Just for grins, I also did:
 # /sbin/modprobe usb-storage

and that module shows up with 'lsmod'.

I created a mount-point (/mnt/usb), but was not able to use it and see any 
of the card's contents.

How should I mount the card so as to find its contents, and what would be
a good equivalent line in /etc/fstab?

TIA.
 - John Mills
   john.m.mills at alum.mit.edu

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list