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 *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.