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

ThereIf 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.

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.

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.

Source Link
garethTheRed
  • 35k
  • 4
  • 101
  • 106

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.