How to change the filesystem label on the vfat filesystem located on device /dev/sdb1?

I just followed the instructions from Cyberciti.biz to format my Kingston USB drive.

Instead of ext2, I formatted the drive to vfat. I forgot to use the naming option when using mkfs.vfat (webpage doesn't mention it) and when I try to use mren I get:

sudo mren /dev/sdb1 KINGSTON
Can't open /dev/fd0: No such device or address
Cannot initialize 'A:'

Is there a way to rename the file system or do I just have to wait until the next time I reformat it?


You're looking for dosfslabel.

In most distributions, it can be found in the dosfstools package.


Try the following:

> sudo -i
> apt-get install apt-file
> apt-file update
> apt-file search dosfslabel

dosfstools: /sbin/dosfslabel
dosfstools: /usr/share/man/man8/dosfslabel.8.gz
dosfstools-dbg: /usr/lib/debug/sbin/dosfslabel
manpages-fr-extra: /usr/share/man/fr/man8/dosfslabel.8.gz