Multiple External camera flash memory card readers, udev rules best way?
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 :D
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.
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.
|All times are GMT -5. The time now is 01:20 AM.|