ExFAT

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page ExFAT and the translation is 57% complete.
Other languages:


Resources

exFAT (Extended File Allocation Table) ist ein Microsoft Dateisystem, das für Flash-Speichermedien, wie USB-Sticks optimiert ist und für Gentoo-Linux-Systeme über ein FUSE-Modul verfügbar.

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]

Installation

Kernel

Kernel 5.7 and above

Enable exFAT support in the kernel:

KERNEL Enable support for CONFIG_EXFAT_FS
File systems  --->
   DOS/FAT/EXFAT/NT Filesystems  --->
      <*> exFAT filesystem support

FUSE system for earlier kernels

Stellen Sie sicher, dass die Unterstützung für Filesystem in Userspace (FUSE) im Kernel aktiviert ist:

KERNEL Unterstützung für CONFIG_FUSE_FS aktivieren
File systems  --->
   <*> FUSE (Filesystem in Userspace) support

Emerge

Kernel 5.7 and above

Install the sys-fs/exfatprogs package:

root #emerge --ask sys-fs/exfatprogs

FUSE system for earlier kernels

Installieren Sie das FUSE-exfat Paket:

root #emerge --ask sys-fs/fuse-exfat

Für die Erstellung und Manipulation von Dateisystemen, die über den Befehl mount hinausgehen, ist die Installation des Pakets sys-fs/exfat-utils erforderlich:

root #emerge --ask sys-fs/exfat-utils

Bedienung

Formatierung

Kernel 5.7 and above

To create an exFAT file system, use mkfs.exfat:

user $mkfs.exfat
exfatprogs 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/sde1

FUSE system for earlier kernels

Um ein exFAT-Dateisystem zu erstellen, verwenden Sie mkfs.exfat (oder den Befehl mkexfatfs, der gleichbedeutend ist):

user $mkfs.exfat
mkexfatfs 1.2.1
Usage: mkfs.exfat [-i volume-id] [-n label] [-p partition-first-sector] [-s sectors-per-cluster] [-V] <device>

Zum Beispiel, um es auf einem Wechseldatenträger unter /dev/sde1 zu erstellen und dabei "Flash" als Dateisystemlabel zu vergeben:

root #mkfs.exfat -n Flash /dev/sde1

Einhängen

Kernel 5.7 and above

With native support, standard mount commands work perfectly:

root #mount /dev/sde1 /mnt/flash

FUSE system for earlier kernels

Das Dateisystem kann dann mit dem Befehl mount.exfat-fuse eingehängt werden:

root #mount.exfat-fuse
FUSE exfat 1.0.1
Usage: mount.exfat-fuse [-d] [-o options] [-v] <device> <dir>

Um zum Beispiel das im obigen Beispiel erstellte Dateisystem einzuhängen:

root #mount.exfat-fuse /dev/sde1 /mnt/flash

Zum aushängen verwenden Sie einfach den Befehl umount:

root #umount /mnt/flash

Integritätsprüfung

Um die Integrität eines exFAT-Dateisystems zu überprüfen, verwenden Sie fsck.exfat:

root #fsck.exfat /dev/sde1

Troubleshooting

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.

Siehe auch

  • FATfilesystem originally created for use with MS-DOS (and later pre-NT Microsoft Windows).
  • NTFS — a proprietary disk filesystem by Microsoft for Windows and Windows-based operating systems.
  • Ext4 — ein quelloffenes Dateisystem und die neueste Version der Extended-Reihe von Dateisystemen

References