Jan 8, 2007

Editing the Memory Card Label

I got tired of my memory card being mounted as /media/VendorName so I renamed it. It is enough to give the FAT filesystem a volume label, but how to do it is not as obvious as I had hoped. Here's how:
# mlabel -i /dev/device ::NEWLABEL

That's a double colon. The trick is in using the -i option so that you can use mtools.rpm without configuring the drive letters beforehand. Don't forget to unmount the device before accessing it with mtools.