Linux: unknown filesystem type ‘exfat’

Автор: | 30/03/2016
 

При подключении плеера (Ubuntu, Arch Linux) – попалась такая ошибка.

Находим диск:

$ dmesg | tail
[90606.865025] scsi host7: usb-storage 2-1.3:1.0
[90607.866517] scsi 7:0:0:0: Direct-Access     FiiO     X1 USB-DISK      0100 PQ: 0 ANSI: 0
[90607.867168] sd 7:0:0:0: Attached scsi generic sg2 type 0
[90607.867935] sd 7:0:0:0: [sdb] 125958144 512-byte logical blocks: (64.4 GB/60.0 GiB)
[90607.868549] sd 7:0:0:0: [sdb] Write Protect is off
[90607.868559] sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
[90607.869192] sd 7:0:0:0: [sdb] No Caching mode page found
[90607.869212] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[90607.880743]  sdb: sdb1
[90607.885093] sd 7:0:0:0: [sdb] Attached SCSI removable disk

Или:

$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 64.5 GB, 64490569728 bytes
255 heads, 63 sectors/track, 7840 cylinders, total 125958144 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
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1           32768   125958143    62962688    7  HPFS/NTFS/exFAT

Собственно – ошибка при монтировании:

$ sudo mount /dev/sdb1 /media/setevoy/
mount: unknown filesystem type 'exfat'

Ищем в пакетах:

$ apt-cache search exfat
exfat-fuse - read and write exFAT driver for FUSE
exfat-utils - utilities to create, check, label and dump exFAT filesystem

Читаем:

$ apt-cache show exfat-fuse
Package: exfat-fuse
...
Depends: libc6 (>= 2.14), libfuse2 (>= 2.8.1), fuse
Recommends: exfat-utils
...
Description-en: read and write exFAT driver for FUSE
 fuse-exfat is a read and write driver implementing
 the extended file allocation table as a filesystem in userspace.
 A mounthelper is provided unter the name mount.exfat-fuse.
...
Origin: Ubuntu

и:

$ apt-cache show exfat-utils
Package: exfat-utils
...
Depends: libc6 (>= 2.14)
Recommends: exfat-fuse
...
Description-en: utilities to create, check, label and dump exFAT filesystem
 Utilities to manage extended file allocation table filesystem.
 This package provides tools to create, check and label the
 filesystem. It contains
  - dumpexfat to dump properties of the filesystem
  - exfatfsck / fsck.exfat to report errors found on a exFAT filesystem
  - exfatlabel to label a exFAT filesystem
  - mkexfatfs / mkfs.exfat to create a exFAT filesystem.
...
Origin: Ubuntu

Устанавливаем:

$ sudo apt-get install exfat-fuse exfat-utils

Для Arch – с помощью pacman (exfat-fuse вклюён в exfat-utils):

$ sudo pacman -S exfat-utils

Монтируем:

$ sudo mount /dev/sdb1 /media/setevoy/
FUSE exfat 1.0.1

Проверяем:

$ ls -l /media/setevoy/ | head
total 6528
drwxr-xr-x 1 root root 131072 лис 30 07:51 Armin van Buuren
drwxr-xr-x 1 root root 131072 лис 18 07:34 Bad Religion
drwxr-xr-x 1 root root 131072 лис  7 22:39 Before The Dawn
drwxr-xr-x 1 root root 131072 лис  7 22:39 Billy Talent II (2006)
drwxr-xr-x 1 root root 131072 лис  7 22:40 Defenders Of Tanelorn
drwxr-xr-x 1 root root 131072 бер 14 19:52 DJ Bora
drwxr-xr-x 1 root root 131072 лис  7 22:41 Eluveitie
drwxr-xr-x 1 root root 131072 гру  6 21:44 Hozier-Hozier-CD-FLAC-2014-JLM
drwxr-xr-x 1 root root 131072 лис  7 22:41 INRE 001 Asura - (2000) Code Eternity

Готово.