Changing the label (name) of partitions.

December 2016




Getting started


All commands must be given as administrator (root mode).


Give the simplest names possible to partitions (if possible only alphanumeric characters (a. .. z and 0 ... 9) and - and _.

Partition ext2/ext3


There are two commands:
  • tune2fs -L my_label /dev/partition
  • /sbin/e2label /dev/partition my_label

Partition FAT/FAT16/FAT32


You have to install the mtools package.
  • Then type:
    • sudo mlabel -i /dev/partition ::my_label

NTFS partition


You have to install the ntfsprogs package.
  • The command is:
    ntfslabel /dev/partition my_label.

Related :

This document entitled « Changing the label (name) of partitions. » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.