|
Home > Archive > Red Hat Topics > February 2005 > usb card reader
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Ronald J Marchand 2005-02-04, 7:45 am |
| I have a Sandisk card reader (USB) that has 4 slots in it. Can't quite
figure out how to get RH9 to view the contents of a CF type card.
Can someone give me pointers on mounting a usb file system?
Thanks
Ron
| |
| Rincewind 2005-02-04, 7:45 am |
| On Fri, 04 Feb 2005 04:24:38 -0600, Ronald J Marchand mumbled something
like this:
> I have a Sandisk card reader (USB) that has 4 slots in it. Can't quite
> figure out how to get RH9 to view the contents of a CF type card.
>
> Can someone give me pointers on mounting a usb file system?
>
> Thanks
> Ron
This is how I do it with my ByteStor 8 in 1 reader:
$ /sbin/modprobe usb-storage
$ mount -t vfat /dev/sdax /mnt
You will find that different slots on the reader map to different scsi
drives, so you will need to try replacing /dev/sdax with /dev/sda1,
/dev/sda2, etc until:
$ ls /mnt
shows you the contents of the card.
Rinso
--
/\
/ \
/wizz\
~~~~~~~~~~~~
| |
| Ronald J Marchand 2005-02-04, 7:45 am |
| "Rincewind" <rinso@unseen.edu> wrote in message
news:pan.2005.02.04.11.47.14.636579@unseen.edu...
> On Fri, 04 Feb 2005 04:24:38 -0600, Ronald J Marchand mumbled something
> like this:
>
>
> This is how I do it with my ByteStor 8 in 1 reader:
>
> $ /sbin/modprobe usb-storage
> $ mount -t vfat /dev/sdax /mnt
>
> You will find that different slots on the reader map to different scsi
> drives, so you will need to try replacing /dev/sdax with /dev/sda1,
> /dev/sda2, etc until:
>
> $ ls /mnt
>
> shows you the contents of the card.
>
Thanks for the info. I will try it. I was expecting it to be a little more
automated.
Ron
| |
| Rincewind 2005-02-04, 5:45 pm |
| On Fri, 04 Feb 2005 07:34:13 -0600, Ronald J Marchand mumbled something
like this:
> "Rincewind" <rinso@unseen.edu> wrote in message
> news:pan.2005.02.04.11.47.14.636579@unseen.edu...
> Thanks for the info. I will try it. I was expecting it to be a little
> more automated.
>
> Ron
An update... My method from above is what I used to do when using RH 9. I
have changed to Fedora Core 3 in the last few days, and hadn't tried to
use my card reader yet.
It seems that the above method no longer works. FC3 recognises the reader
and loads the appropriate module automatically:
Feb 4 15:10:53 eden kernel: usb 1-3: new high speed USB device using ehci_hcd and address 3
Feb 4 15:10:54 eden kernel: SCSI subsystem initialized
Feb 4 15:10:54 eden kernel: Initializing USB Mass Storage driver...
Feb 4 15:10:54 eden kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Feb 4 15:10:54 eden kernel: usbcore: registered new driver usb-storage
Feb 4 15:10:54 eden kernel: USB Mass Storage support registered.
Feb 4 15:10:59 eden kernel: Vendor: USB2.0 Model: SMARTMEDIA Rev:
Feb 4 15:10:59 eden kernel: Type: Direct-Access ANSI SCSI revision: 00
Feb 4 15:10:59 eden scsi.agent[6518]: disk at /devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/host0/target0:0:0/0:0:0:0
Feb 4 15:10:59 eden kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
but no mount point is created and it won't let me mount a card on an
existing mount point. If I connect the camera directly, rather than
removing the card and using the reader, it all works perfectly and
automatically:
Connect camera:
[dave@eden ~]$ tail -f /var/log/messages
Feb 4 15:48:02 eden kernel: usb 2-2: new full speed USB device using
uhci_hcd and address 2 Feb 4 15:48:03 eden kernel: scsi3 : SCSI emulation
for USB Mass Storage devices Feb 4 15:48:08 eden kernel: Vendor:
MINOLTA Model: DIMAGE CAMERA Rev: 1.00 Feb 4 15:48:08 eden kernel:
Type: Direct-Access ANSI SCSI revision: 00 Feb 4
15:48:08 eden kernel: SCSI device sda: 1000881 512-byte hdwr sectors (512
MB) Feb 4 15:48:08 eden kernel: sda: Write Protect is off Feb 4 15:48:08
eden kernel: sda: assuming drive cache: write through Feb 4 15:48:08 eden
kernel: SCSI device sda: 1000881 512-byte hdwr sectors (512 MB) Feb 4
15:48:08 eden kernel: sda: Write Protect is off Feb 4 15:48:08 eden
kernel: sda: assuming drive cache: write through Feb 4 15:48:08 eden
kernel: sda: sda1 Feb 4 15:48:08 eden kernel: Attached scsi removable
disk sda at scsi3, channel 0, id 0, lun 0 Feb 4 15:48:08 eden
scsi.agent[7314]: disk at
/devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.0/host3/target3:0:0/3:0:0:0
Feb 4 15:48:09 eden fstab-sync[7359]: added mount point /media/usbdisk
for /dev/sda1 Feb 4 15:48:09 eden kernel: FAT: utf8 is not a recommended
IO charset for FAT filesystems, filesystem will be case sensitive!
The camera is immediately accessible:
[dave@eden ~]$ ls /media/usbdisk
dcim mltdsc.cfg
Remove camera:
[dave@eden ~]$ tail -f /var/log/messages
Feb 4 15:49:33 eden kernel: usb 2-2: USB disconnect, address 2
Feb 4 15:49:33 eden fstab-sync[7448]: removed mount point /media/usbdisk for /dev/sda1
A bit of googling turned up this:
http://www.fedoraforum.org/forum/showthread.php?t=15737
When I have the time, I will try compiling a kernel as per the
instructions at the above address. For the time being, I'll just have to
use the camera - It's *really* slow(USB 1) compared to the reader(USB 2)!
I suppose that with the scsi module compiled as described at the above
link, the card reader should automatically mount and be available in the
same way that the camera does.
Rinso
--
/\
/ \
/wizz\
~~~~~~~~~~~~
| |
| Ronald J Marchand 2005-02-04, 5:45 pm |
| Still in need of assistance.
So far, I have determined that the CF slot on this reader is in fact
/dev/sda?
I have one card that was formatted with a reader on an IDE cable and can
mount the card as /dev/sda1. I also have a bootable card where I can mount
the "mountable" filesystem on /dev/sda2. But I cannot mount the root
filesystem. The OS on this card is Linux The mount command complains that
it cannot identify the filesystem. I have been using the command "mount
/dev/sda1 /mnt/sandisk"
Any ideas???
Is there a command that will scan the sd?? devices and report what is
there??
Any help is appreciated.
Ron
"Rincewind" <rinso@unseen.edu> wrote in message
news:pan.2005.02.04.11.47.14.636579@unseen.edu...
> On Fri, 04 Feb 2005 04:24:38 -0600, Ronald J Marchand mumbled something
> like this:
>
>
> This is how I do it with my ByteStor 8 in 1 reader:
>
> $ /sbin/modprobe usb-storage
> $ mount -t vfat /dev/sdax /mnt
>
> You will find that different slots on the reader map to different scsi
> drives, so you will need to try replacing /dev/sdax with /dev/sda1,
> /dev/sda2, etc until:
>
> $ ls /mnt
>
> shows you the contents of the card.
>
> Rinso
> --
> /\
> / \
> /wizz\
> ~~~~~~~~~~~~
>
| |
| Rincewind 2005-02-04, 5:45 pm |
| On Fri, 04 Feb 2005 10:26:27 -0600, Ronald J Marchand mumbled something
like this:
> Still in need of assistance.
>
> So far, I have determined that the CF slot on this reader is in fact
> /dev/sda?
>
> I have one card that was formatted with a reader on an IDE cable and can
> mount the card as /dev/sda1. I also have a bootable card where I can
> mount the "mountable" filesystem on /dev/sda2. But I cannot mount the
> root filesystem. The OS on this card is Linux The mount command
> complains that it cannot identify the filesystem. I have been using the
> command "mount /dev/sda1 /mnt/sandisk"
>
> Any ideas???
>
If it's Linux, it could be ext2fs, ext3fs or reiserfs. I would have
expected it to be recognised if it's one of those. Anyway, you could try
telling mount what type of filesystem is on the card:
mount -t ext2 /dev/sda1 /mnt/sandisk
or
mount -t ext3 /dev/sda1 /mnt/sandisk
or
mount -t reiser /dev/sda1 /mnt/sandisk
> Is there a command that will scan the sd?? devices and report what is
> there??
See my other reply. It shows excerpts from /var/log/messages when
recognised usb devices are connected.
[vbcol=seagreen]
>
> Any help is appreciated.
>
> Ron
>
>
> "Rincewind" <rinso@unseen.edu> wrote in message
> news:pan.2005.02.04.11.47.14.636579@unseen.edu...
--
/\
/ \
/wizz\
~~~~~~~~~~~~
| |
| Robert Nichols 2005-02-05, 5:45 pm |
| In article <1ccdc$4203a251$42a6716f$31159@msgid.meganewsservers.com>,
Ronald J Marchand <ron@rojomar.com> wrote:
:
:Is there a command that will scan the sd?? devices and report what is
:there??
Try this:
file -s /dev/sd*
--
Bob Nichols AT comcast.net I am "rnichols42"
| |
| Ronald J Marchand 2005-02-05, 5:45 pm |
| "Robert Nichols" <SEE_SIGNATURE@localhost.localdomain.invalid> wrote in
message news:cu2p0f$lro$1@omega-3a.right.here...
> In article <1ccdc$4203a251$42a6716f$31159@msgid.meganewsservers.com>,
> Ronald J Marchand <ron@rojomar.com> wrote:
> :
> :Is there a command that will scan the sd?? devices and report what is
> :there??
>
> Try this:
>
> file -s /dev/sd*
I have enhanced this command to:
file -s /dev/sd* | grep -v "can't"
and the output has revealed to me that only one card can be plugged in at a
time.
The output from the Linux card is:
/dev/sda: x86 boot sector
/dev/sda1: data
/dev/sda2: Linux rev 1.0 ext2 filesystem data (mounted or unclean)
(errors)
/dev/sda3: data
But I still cannot mount sda1 or sda3. Any other suggestions?
And thanks for the help so far....
Ron
>
> --
> Bob Nichols AT comcast.net I am "rnichols42"
|
|
|
|
|