LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2005, 04:42 PM   #1
undef00
LQ Newbie
 
Registered: Aug 2005
Location: east of the alps
Distribution: debian 3.1
Posts: 12

Rep: Reputation: 0
biostar cardreader


how to install that (biostar cardreader) on a linnux system -do i need a certain driver (biostar doesn't offer one) - or is it in general installed automatically - if yes - how i can access the card-reader???

HELP!!!

just got rid of ms - what else works?
 
Old 08-10-2005, 01:44 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
The good news is that you do not need a special driver.
The bad news is that you may have to poke around your system a little to get the reader working. You will learn a lot about linux, and it might even be fun.

Card readers with multiple slots, for different cards, did NOT work on my stock 2.4.x.y kernel: It has to be recompiled to support "Multiple SCSI LUNs" or "Multiple SCSI IDs" - It is in the SCSI support bit of the kernel options if I remember right. (Found it: When you do make menuconfig, it is under SCSI Support-->"Probe all LUNs on each SCSI device", this needs to be set as built-in and then the kernel recompiled).

My 2.6 kernel came with "Probe all LUNs on each SCSI device" already enabled, but I had to recompile my 2.4 before it would read cards.

Then you need to make sure you have plugged the card into the reader before you plug the reader into the USB port. If you are lucky, you distro will put a USB storage icon on your desktop (Mandriva 2005LE does, 9.1 does not), if you are unlucky, you will have to make a mount point for the card, and work out how to mount it before you can access your files.

If you do not get an icon on your desktop, take a look at dmesg and /or the last few lines of /var/log/messages to see what linux makes of your cardreader. If it is a multicard reader, the slots will (probably) be called /dev/sda1 , /dev/sdb1 , /dev/sdc1 etc. My camera card happens to fit in the slot that is identified as /dev/sdd1. You live & learn, and it took me a while to work this out.

I see you have 8 posts - Welcome to LQ and I hope this has not discouraged you too much. I was terrified of recompiling the kernel the first time I did it, but I just followed the instructions from here (SEARCH this board), and it was not only very straightforward, but interesting as well.

Hope this helps
 
Old 08-10-2005, 11:34 PM   #3
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Use UDEV

Udev makes it easier to work with USB Card Readers ( hope that is what you have )

Find the model name of the slot you want by executing "cat /sys/class/scsi_device/x:x:x:x/device/model" where the "x"'s are numbers that identify the LUN ( logical unit number, I think ) of not only your reader, but each slot of your read. For my reader, it created a SCSI device for each slot, but my SD slot's model was "SD PRO-9XP" ( note the "SD" in the name ). So the next step was to conifigure UDEV to give that slot a static device name of "cardreader" ( why not? ).

So I edited " /etc/udev/rules.d/10-wacom.rules" and added this line:
BUS="scsi", SYSFS{model}="SD PRO-9XP", NAME="cardreader", SYMLINK="/dev/cardreader", MODE="0666"

Now every time I connect the cardreader to my computer, it will create a device called "/dev/cardreader"

In "/etc/fstab", I set up the mount point for this device:
/dev/cardreader /mnt/cardreader vfat noauto,rw,uid=joe.smith,gid=users,umask=002,user 0 0

Which tells Linux that anyone can mount this device, and it will be owner by user joe.smith and group users.

Now all I have to do is plug it in and type "/mnt/cardreader" and then the SD card is accessible. You can change this up a bit by making devices/mount points for each slot, I only use SD at the moment, so that was not necessary at all.

Enjoy.
 
Old 08-11-2005, 07:07 PM   #4
undef00
LQ Newbie
 
Registered: Aug 2005
Location: east of the alps
Distribution: debian 3.1
Posts: 12

Original Poster
Rep: Reputation: 0
many thanks! for the postings - i first tried fortezza's instructions (appeared not that hard to follow) but even i didn't suceed!!

what i did: (does it matter in which line i put it? or the formatting? i just copied and pasted it to eol)

BUS="scsi", SYSFS{model}="SD PRO-9XP", NAME="cardreader", SYMLINK="/dev/cardreader", MODE="0666"

exchanged: "SD PRO-9XP" with "USB STORAGE-CFC"

/dev/cardreader /mnt/cardreader vfat noauto,rw,uid=joe.smith,gid=users,umask=002,user 0 0

exxhanged uid=undef00

and it didn't work if i wanted to execute /mnt/cardreader it gave an error message - also the short-cut in the /dev appeared to be corrupt

the usb storage device did appear in the computer-folder

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!

isn't there an easy way????
 
Old 08-13-2005, 05:03 PM   #5
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Sounds like you are getting closer to success, so do not give up! When you plug in the Card Reader, is Udev making the "/dev/cardreader" device folder for you? If so, make sure it is using the correct device. I practiced with manual mounts ( "mount /dev/cardreader /mnt/cardreader" ) and if I was using the wrong device, it would tell me there was no media available ( I mistakenly used "MS PRO-9XP" instead of "SD PRO-9XP" the first time ), so then I kept doing the 'cat /sys/bus/scsi/devices/<logical unit number(LUN)>/model" until I got the right one.

Here is an example of the devices (LUN's )my card reader creates when connected:
> ls /sys/bus/scsi/devices
11:0:0:0 11:0:0:1 11:0:0:2 11:0:0:3
Then I cat'd each one like this:
cat "/sys/bus/scsi/devices/11:0:0:0/model"
CF PRO-9XP

I think you have gotten this far, so try manually mounting the media (CFC card, in your case ) "mount -t vfat /dev/cardreader /mnt/cardreader" and try doing an "ll /mnt/cardreader" afterwards.



If this does not work, you can experiment with connecting the card reader to your Linux box with the card and without the card. I know my Bluetooth MP3 player headphones require that I put the SD card in, connect the USB cable, and then power turned on the headphones for the SD card to be accessible. Perhaps if you already have the flash card in the reader before you connect it to your computer, it will work.

Good Luck!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Biostar M6VCF audio help please dcorwin822 Linux - Hardware 4 05-29-2005 07:53 PM
Biostar M7NCG, anyone has it? sud_crow Linux - Hardware 2 10-01-2004 11:07 AM
Biostar u8668d mobo setup problems steve44224 Linux - Hardware 0 03-21-2004 06:45 PM
Biostar M7NCD Onboard LAN Blaa269 Linux - Hardware 3 02-23-2004 09:15 PM
Slack 9.0 with Biostar M7NCD DevZerolt Linux - Hardware 6 12-21-2003 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration