451

When trying to mount an exfat filesystem, I get the following error:

Error mounting /dev/sda6 at /media/gkp/Backup: Command-line 
`mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/gkp/Backup"' 
exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'

Exfat is used on some USB sticks and camera sd cards. What can I do to mount this type of filesystem?

wjandrea
  • 14,109
  • 4
  • 48
  • 98
Ganesh
  • 4,519
  • 2
  • 12
  • 3
  • 3
    Please provide the version of Ubuntu you are using. As you can see there is more than 1 answer for Ubuntu. – Rinzwind Oct 23 '13 at 10:26
  • 1
    see also http://askubuntu.com/a/85459/20972 (esp. for 13.10) – rogerdpack Dec 14 '13 at 16:30
  • ubuntu 14.04 is doing this. – SDsolar Jun 27 '17 at 00:36
  • In my case, I had to also add the universe repository: `sudo add-apt-repository universe` `sudo apt-get update` – Ben Creasy Apr 17 '18 at 03:19
  • 1
    Possible duplicate of [How to get a drive formatted with exfat working?](https://askubuntu.com/questions/370398/how-to-get-a-drive-formatted-with-exfat-working) – Melebius May 29 '19 at 07:09
  • Ran into this today on Debian (bookworm/sid, 5.15.5-1) and noted suspicious error in /var/log/mesages: `Jan 4 15:36:57 fractal kernel: [18438.261624] failed to validate module [exfat] BTF: -22` – jacobq Jan 04 '22 at 21:40

2 Answers2

660

You get this error because the exfat filesystem is not installed in Ubuntu by default. exFAT is proprietary and patented by Microsoft.

Ubuntu 13.10 or higher

Since Ubuntu 13.10, this package is in the main repository. Just install exfat-fuse and exfat-utils:

sudo apt update && sudo apt install exfat-fuse exfat-utils

Ubuntu 12.04

For ubuntu 13.04 and lower, you'll need a ppa to install the exfat support. Installation procedure:

sudo apt-add-repository ppa:relan/exfat
sudo apt-get update
sudo apt-get install fuse-exfat

If you see the error gpg: "tag:launchpad.net:2008:redacted" not a key ID: skipping during the apt-add-repository step, then you'll need to manually install the signing key and run the apt-get update and apt-get install steps after that:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4DF9B28CA252A784

​​​​​​

cocomac
  • 3,043
  • 3
  • 16
  • 49
Blanca Higgins
  • 1
  • 1
  • 11
  • 14
2

As of November 25, 2019, this does not work yet in Ubuntu 19.10 Eoan, probably because apt just cannot grab exfat-fuse. I fixed this problem by downloading exfat-fuse deb directly. This is after installing a dependency.

kana
  • 191
  • 1
  • 13
  • This worked, thankyou! – JMK Dec 02 '19 at 18:04
  • 2
    As of Dec 11, it does seem to fetch `exfat-fuse` properly. – pspahn Dec 11 '19 at 23:49
  • Ubuntu 20.04 installing `exfat-fuse` and `exfat-utils` works. Yet I have this error `FUSE exfat 1.3.0 ERROR: failed to read boot sector.` – Pierre ALBARÈDE Nov 02 '20 at 22:40
  • This is either because your device wasn't set up correctly, or could also be because your exfat device is somehow 'not good' e.g. corrupt, full, or physically malfunctioning. Try with another device you've worked with before and if that works then try remake the failed device – kana Nov 03 '20 at 00:51
  • Upgraded to 20.10, installed `exfatprogs`. Mounting works randomly. Moreover, if the card is inserted directly (is SD slot of Macbookpro), it is always read-only. If it is connected through a card reader, write is possible. – Pierre ALBARÈDE Nov 05 '20 at 21:00
  • I would bet on this being a firmware related issue unrelated to the question, it sounds like your device is supported partially on different platforms – kana Nov 05 '20 at 22:24
  • I'm seeing something like it in Debian Bullseye although it worked in Buster. Somebody's screwing around with something again and breaking things. I have exfat-fuse and exfatprogs. Taking my card to a different box to read it. – Alan Corey Feb 16 '21 at 17:08
  • On a Raspberry Pi with Buster the same card and reader worked fine. It's the card from my better Nikon, I use it fairly often. – Alan Corey Feb 16 '21 at 17:40