Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-02-2006, 12:52 AM   #1
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 62
Multiple External camera flash memory card readers, udev rules best way?

Hi all,

I'm wondering if I am trying to re-invent the wheel here or not and was wondering if someone could confirm with me if I am approaching this correctly?

I have a multi-card reader (reads:smart, flash, sd and eh, I don't know what the other one is LOL) and a usb thumbdrive thingie.

When I boot up the rc.scanluns see's the devices if they are plugged in, dmesg easily report s them too.

I personally have no problem just looking at dmesg and typing in CLI...but my wife over here is complaining about having to call me in once in a blue moon that she does this (lol) and was wondering if you can help save my marriage

Should I be creating fstab rules and/or udev rules for each of the devices,, which is more preferred.

Or should I just wait until Slackware 11.1(?) which is to have HAL.
Old 11-02-2006, 06:18 AM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,846

Rep: Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007Reputation: 2007
fstab and udev are there to work together, not separately. If you want to have each device be detected and show up individually, then you'll need to have udev create dedicated /dev entries for each separate device. Then you can use those devices to create fstab entries so that they can be mounted consistantly. You'd be able to have a /dev/flashcard mount, a /dev/sdcard mount, a /dev/thumbstick mount, etc.

If you don't use udev, then all usb devices will show up simply as sda1, sdb1, etc. and the only thing to differentiate them would be the order in which they're plugged in.

HAL is yet another layer that works between udev and the desktop to give you even more fine-grained control of device management. It makes it very easy to have automounting of removable media that bypasses fstab entirely. You can wait for it if you want, but it's not a wonder solution. It's just another way to do things.


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
Slackware 11, udev, and card readers marnold Slackware 4 09-27-2006 07:22 PM
flash card / memory card readers and linux? Frelov Linux - Hardware 11 08-02-2006 04:37 PM
udev rules for sandisk 8 in 1 card reader, can't distinguish hedpe Linux - Hardware 4 12-30-2005 03:38 AM
problem with mounting flash memory card from digital camera jogurt666 Linux - Hardware 3 12-07-2003 11:54 AM
A very good guide for using Multi-Card Flash Readers raylpc Linux - General 0 08-21-2003 05:18 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:21 PM.

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