Dave's Brain

Browse - computer tips - display the label of an ext2 partition

Date: 2008may17
OS: Linux

Q.  How do I show the label of an ext2 (or ext3) partition?

A.  Use the e2label command like this:

	e2label /dev/sda1

Where /dev/sda1 is your device

You can set the label like this:

	e2label /dev/sda1 my_label

Works for ext3 partitions also.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: