Fedora 28; mount: unknown filesystem type ‘exfat’ fix

Posted Leave a comment

Since recently my daily driver GNU/Linux distro devs decided to end development on Korora linux I’ve been looking for my replacement distro for home and work. Being an Linux Admin by trade I am much more comfortable living withing Linux for all my computing needs.

I recently installed Fedora 28 and realized I needed exfat for my youtube video work with my sd cards.

wget https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-28.noarch.rpm
yum install rpmfusion-free-release-28.noarch.rpm
yum install fuse-exfat

Now you should be able to mount, like so:

first we find the partition number, I use fdisk.

[justin@localhost test]$ sudo fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BDDA9F02-6FAB-4B38-BE51-CE6FF1174D44

Device     Start        End    Sectors   Size Type
/dev/sda1   2048 1953525134 1953523087 931.5G Linux filesystem


Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 8ECAB5DB-D78B-4A14-BC3B-85F10429FACF

Device       Start       End   Sectors  Size Type
/dev/sdb1     2048    411647    409600  200M EFI System
/dev/sdb2   411648   2508799   2097152    1G Linux filesystem
/dev/sdb3  2508800 250068991 247560192  118G Linux LVM


Disk /dev/mapper/fedora-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-swap: 7.8 GiB, 8376025088 bytes, 16359424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-home: 60.2 GiB, 64684556288 bytes, 126337024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sdc: 119.3 GiB, 128043712512 bytes, 250085376 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdc1       32768 250085375 250052608 119.2G  7 HPFS/NTFS/exFAT
[justin@localhost test]$ 

In this case, the flash media I am looking for is 128GB, /dev/sdc is 119.3GB in size, right were formatted capacity would be for my drive. Lets mount it!

[justin@localhost ~]$ sudo mount -t exfat /dev/sdc1 /mnt/test/
FUSE exfat 1.2.8
[justin@localhost ~]$ cd /mnt/test/
[justin@localhost test]$ ls
DCIM

As you can see, my pictures folder can now be mounted whenever we want.

Adding this filesystem to the /etc/fstab is simple as well.

Open /etc/fstab and add your new drive mount

 /dev/mapper/fedora-root /                          ext4    defaults        1 1
 UUID=56bffdee-b5c0-4784-8ebd-5a4264373933 /boot    ext4    defaults        1 2
 UUID=B234-21AB          /boot/efi         vfat  umask=0077,shortname=winnt 0 2
/dev/mapper/fedora-home /home                       ext4    defaults        1 2
/dev/mapper/fedora-swap swap                        swap    defaults        0 0
#added drive below
/dev/sdc1               /mnt/test/                  exfat   defaults        0 0

and save it.

You should now be able to mount your drive by typing mount -a which means mount all file systems contained in /etc/fstab.