How exactly would I rename a USB drive?
I've read that you can go into the Disk Utility, click on Edit Partition, and there is an option to rename the label but I can't click in the area to rename.
Is there any other way?
diskdisk-utilityusb-drive
How exactly would I rename a USB drive?
I've read that you can go into the Disk Utility, click on Edit Partition, and there is an option to rename the label but I can't click in the area to rename.
Is there any other way?
Best Answer
First, obtain the location of your USB drive:
Assuming that your device location is
/dev/sdb1/
:You can safely check the current label without any side effects by issuing the following command:
Most USB sticks are formatted using FAT16/FAT32. To change the label via the prompt, use the
mlabel
command. The label of a FAT filesystem requires to be exactely 11 characters. No more, no less. When characters are omitted, spaces are added at the beginning, and seemingly random characters are appended at the end.Install the mtools package (GNU Tools for MSDOS filesystems):
Then you might need to configure the mtools drives settings, hence add the following two lines to /etc/mtools.conf (you will need sudo to edit)
Having saved, you should then be able to look at your USB drive in (say) /dev/sdb1 as drive u:
(See comments ....) Then relabel:
For other filesystems (rarely used for USB sticks), see this page.