Mounting exfat on linux

How to mount an exFAT drive on Linux

Question: I am trying to mount a USB flash drive which is formatted in exFAT on my Linux machine. But the mount command fails with the following error. How can I fix this error and mount the exFAT drive?

mount: /mnt: unknown filesystem type 'exfat'.

exFAT is a proprietary filesystem developed by Microsoft, which has been primarily used in Windows and many existing SD cards or USB drives. Compared to FAT32, exFAT offers many improvements in terms of file size limit (significant higher than FAT32’s 4GB limit), maximum disk size, maximum number of files, disk allocation performance, timestamp granularity, file name length, etc. Because of these enhancements and good compatibility with Windows and MacOS, exFAT has been used as a default filesystem for many existing high-capacity SD cards (e.g., SDXC) or USB flash drives.

On Linux, the support for exFAT has been available with a userspace implementation of exFAT filesystem, called fuse-exfat . The Linux kernel has incorporated native support for exFAT starting from version 5.4.

If you cannot mount an exFAT drive on your Linux system, this means that your kernel is lower than 5.4, and also that you do not have fuse-exfat installed.

In order to mount an exFAT drive on Linux with kernel lower than 5.4, you should install fuse-exfat on your Linux system as follows.

Install fuse-exfat on Linux

Install fuse-exfat on Ubuntu, Debian or Linux Mint

On Debian-based distributions, fuse-exfat is available as a package named exfat-fuse . Thus install exfat-fuse along with a set of exFAT utilities ( exfat-utils ):

$ sudo apt install exfat-fuse exfat-utils

Install fuse-exfat on CentOS 7

On CentOS 7, enable Nux Dextop and EPEL repositories, and then run:

$ sudo yum install fuse-exfat exfat-utils

Install fuse-exfat on CentOS 8

On CentOS 8, enable EPEL repository, and then use yum command:

$ sudo yum install fuse-exfat exfat-utils

Install fuse-exfat on Fedora

On Fedora, first enable rpmfusion-free repository, and then use the default package manager:

$ sudo dnf install fuse-exfat exfat-utils

Mount an exFAT Drive on Linux

After fuse-exfat is installed, you can go ahead and mount an exFAT drive using mount command. Here the exFAT drive is mapped to /dev/sda1 , and the drive is mounted to /mnt .

$ sudo mount -t exfat /dev/sda1 /mnt

Now verify that the mount is successful using mount and df commands:

/dev/sda1 on /mnt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda1 fuseblk 62482048 2432 62479616 1% /mnt

Mount an exFAT Drive as Non-root User

In the above, an exFAT drive is mounted as the root, which means only the root has read/write access to the drive. If you want to mount it as a regular unprivileged user, you can specify your uid and gid at the time you mount the drive as follows.

Читайте также:  Linux which analog windows

First, identify your uid and gid with:

uid=1001(alice) gid=1001(alice) groups=1001(alice),130(libvirt)

Then specify uid and gid with mount command:

$ sudo mount -o rw,users,uid=1001,gid=1001,dmask=007,fmask=117 /dev/sda1 /mnt

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Источник

Почему в Linux не открывается exFAT (РЕШЕНО)

Файловая система exFAT была представлена в 2006 году и была добавлена в более старые версии Windows с обновлениями для Windows XP и Windows Vista. exFAT оптимизирована для флэш-накопителей — она разработана для облегчённой файловой системы, такой как FAT32, но без дополнительных функций и дополнительных ресурсов NTFS и без ограничений FAT32.

Как и NTFS, exFAT имеет очень высокие ограничения на размеры файлов и разделов, что позволяет хранить файлы намного больше, чем 4 ГБ, разрешённые в FAT32.

Хотя exFAT не совсем совместим с FAT32, он более широко совместим, чем NTFS. В то время как Mac OS X поддерживает только NTFS только для чтения, Mac предоставляет полную поддержку чтения и записи для exFAT. Доступ к дискам exFAT в Linux можно получить, установив соответствующее программное обеспечение. PlayStation 4 поддерживает exFAT; PlayStation 3 нет. Xbox One поддерживает его, а Xbox 360 — нет.

Совместимость: Работает со всеми версиями Windows и современными версиями Mac OS X, но требует дополнительного программного обеспечения для Linux. Больше устройств поддерживают exFAT, чем NTFS, но некоторые, особенно старые, могут поддерживать только FAT32.

Ограничения: Можно сказать, что ограничений по размеру файлов или разделов нет.

Идеальное использование: используйте его, когда вам нужен больший размер файла, чем предлагает FAT32, и когда вам нужно больше совместимости, чем предлагает NTFS. Предполагая, что каждое устройство, с которым вы хотите использовать накопитель, поддерживает exFAT, вы должны отформатировать ваше устройство с exFAT вместо FAT32.

Читайте также:  Создать конфигурационный файл линукс

NTFS идеально подходит для внутренних накопителей, тогда как exFAT, как правило, идеально подходит для флэш-накопителей. Однако иногда вам может потребоваться отформатировать внешний диск в FAT32, если exFAT не поддерживается на устройстве, с которым вам необходимо его использовать.

Поддержка exFAT должна уже присутствовать на уровне ядра, но если у вас какие-то проблемы с данной файловой системой, то установите драйвер и пакет утилит, включающий программу-помощник монтирования.

