Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

4 Answers 4

up vote 11 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

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 Oct 21 '14 at 8:22
  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
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 '14 at 15:07
@Slyx: i added an answer that uses the gparted GUI. –  krumpelstiltskin Feb 9 at 16:23

None of the given answers worked for me on my 14.10 system. I used gparted as described in

  1. sudo apt-get install gparted
  2. open gparted
  3. choose the thumdrive from the dropdown in the top-right corner
  4. umount the volume (right-click on drive)
  5. right click and choose "label"
share|improve this answer

Your Answer


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.