removable (usb-)devices mount points
Hi,
I'm using slackware-10.2 with kernel 2.4.32 in combination with serveral removable devices: mp3-player, camera, external hard-disk,... hotplug assigns these devices to /dev/sd[bcd]? according to the sequence of connection (which is variable, actually). Therefore it is not possible to define "fixed" mount points in /etc/fstab. As far as I understand, with kernel 2.6 this problem is handled by udev. Do you know a similar solution for kernel 2.4? At the moment, I'm using hotplug as a black-box; can I configure hotplug to do that job for the above mentioned devices? Thanks in advance, Markus |
Hello, welcome to LQ.
I was under the impression that udev works with the 2.4 kernel as well since it ships default with Slackware (which uses the 2.4 kernel). What are you experiencing when you try to use udev? regards, ...drkstr |
Welcome to LQ!
Or you can setup /etc/fstab with generic mount point names, and then either manually mount them or use the "System > Storage Media > Removable Device (sdx1)" choices from the KDE desktop. These are two mount points: Code:
mingdao@silas:~/kernel/linux-2.6.16.18$ cat /etc/fstab I have two SATA drives which permanently get /dev/sda and /dev/sdb. |
@all: basically, my system is running - I just want to optimize it....
@drkstr: > What are you experiencing when you try to use udev? $ head -n 9 /usr/doc/udev-064/README | tail -1 - You must be running a 2.6 version of the Linux kernel. --> I didn't try.... @Chinaman: - yes - this is an option - but still I would have to "think about" wich /dev/s?? I have to use, when I connect any devices. Actually, I'm looking for something like /dev/camera /mnt/camera vfat noauto,users,..... where /dev/camera gets linked to /dev/s?? by any (hotplug?) automatism. Thanks, Markus |
Markus,
You don't have to think about anything if you're running KDE, just make yourself 4 mount points, plug in the device, and then use what I told you before. You click on the icon and it mounts. Of course, udev is supposed to assign the same mount point to devices if you write udev rules properly. But udev is still a buggy issue, and only certain versions work with certain kernels. See the ChangeLog.txt of Slackware -current for more info. |
Hi Chinaman,
I see - unfortunately, I'm not running KDE but fvmw2. :-( Yes, I know: lots of "I'm not..."! :-) I thought about using any functionality inside hotplug, so I'll search google for that topic. Thanks, anyway! Markus |
Markus,
You're only going to get the functionality you want with udev. At the present time, that's going to require a lot of work on your part, probably 'hit and miss' at that. Did you read? Code:
mingdao@silas:~$ less /usr/doc/udev-071/README without writing any udev rules, I'm not even sure if what you are saying is possible. I think udev still uses device names, but translates those into specific mount points. |
All times are GMT -5. The time now is 12:13 PM. |