
© Jean Louis-Guérin – V1.2a – September 2014 Page 52 / 69
The table of partitions has four 16-byte structures to describe each partition:
Partition entry locations
0x80 = bootable (active),
0x00 = non-bootable,
other = invalid
CHS address of first sector in partition (next 3 bytes):
Head
Sector is in bits 5–0; bits 9–8 of Cylinder are in bits 7–6
bits 7–0 of Cylinder
CHS address of last sector in partition (next 3 bytes):
Head
Sector is in bits 5–0; bits 9–8 of Cylinder are in bits 7–6
bits 7–0 of Cylinder
LBA of first sector in the partition, in little-endian format
Number of sector in partition, in little-endian format
10.4 DOS/FAT Primary Partition
A primary partition contains one FAT file system. The “partition type” code for a primary partition
describes the type of the file system. The FAT file systems have made use of quite a number of
partition type codes over time due to the limits of various DOS and Windows OS versions. Please refer
to FAT Partition Type and Size for a short summary of partition types useful in the context of the Atari
platform.
The following is an overview of the order of the structures in a primary FAT file system partition:
FS Information
Sector (FAT32
only)
More
reserved
sectors
(optional)
Root
Directory
(FAT12/16 only)
Data Region (for files and
directories) ...
(To end of partition or
disk)
(number of reserved sectors)
(number of FATs) *
(sectors per FAT)
(number of root entries
* 32) / Bytes per sector
NumberOfClusters *
SectorsPerCluster
A FAT file system is therefore composed of these four sections:
The Boot sectors region, located at the very beginning of the partition: The first reserved sector
(logical sector 0) is the Boot Sector. It includes an area called the BIOS Parameter Block (with
some basic file system information, in particular its type, and pointers to the location of the other
sections) and usually it contains the operating system's boot loader code. The total count of
reserved sectors is indicated by a field inside the Boot Sector. Important information from the
Boot Sector is accessible through a DOS structure called the BIOS Parameter Block (BPB). For
FAT32 file systems, the reserved sectors include a File System Information Sector, usually at
sector 1, and a Backup Boot Sector, usually at Sector 6. The exact location of these two sectors
is specified in the Extended FAT32 BPB.
The FAT region: This typically contains two copies (may vary) of the File Allocation Table for the
sake of redundancy checking, although the extra copy is rarely used, even by disk repair utilities.
These are maps of the Data region, indicating which clusters are used by files and directories.
The Root Directory region: This is the Directory Table that stores information about the files and
directories located in the Root Directory. It imposes on the Root Directory a fixed maximum size
which is pre-allocated at creation of this volume.
The Data region: This is where the actual file and directory data is stored and takes up most of the
partition. The size of files and subdirectories can be increased arbitrarily (as long as there are free
clusters) by simply adding more links to the file's chain in the FAT
Comentários a estes Manuais