Changing the label (name) of partitions.

February 2017




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


Published by deri58. Latest update on February 28, 2010 at 06:38 AM by jak58.
This document, titled "Changing the label (name) of partitions.," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).