Для установки в Debian, Linux Mint, Ubuntu, Kali Linux и их производные:

sudo apt install exfat-fuse exfat-utils

Для установки в Arch Linux и производные:

После установки пакета exfat-utils, если в вашей системе настроено автоматическое монтирование подключаемых карт памяти и дисков, система сама смонтирует носитель с файловой системой exFAT. Либо для ручного монтирования используйте команду mount как обычно:

sudo mount /dev/РАЗДЕЛ/ /ТОЧКА/МОНТИРОВАНИЯ/

Она, в свою очередь, воспользуется программами-помогателями /sbin/mount.exfat (/sbin/mount.exfat-fuse), но вам об этом не нужно заботиться — mount правильно определит файловую систему и смонтирует вашу карту памяти или флешку как надо.

Связанные статьи:

Источник

How to Mount and Use an exFAT Drive on Ubuntu Linux [Quick Tip]

Brief: This quick tutorial shows you how to enable exFAT file system support on Ubuntu and other Ubuntu-based Linux distributions. This way you won’t see any error while mounting exFAT drives on your system.

Problem mounting exFAT disk on Ubuntu

The other day, I tried to use an external USB key formatted in exFAT format that contained a file of around 10 GB in size. As soon as I plugged the USB key, my Ubuntu 16.04 throw an error complaining that it cannot mount unknown filesystem type ‘exfat’.

Fix exfat drive mount error on Ubuntu Linux

The exact error message was this:

Error mounting /dev/sdb1 at /media/abhishek/SHADI DATA: Command-line `mount -t “exfat” -o “uhelper=udisks2,nodev,nosuid,uid=1001,gid=1001,iocharset=utf8,namecase=0,errors=remount-ro,umask=0077” “/dev/sdb1” “/media/abhishek/SHADI DATA”‘ exited with non-zero exit status 32: mount: unknown filesystem type ‘exfat’

The reason behind this exFAT mount error

Microsoft’s favorite FAT file system is limited to files up to 4GB in size. You cannot transfer a file bigger than 4 GB in size to a FAT drive. To overcome the limitations of the FAT filesystem, Microsoft introduced exFAT file system in 2006.

As most of the Microsoft related stuff are proprietary, exFAT file format was no exception to that. Microsoft has been open sourcing few of its technologies and exFAT is one of them. The newly open sources exFAT file system will be supported in the upcoming Linux Kernel 5.4 release. You may check your Linux kernel version to make things sure.

But for Linux Kernel 5.3 and lower versions, it remains a proprietary software. Ubuntu and many other Linux distributions don’t provide the proprietary exFAT file support by default. This is the reason why you see the mount error with exFAT files.

Читайте также:  Astra linux apache2 отключить аутентификацию

Recommended Read:

Источник

How to mount an exFAT drive on Ubuntu

mount exfat drive ubuntu

E xtended File Allocation Table or exFAT is a Microsoft file system. The exFAT designed by Microsoft for the USB flash drives. The exFAT is used to replace the FAT32 old file system that was not able to store files that is greater than 4GB.

The exFAT is supported by recent versions of MAC and Windows operating systems. However, Ubuntu by default does not provide support for the exFAT filesystem.

So during this tutorial, we are going to cover how to mount and use an exFAT USB drive.

First, let’s assume that you need to mount an exFAT USB drive and check what will happen.

The exFAT USB Mounting Error

The exFAT USB Mounting Error

As you can see in the above screenshot, a mounting error appears telling you that there is an unknown filesystem. In the next few steps, we are going to help you fix this error.

Step 1. You have to make sure that the Universe repository is enabled on your Ubuntu machine using the next command.

sudo add-apt-repository universe

As you can see in the below screenshot, if the Universe repository is enabled you will get a message like this:

Ensure That The Universe Repository Is Enabled On Your Ubuntu System

Ensure That The Universe Repository Is Enabled On Your Ubuntu System

If it is not enabled the previous command will enable it.

Step 2. After enabling the Universe repository, update the Ubuntu packages index.

Update The Ubuntu Packages Index

Update The Ubuntu Packages Index

Step 3. Now you can install the required packages for mounting the exFAT file system using the following command.

sudo apt install exfat-fuse exfat-utils

Install The Required exFAT Packages

Install The Required exFAT Packages

Step 4. Finally, you can return to your file manager and click on your USB flash drive to mount it.

The exFAT USB Mounted Successfully

The exFAT USB Mounted Successfully

And voila, you have just enabled an exFAT filesystem on your Ubuntu machine. You can now start browsing your USB flash drive smoothly.

Mount exFAT Drives from the Terminal

For those who want to mount the exFAT drive by command-line via Terminal need to launch the Terminal and enter the following commands:

The first step is to create a directory that will be the “mount point” for the exFAT file system. We shall create a directory at /media/exfat:

Run the following command to mount the device.

sudo mount -t exfat /dev/sdb1 /media/exfat

In the above command, we are assuming that the device is located at /dev/sdb1.

UnMount exFAT Drives from the Terminal

To unmount the exFAT drive from your system, enter the following command in the Terminal:

Источник

Оцените статью
Adblock
detector