You are here

howto: modify the partitions labels

disk labels are useful. the disk identifier used to be in the /dev/sdb format. but that device name is interchangeable with the other disks. so then it was best to use uuid but the uuid would depend on what the motherboard called its device. the above methods are not persistent. meaning it is not guaranteed across reboots and across different computers. so the best method is to use disk labels.

lets start off first with reading disk labels

lsblk -f

when you run this command, you will see that it will give the device name, fstype, label, uuid and mount point. very useful

the rest of this article is a straight out copy and paste of this article

All these commands should be done by the administrator (root mode).
Give names of the simplest possible partitions (if possible using only alphanumeric characters (a. .. z and 0 ... 9) and - and _.

ext2/ext3 Partitions

There are two commands:

tune2fs -L my_label /dev/partition
/sbin/e2label /dev/partition my_label

FAT/FAT16/FAT32 Partitions

You must install the mtools utility package.

Then type:

sudo mlabel -i /dev/partition ::my_label

NTFS Partitions

You must install the ntfsprogs package

The command to be used is:

ntfslabel /dev/partition my_label.