I have 2 internal and 4 external USB ports that I use for various types of external storage (hard drives / USB Flash drives / Camera Compact Flash cards etc).
I understand that the device name these end up with is basically in order of detection, i.e. the first device that gets picked up will be /dev/sda1, the second /dev/sdb1, the third /dev/sdc1 etc.
At the moment I have several directories in my /mnt folder named, usbdrive1, usbdrive2, usbdrive3 etc and relevant entries in my /etc/fstab so that if any of these devices are present at boot, they'll get mounted. So sda1 will get mounted to usbdrive1, sdb1 will get mounted to usbdrive2 etc. This part I understand
What I really want is to have more meaningful folder names in /mnt. But if I create a folder called /mnt/compactflash what do I put in /etc/fstab to ensure the compact flash card always gets mounted to that point, when it could potentially be allocated any of the device names listed above.
It maybe that this is impossible, but if there is a way to do it I would be very keen to find out! I've noticed the product/vendor info gets picked up in /var/log/messages as soon as the device is inserted. Is there anyway this can be used? I did start looking at the hotplug stuff but got totally confused!