I have three USB flash drives (all PNY Mini-Attaches; one 16GB, one 8GB, and one 4GB) used as dedicated storage for my PCLinuxOS local repository. If I mount the 8GB first, it is recognized as "/media/disk". Then, if I mount the 4GB second, it is recognized as "/media/disk-1". The 16GB is different, however; when mounted, whether alone or with the other flash drives, it is always recognized as "/media/.22.0-16pcl".
Is there a way I can change how the 16GB drive is recognized, so that mounted first it would be "/media/disk" ... then the other drives "/media/disk-1", "/media/disk-2"? What command-line application would be best to use, without wiping the flash drive's contents clean in the process? "The Linux Command Line" by William E. Shotts offers no hints on how this can be done.
I have experimented with the 4GB and have given it the volume label, "tertiary", by doing this:
[root@localhost rg]# mlabel -i /dev/sdb1 ::tertiary
[root@localhost rg]# blkid
/dev/sda1: UUID="22889cd7-d67d-4466-b1d1-b9a8875f339c" TYPE="ext4"
/dev/sda5: UUID="1e60af4d-cf7b-4553-a065-b99912d43d2d" TYPE="swap"
/dev/sda6: UUID="88081151-11cb-46bd-b2d3-d96833653c6d" TYPE="ext4"
/dev/sdb1: LABEL="TERTIARY" UUID="775C-7856" TYPE="vfat"
Changing the volume label has no effect on the 4GB being recognized as "/media/disk". Maybe what I want to do with the 16GB is something associated with partitioning the flash drive. Some "guru" guidance would be appreciated.
This topic fits into the "I just want to know" category. The 16GB drive works fine, no usage problems whatsoever.