Renaming your FAT partitions.

Most of you would’ve come across this problem. Whenever you plug in you USB pen drive or external hard disk, Linux mounts it as disk , disk1, etc. It’s actually quite annoying when you have quite a few devices plugged in. Wouldn’t it be nice if you could just rename the disks?
Here’s how you do it. This requires mtools. (this is for FAT partitions only)

Get mtools by ‘sudo aptitude install mtools‘, or use synaptic.(Ubuntu/Debian)

Unmount your USB device. eg: ‘sudo umount /dev/sdb1‘ where sdb1 is your device name.

Now, rename it by ‘mlabel -i /dev/sdb1 ::my_name‘. (my_name is the new volume label of your device now).

Check the volume label by ‘mlabel -i /dev/sdb1 -s ::

Unplug the device, plug it back in and see the magic! :)


About this entry