LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



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

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, 07:18 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
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.
 
  


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


All times are GMT -5. The time now is 10:32 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration