Format:exFAT
| On this wiki | Facts · Code · Notes · Topics |
|---|
Microsoft's FAT successor for flash media (SDXC cards, USB sticks): a boot sector with OEM name "EXFAT " and 64-bit volume fields, an allocation bitmap, an up-case table and directory entry sets (file 0x85, stream 0xC0, name 0xC1) in 32-byte slots.
Overview
exFAT keeps the FAT idea (cluster chains, cluster numbers from 2) but adds an allocation bitmap, so files flagged NoFatChain are contiguous and need no FAT walk. The volume starts with a boot region of main and backup sectors; the root directory holds the bitmap, up-case table and volume label entries. Identify it by the OEM name "EXFAT " at offset 3 followed by 53 zero bytes (the area where a FAT BPB would be), not by the MBR type id 0x07, which NTFS shares. Compare Format:FAT (FAT12, FAT16, FAT32, VFAT) and Format:NTFS.
Boot sector
Linux struct boot_sector (offsets computed): jump 0x00 (3), file system name "EXFAT " 0x03 (8), must-be-zero 0x0B (53 bytes), partition offset 0x40 (u64), volume length in sectors 0x48 (u64), FAT offset 0x50 (u32, sectors), FAT length 0x54, cluster heap offset 0x58, cluster count 0x5C, root directory first cluster 0x60, volume serial 0x64, revision 0x68 (2 bytes), volume flags 0x6A, bytes-per-sector shift 0x6C, sectors-per-cluster shift 0x6D, number of FATs 0x6E, drive select 0x6F, percent in use 0x70, reserved 7, boot code 390 bytes, signature 0xAA55 at 0x1FE. Sector size is 2^9 to 2^12; cluster size is at most 32 MiB (shift sum 25). Volume flags: 0x0002 dirty, 0x0004 media failure.
Directory entries
Every entry is 32 bytes and its first byte is the type; values below 0x80 are deleted (in-use bit clear), 0x00 ends the directory. Primary entries: 0x81 allocation bitmap, 0x82 up-case table, 0x83 volume label, 0x85 file/directory. Secondary entries: 0xC0 stream extension, 0xC1 file name (15 UTF-16 characters each). Others: 0xA0 volume GUID, 0xA1 padding, 0xA2 ACL table, 0xC2 ACL, 0xE0 vendor extension, 0xE1 vendor allocation. A file is a set: 0x85 (secondary count, 16-bit set checksum, attributes, created/modified/accessed times with 10 ms and timezone bytes), then 0xC0 (flags where bit 0 = allocation possible and bit 1 = NoFatChain, name length, name hash, valid data length, first cluster, data length), then the 0xC1 name entries. Maximum name 255 characters; the Linux limit is 8388608 entries per directory.
Reserved cluster values
Free 0, bad 0xFFFFFFF7, end of chain 0xFFFFFFFF; highest usable cluster count 0xFFFFFFF5 in the Linux driver.
Analyst notes
- Timestamps are FAT-style (2-second date/time words) plus a centisecond byte and a UTC offset byte whose bit 7 means valid; range 1980 to 2107.
- Deleted entries only clear the in-use bit, so names often remain recoverable until reused.
- Unverified: the boot region checksum sector and the up-case table checksum algorithms (Linux checksum code and Microsoft's published exFAT specification were not read for this page).
Sources
Linux fs/exfat/exfat_raw.h at c03c1a14 (GPL-2.0).
Code & repositories
- https://github.com/torvalds/linux @
c03c1a14507dfaf8b856c2608f9ac216021fc222· license: GPL-2.0-only WITH Linux-syscall-note (declared by the contributor for the files used; GitHub reports GPL-2.0 WITH Linux-syscall-note (read from COPYING; GitHub's detector did not classify it) for the repository)
Linux kernel; fs/fat, include/uapi/linux/msdos_fs.h and fs/exfat/exfat_raw.h are the on-disk structure declarations used here.
Tested on: source read, not run: source read only · checked 2026-10-19; last activity 2026-10-18