Linux - Modify the partitions labels

May 2017






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

NTS Partitions


You must install the ntfsprogs package

The command to be used is:
  • ntfslabel /dev/partition my_label.

Related


Published by jad05. Latest update on May 2, 2011 at 11:16 AM by jad05.
This document, titled "Linux - Modify the partitions labels ," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).