ExFAT
exFAT (Extended File Allocation Table), system plików firmy Microsoft, zoptymalizowany dla pamięci flash takich jak zewnętrzna pamięć USB, jest dostępny dla systemów Gentoo Linux poprzez moduł FUSE.
The availability of the exFAT filesystem had long been poor, because of its proprietary, unpublished specification. The situation, however, was improved after release of Linux kernel 5.7 with native exFAT driver implementation.[1]
Instalacja
Kernel
Kernel 5.7 and above
Enable exFAT support in the kernel:
File systems --->
DOS/FAT/EXFAT/NT Filesystems --->
<*> exFAT filesystem support
FUSE system for earlier kernels
Upewnij się, że wsparcie dla systemu plików w przestrzeni użytkownika (FUSE) jest włączone w jądrze:
File systems --->
<*> FUSE (Filesystem in Userspace) support
Emerge
Kernel 5.7 and above
Install the sys-fs/exfatprogs package:
root #emerge --ask sys-fs/exfatprogsFUSE system for earlier kernels
Zainstaluj paczkę FUSE exfat:
root #emerge --ask sys-fs/fuse-exfatW celu tworzenia i manipulacji systemem plików (poza poleceniem mount) niezbędne jest zainstalowanie pakietu sys-fs/exfat-utils.
root #emerge --ask sys-fs/exfat-utilsObsługa
Formatowanie
Kernel 5.7 and above
To create an exFAT file system, use mkfs.exfat:
user $mkfs.exfatexfatprogs 1.0.4
Usage: mkfs.exfat
-L | --volume-label=label Set volume label
-c | --cluster-size=size(or suffixed by 'K' or 'M') Specify cluster size
-b | --boundary-align=size(or suffixed by 'K' or 'M') Specify boundary alignment
-f | --full-format Full format
-V | --version Show version
-v | --verbose Print debug
-h | --help Show help
For instance, to create it on a removable device present at /dev/sde1 while assigning "Flash" as the file system label:
root #mkfs.exfat -L Flash /dev/sde1FUSE system for earlier kernels
By stworzyć system plików exFAT, użyj mkfs.exfat (lub komendę mkexfatfs, która jest równoznaczna):
root #mkfs.exfatmkexfatfs 1.2.1 Usage: mkfs.exfat [-i volume-id] [-n label] [-p partition-first-sector] [-s sectors-per-cluster] [-V] <device>
Dla przykładu, aby utworzyć powyższy system plików na urządzeniu przenośnym, dostępnym pod ścieżką /dev/sde1 jednocześnie przypisując "Flash" jako etykietę systemu plików:
root #mkfs.exfat -n Flash /dev/sde1Montowanie
Kernel 5.7 and above
With native support, standard mount commands work perfectly:
root #mount /dev/sde1 /mnt/flashFUSE system for earlier kernels
System plików może być następnie zamontowany przy pomocy komendy mount.exfat-fuse:
root #mount.exfat-fuseFUSE exfat 1.0.1 Usage: mount.exfat-fuse [-d] [-o options] [-v] <device> <dir>
Przykładowo, aby zamontować system plików stworzony w powyższym przykładzie:
root #mount.exfat-fuse /dev/sde1 /mnt/flashBy odmontować, po prostu użyj komendy umount:
root #umount /mnt/flashSprawdzanie integralności
By sprawdzić integralność systemu plików exFAT, użyj fsck.exfat:
root #fsck.exfat /dev/sde1Troubleshooting
Compatibility with macOS
To allow ExFAT formatted disks to be read by macOS, the disk must use a GUID partition table, and have the Microsoft basic data flag set.
