Bootstrap FreeKB - Linux Commands - Add a label to a partition using the e2label command
Linux Commands - Add a label to a partition using the e2label command

Updated:   |  Linux Commands articles

The e2label command followed by a partition displays the current label of a partition. In this example, the /dev/sda1 partition does not have a label.

~]# e2label /dev/sda1

 

The e2label command followed by a partition and a label name adds or updates a label for a partition. In my this, the /dev/sda1 partition is labeled "root-partition".

~]# e2label /dev/sda1 root-partition

 

Now that /dev/sda1 has a label, the e2label command followed by the partition name displays the label of the partition.

~]# e2label /dev/sda1
root-partition

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 2cc1af in the box below so that we can be sure you are a human.