Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How exactly would I rename a USB drive?

I've read that you can go into the Disk Utility, the 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?

share|improve this question

3 Answers 3

up vote 9 down vote accepted

First, obtain the location of your USB drive:

sudo fdisk -l

Assuming that your device location is /dev/sdb1/:

You can safely check the current label without any side effects by issuing the following command:

sudo file /dev/sdb1 -s

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.

sudo mlabel -i /dev/sdb1 -s ::"LABEL HERE "

For other filesystems (rarely used for USB sticks), see this page.

share|improve this answer
    
I also found when using the Disk Utility, I had to unmount the volume before it would allow me to rename the label. –  Muhnamana Feb 13 '12 at 0:56
  1. Open Disk Utility
  2. Select the flash drive in the panel on the left
  3. Press the unmount volume button
  4. A button to edit the volume label appears

(p.s. Translating from Dutch here so button names may not be 100% correct.)

share|improve this answer
1  
This worked very well for me - and a lot easier. –  Peter May 23 '13 at 12:30
    
I can't find this Utility in my application menu. What's its command line launcher please? –  Slyx Feb 14 at 15:07

Right click on the drive you want to edit to bring up the properties window. Then the name will be highlighted by default. Just type your name and click enter.

share|improve this answer
    
Please tell me in which application I should do the right click. Thank you –  guettli 17 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.