Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The only way I know to set VFAT volume name under Linux is mkfs.vfat -n desired_name ..., which obviously destroys volume's contents.

Is there a way to change the volume name non-destructively, as Windows does?

This name is conveniently used to name the volume on auto-mount.

(I'd gladly use a better FS, but all my cameras want only VFAT-formatted flash media.)

share|improve this question
up vote 2 down vote accepted

You can use dosfslabel (from the same package as mkfs.vfat):

dosfslabel /path/to/device newlabel

Or mlabel from mtools:

mlabel -i /path/to/device ::newlabel
share|improve this answer
Interestingly, dosfslabel from current Debian stable was unable to set the label on a 16GB vfat volume, but the version from Ubuntu 12.04 worked. – 9000 Feb 7 '13 at 14:49

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.