[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB Card Reader.



Justin Guerin wrote:

Wulfy wrote:

Justin Guerin wrote:

This is what you need to do, but it failed because udev didn't create the
special device node.  You can either create it manually with makedev, and
have to create it manually every time, or tell udev to create the
individual partition nodes when the device nodes for the reader are
created.

Sorry this is so late getting back.

I followed the instructions in
<http://www.debian-administration.org/articles/126> and now have the
device nodes available.  Everything *seems* to be working (I get a no
media error message if I try to mount an empty slot), yet I get the
message:

mount: /dev/card_sm1 is not a valid block device

when I try to mount it.

Any ideas where I've gone wrong?  If you need any more info, just ask.

What does an "ls -l /dev/card_sm1" show?
brw-rw----  1 root floppy 8, 33 Mar 28 21:43 /dev/card_sm1
                              ^^^^
Seems that udev thinks it's a floppy drive...? Would that mean that the fstab entry below should have "msdos" (or whatever the format type is for floppy drives) rather than "vfat"?

What do you have in your udev rules that creates that node?
Yewdales-lodge:~# cat /etc/udev/rules.d/local.rules
BUS="scsi", SYSFS{model}="USB 2 HS-SM", NAME{all_partitions}="card_sm"
BUS="scsi", SYSFS{model}="USB 2 HS-CF", NAME{all_partitions}="card_cf"
BUS="scsi", SYSFS{model}="USB 2 HS-SD/MMC", NAME{all_partitions}="card_sd"
BUS="scsi", SYSFS{model}="USB 2 HS-MS", NAME{all_partitions}="card_ms"

(I set all of them up as I don't want to have to come back to this if I ever get other cards to read.)

What do you have in your fstab, or what was your mount command if you didn't
have anything setup in fstab?
#Card Reader nodes

/dev/card_sd1   /media/sd       vfat    rw,user,noauto  0       0
/dev/card_cf1   /media/cf       vfat    rw,user,noauto  0       0
/dev/card_sm1   /media/sm       vfat    rw,user,noauto  0       0
/dev/card_ms1   /media/ms       vfat    rw,user,noauto  0       0

Also, what does the partition table on your card look like?  That is, are
you sure the data resides on the first primary partition?
Here I have no idea, really. I've only ever done this with the serial connector and that was some time ago.

Justin

Thanks for all your help.  It's much appreciated...

--
Blessings

Wulfmann

Wulf Credo:
Respect the elders. Teach the young. Co-operate with the pack. Play when you can. Hunt when you must. Rest in between.
Share your affections. Voice your opinion. Leave your Mark.



Reply to: