Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-04-2003, 01:05 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
USB multi-card reader woes

Recent refugee from the world of windows. After having read a few helpful pages I have been able to get my RH9 install to recognize my lexar 4 card reader. What I have done:

1. Created the script:

echo "scsi add-single-device 0 0 0 0">/proc/scsi/scsi
echo "scsi add-single-device 0 0 0 1">/proc/scsi/scsi
echo "scsi add-single-device 0 0 0 2">/proc/scsi/scsi
echo "scsi add-single-device 0 0 0 3">/proc/scsi/scsi
cat /proc/scsi/scsi

2. Added the following lines to fstab:

/dev/sda1 /mnt/cfc vfat rw,user,noauto 0 0
/dev/sdb1 /mnt/smc vfat rw,user,noauto 0 0
/dev/sdc1 /mnt/mmc vfat rw,user,noauto 0 0
/dev/sdd1 /mnt/msc vfat rw,user,noauto 0 0

3. Added the cfc, smc, mmc, and msc files to the mount directory.

The problem(s):
1. I do not know where to put the script. I had it in root but the cd player wouldn't work on loading.
2. The different card formats seem to change their lun position (ie: the mmc device has shown up as both sdb1 and sdc1 across reboots).
3. Can I do away with the script if I recompile the kernel to probe for multiple luns? I believe the answer is yes but need to learn to recompile a kernel at this point.
4. When mounting the device after running the script post-boot I cannot write to the card. My first guess would be that this is an ownership problem but figured I would include this as this is about where I stopped trying to make this work-just building up the motivation for another salvo.

Last edited by bgnrsmnd; 11-05-2003 at 10:31 AM.
Old 11-06-2003, 07:36 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
1. I would put the script in your /etc/rc.d/init.d directory and make an (early) symlink to it in /etc/rc.d/rc3.d. What I mean by early is... if you look at the links in that directory (rc3.d) you'll notice that some are SxxScript and others are KxxScript - S and K mean 'start' and 'kill'. The xx is a number that represents how soon that script is executed. So, something like S01Script would start that script before S02Script.

2. Not sure. Sorry. The only time I have had this problem is if my USB reader is not plugged in at boot (the burner and zip drive are ide-scsi, and so they can all get screwy if the machine is booted with the reader unplugged).

3. Yes. Configuring multi-lun should work fine. Currently I am running Mandy 9.1 with a non-multi-lun kernel because *my* camera uses CF which just happens to be the first lun on my device. I do have a multi-lun enabled kernel too, but it is a little buggy (my fault) so I can't be bothered to boot it, but it works well on the multi-lun front.

4. Try adding 'users' (notice the S at the end... plural) to your fstab. That way any user can mount/umount a device regardless of who originally mounted it.


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
[SOLVED] USB CompacFlash Card Reader Woes wmeler Linux - Hardware 2 05-12-2011 05:31 PM
USB Multi card reader in linux sjmgeezer Linux - Hardware 2 07-21-2005 08:15 AM
multi-card usb reader support MikTheUser Linux - Hardware 1 02-14-2005 05:53 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 08:24 PM
Multi Card Reader (usb mass storage) Shak Linux - Hardware 11 03-06-2003 07:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

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