From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page FAT and the translation is 52% complete.
Other languages:
English • ‎中文(中国大陆)‎ • ‎日本語

文件分配表 (FAT) 文件系统是最初创建为了在MS-DOS(和之后的NT 内核的微软Windows)使用;目前,最新版本的FAT (FAT32) 用于 U 盘。[1] 它已经过渡到了 Linux系统上,并获得 Linux 内核的官方支持。



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 --deselect 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


  • ext4 — 一个开源的磁盘文件系统并且是扩展系列文件系统的最新版本。 ext4 is the most popular Linux filesystem.
  • btrfs — 一个写入时复制(CoW) 的 Linux 文件系统 ,旨在实现高级功能的同时专注于容错、修复和易于管理。
  • filesystem — 意思是通过提供程序来储存、检索及更新数据来组织程序预期终止后要保留的数据,以及管理设备所包含的剩余空间。
  • mount — the attaching of an additional filesystem to the currently accessible filesystem of a computer.
  • removable media — consists of any media that is easily removed from a system
  • fstab — a configuration file that is used to configure how and where the main filesystems are to be mounted, especially at boot time.