Change fat32 drive label under Ubuntu / linux

How to change the drive label for a fat32 partition or drive in linux.

First you need to install mtools and then edit the configuration file.

sudo gedit /etc/mtools.conf

Add something like the following to assign a drive letter to your fat32 drive

drive d: file=”/dev/sdb1″

you can find out the second bit by running mount when your device is connected

sudo mlabel -s d:

to check that it is the right one and then to change it:

sudo mlabel d:whatever


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: