LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fstab and mounting devices (https://www.linuxquestions.org/questions/slackware-14/fstab-and-mounting-devices-568381/)

nass 07-11-2007 06:55 AM

fstab and mounting devices
 
hello everyone,
so far i have an fstab entry for when i mount the ipod shuffle /dev/sdf1 to be mounted in /mnt/ipod..

additionally i have a flash drive that i use quite often which i would like to mount on /mnt/memory whenever i have it plugged in.

as you may have guessed the problem that arises is that the first usb device i plug in will be on /dev/sdf1 and that will me mounted on /mnt/ipod regardless of whether it is the ipod indeed. then if i plug in the 2nd device , it will be /dev/sdg1 and will be mounted on /mnt/memory..

is it possible that i can somehow tell the system to mount the ipod shuffle nomatter what the /dev/ entry to /mnt/ipod always? and the respective for the flash drive?

thank you for your help
nass

acid_kewpie 07-11-2007 07:00 AM

you'd presuambly use udev under slack to create /dev/ipod as a device when certain criteria of the associated device is matched, e.g. vendor of serial no. http://www.reactivated.net/writing_udev_rules.html

nass 07-11-2007 08:18 AM

thank you very much! i read the doc, applied it and voila!
works like a charm!
thanks again!


All times are GMT -5. The time now is 11:01 AM.