Way to make autofs mount to specific USB flash drive to specific folder?
Is there a way to configure autofs to auto mount a specific USB drive (via a unique identifier) to a specific folder?
For example, perhaps I have three flash drives and I want Linux to recognize each is different. If flash drive "A" is plugged in, I want it mounted in folder "A". If flash drive "B" is plugged in, I want it mounted in folder "B".
Is this do-able?
You can label the partitions on the flash drives with identifying labels if you have the right partitioning tools. For example, I have two flash drives each having one partition. Using Acronis Disk Director, I was able to give each partition a unique label, one "Backup" and the other "Data". Every time I insert the "Backup" flash drive, it mounts on /media/Backup and when I insert the "Data" flash drive it mounts on /media/Data. In general, once you label a partition on and external usb mass storage device, that partition will always be mounted on /media/<partition label>.
I know Partition Magic is capable of labeling FAT32 partitions as well. For ext2 and ext3 partitions, you can label them within linux using the e2label command:
# e2label <device file> <label name>
But I'm not familiar with any native linux tools that allow you to label FAT32 which is the way most flash drives come formatted. I think there may be a way of doing this using mtools but I'm not really up on that.
GParted is what you're after
bring this thread back to life with an answer to help the next guy :).
gparted can label vfat (fat32) partitions in linux
|All times are GMT -5. The time now is 08:50 AM.|