From Gentoo Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

Other languages:

The File Allocation Table (FAT) filesystem was originally created for use with MS-DOS (and later pre-NT Microsoft Windows); currently a later revision of FAT (FAT32) is used for USB flash disks.[1] It has made its way over to Linux systems and has official support in the Linux kernel.



File systems  --->
   DOS/FAT/NT Filesystems  --->
      < > MSDOS fs support
      <*> VFAT (Windows-95) fs support
      (437) Default codepage for FAT
      (iso8859-1) Default iocharset for FAT
      [ ]   Enable FAT UTF-8 option by default
   -*- Native language support  --->
      (iso8859-1) Default NLS Option
      <*>   Codepage 437 (United States, Canada)
      <*>   NLS ISO 8859-1  (Latin 1; Western European Languages)
      -*-   NLS UTF-8

When planning on mounting FAT partitions, users may need to specify a codepage= option with mount. In the example above the codepage for the United States and Canada is used, however other codepages can be enabled a necessary. Optionally, users can also set a default codepage for FAT in the kernel configuration. Be sure each codepage value to be used is enabled in the Kernel.

Using the codepage option via the mount will override the settings used in the kernel.

Avoid setting Default iocharset for fat to UTF-8; it is not recommended. Instead, pass the utf8=true option when mounting FAT partitions (this requires CONFIG_NLS_UTF8 to be enabled in the kernel. For further information see man 8 mount or see the appropriate kernel documentation at /usr/src/linux/Documentation/filesystems/vfat.txt


The sys-fs/dosfstools package is needed for FAT userspace utilities:

root #emerge --ask sys-fs/dosfstools


It should be possible to mount FAT filesystems with the mount command. Resizing could be done using sys-fs/fatresize.


To schedule removal for the next depclean action:

root #emerge --ask --depclean --verbose sys-fs/dosfstools


Slow file transfer speeds

If file transfer speeds are slow, try remounting the filesystem with the flush mount option. flush can be a stark contrast to the sync mount option:

root #mount -o remount,flush /path/to/mountpoint

See also

External resources