Labels on ext2 and ext3 filesystems

I just recently discovered that you can put a label on an ext2 or an ext3 filesystem, just like you can with a msdos/fat filesystem.
The reason I didn’t know was probably that it didn’t matter, but now with hal and gnome-volume-manager automounting removable disks, the disks in my usb enclosures are mounted as /media/usbdisk, that is, until I changed the label. Then it is mounted as /media/label, which is a lot more useful.
The label is set with:

e2label /dev/sdc1 yourlabel

Replace the partition with the one you want to set the label on.


Comments

One response to “Labels on ext2 and ext3 filesystems”

  1. C2H5OH avatar

    Great tip! I was in the EXACT same situation as described.

    Thanks a lot 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.)