I have a 2TB drive, when connecting to my Fedora workstation, it’s mounted using the UUID of the partition as the following:
# mount | grep sde1
/dev/sde1 on /run/media/kenno/f59ffb93-5a92-4af9-a9b5-19ca3bb8aa37 type ext4 (rw,nosuid,nodev,relatime,seclabel,uhelper=udisks2)
I think it’ll look nicer if it’s mounted with a shorter name, e.g. ‘Podcast’.
The filesystem for this drive is ext4. To create a label on the ext4 filesystem, we can use a program called e2label
. The exact command is e2label device [ volume-label ]
according to the man
page.
My external disk shows is detected as /dev/sde
, and the partition I want to create the label on is /dev/sde1
.
First check what is the existing label on this partition:
# e2label /dev/sde1
It’s blank as expected. Let’s give it a label called Podcast
:
# e2label /dev/sde1 Podcast
Recovering journal
We can also verify the label by running e2label
command again:
# e2label /dev/sde1
Podcast
From now on, when this drive is mounted from the Plasma file browser, Dolphin, the drive is mounted as Podcast
.
# mount | grep sde1
/dev/sde1 on /run/media/kenno/Podcast type ext4 (rw,nosuid,nodev,relatime,seclabel,uhelper=udisks2)
To find out more:
man e2label