I just formatted an external drive with exFAT file system with the intention to share this drive between Windows/Linux/macOS.
When the drive is mounted on my Fedora desktop, it shows as:
/dev/sde1 on /run/media/kenno/E17F-B2B1 type exfat ()(rw,nosuid,nodev,relati...)
I want to give it a name, so it’ll be mounted as:
/run/media/kenno/DRIVE_NAME. On Linux system, we can use a tool called
exfatlabel to get or set the exFAT file system. I already created a partition and format it (
mkfs.exfat /dev/sde1) on /dev/sde1 partition.
First ensure that the file system is not mounted. There are a few ways to do this, I like using
❯ udisksctl unmount -b /dev/sde1 Unmounted /dev/sde1.
Get the current label.
❯ sudo exfatlabel /dev/sde1 [sudo] password for kenno: exfatprogs version : 1.1.0 label:
We can set a label to the exFAT partition using
exfatlabel device label. I’m going to call this drive
notsofat because its capacity is only 250GiB and it’s formatted as exFAT.
❯ sudo exfatlabel /dev/sde1 notsofat exfatprogs version : 1.1.0 new label: notsofat
That’s it. From now on, when this drive (partition) is mounted (connected) to my computer, it’s shown as
❯ udisksctl mount -b /dev/sde1 Mounted /dev/sde1 at /run/media/kenno/notsofat