Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.