Name USB devices to help identifying them
When I connect USB devices such as mp3 player or bike computer, they mount right away but are given names like "46A1-4000" & "6132-6635"
When I have several devices connected it gets very confusing to know which is which, especially when they have inbuilt memory & removable SD. 3 or 4 drives show with random numbers & no way to easily know what is what.
I'd like a way to name these such as "sandisc2" or "igsport" - How can I do it?
Names such as "46A1-4000" are used when the file system doesn't have a volume label. So, you just have to give it a name.
If you don't want to reformat, what I would do is use the program gparted
under sudo
. Try the following:
- Insert the USB drive.
- Run
sudo gparted
. - In the top-right corner, select the USB drive in question.
- Presumably, it has been mounted automatically for you. Right click on the partition and select "unmount".
- Right click again and select "Label File System". Then, enter the name.
- Then, apply the change by clicking on the white checkmark on the green background.
I think you can label the file system at the time that you formatted it. For example, look at the man pages for mke2fs
by typing man mke2fs
. This command, which is used to make ext2/ext3/ext4 file systems takes an -L
option for the volume label.
If you used some GUI to format it (i.e., even gparted
, then there will be another way to label it, as well.
My suggestion above is when you don't want to re-format the file system.
Hope this helps!
Just to expand answer by @Ray, there is detailed instructions with explanations on how to do this for different cases and with different methods at Ubuntu Community Help Wiki:
RenameUSBDrive
Here is contents of this page to make an idea what it is about:
- Using the Partition Editor
- Using the Command line
- Identify your Partition
- Install the Labeling Program
- Unmount the Partition
- Changing the Label
- Filesystems
- FAT16 and FAT32
- NTFS
- ext2, ext3, and ext4
- JFS
- ReiserFS (v3)
- XFS
- Verify the Change
- Other Resources