Skip to main content
2 of 2
Addeded difference between GPT and MSDOS tables
garethTheRed
  • 35k
  • 4
  • 101
  • 106

If you are using a GPT partition table, there are two labels involved and different filemanagers may show either label:

Partition Label

parted /dev/sdb name 1 MyBook

will rename the first partition on /dev/sdb to MyBook.

Filesystem Label

e2label /dev/sdb1 MyBook

will rename the filesystem label on ext2/3/4 installed on /dev/sdb1. Different utilites are needed for other filesystems.

MSDOS partition tables only have filesystem labels though.

garethTheRed
  • 35k
  • 4
  • 101
  • 106