I have several SD cards with contents of type cont_A that I would like to mount to /mnt/cont_A if one of them is plugged into the computer.
I have as well several SD cards with contents of type cont_B that I would like to mount to /mnt/cont_B if one of them is plugged into the computer.
I tried to manage this using /etc/fstab or /etc/auto.misc using UUID but what ever I do it works only if the first line in either file has the correct UUID of the actual plugged in card.
example of /etc/fstab:
UUID=c9c87db1-4f03-464d-bfcb-aeec8b3be54d /mnt/cont_A ext4 defaults 0 0
UUID=b444832e-e9c1-4a73-8b3f-94771418e247 /mnt/cont_A ext4 defaults 0 0
UUID=7125a2b3-b157-4e65-b618-3b00309b6d21 /mnt/cont_B ext4 defaults 0 0
What else can I try?
BTW, in my specific case it is not important to automatically mount the cards. I want just to insert one of the cards and write
bash> mount /mnt/cont_A
in order to get mounted to cont_A (in case that a cont_A type card is inserted)