Ext2 and ext3 file systems
In order to change the label of an ext2 or ext3 partition, you will need to use: e2fsprogs program utilities. If it is not yet install on your computer, run the following command to install it:
$ sudo apt-get install e2fsprogs
Retrieving the existing label
In order to retrieve the existing label of your partition, simply run:
$ sudo e2label /dev/sdaX
my label
Setting a new label
To set up a new label, you simply have to append the label name at the end of the command line, so it will look like:
$ sudo e2label /dev/sdaX “my new label”
ext2/3 label has to be at most 16 characters long, if longer, label will be truncated
In order to confirm that your changes where properly applied, you can retrieve the partition’s label with:
$ sudo e2label /dev/sdaX
my new label
The new label should be output on the next line.
Deleting an existing label
Label can be deleted by supplying an empty label to e2label with this command line:
$ sudo e2label /dev/sdaX “”
Reiserfs file system
First of all, you need to have reiserfsprogs package installed. If it not yet present on your machine, please run:
$ sudo apt-get install reiserfsprogs
While working on a reiserfs partition, the partition needs to be unmounted.
Now that you made sure that your partition is unmounted, let see how it works.
Retrieving the existing label
To retrieve the existing label, run:
$ sudo reiserfstune /dev/sdaX | grep LABEL
…
LABEL:
The label is going to be apended to “LABEL: “, if there is no label yet, only “LABEL: ” will appear.
Setting a new label
To set up a new label, you will need to use the -l switch like:
$ sudo reiserfstune /dev/sdaX -l “my new label”
Check for the “LABEL: ” entry in the output, this one should now print:
LABEL: my new label
Reiserfs label has to be at most 16 characters long, if longer, label will be truncated
Removing an existing label
To do so, simply supply an empty label with this command line:
$ sudo reiserfstune /dev/sdaX -l “”
NTFS file system
install ntfsprogs
$sudo umount <drive directory>
$sudo ntfslabel -f /dev/sda5 <newlabel>
How-to get your removable device mounted under an explicit and persistent name | Debian/Ubuntu Tips & Tricks
http://tuxecute.blogspot.com/2008/09/change-your-ntfs-windows-drive-label.html
