Using FAT

FAT is available in 16-bit and 32-bit versions, which are referred to as FAT16 and FAT32. FAT volumes use an allocation table to store information about disk space allocation.

File Allocation Table Structure

Disks formatted using FAT are organized as shown in Figure 20-1. They have a boot sector that stores information about the disk type, starting and ending sectors, the active partition, and a bootstrap program that executes at startup and boots the operating system. This is followed by a reserve area that can be one or more sectors in length.

An overview of FAT16 volume structure

Figure 20-1. An overview of FAT16 volume structure

The reserve area is followed by the primary file allocation table, which provides a reference table for the clusters on the volume. Each reference in the table relates to a specific cluster and defines the cluster's status as follows:

  • Available (unused)

  • In use (meaning it is being used by a file)

  • Bad (meaning it is marked as bad and won't be written to)

  • Reserved (meaning it is reserved for the operating system)

If a cluster is in use, the cluster entry identifies the number of the next cluster in the file or that it is the last cluster of a file, in which case the end of the file has been reached.

FAT volumes also have the following features:

  • Duplicate file allocation table, which provides a backup of the primary file allocation table and can be used to restore the file system if the primary file allocation table gets corrupted

  • Root directory table, which defines the starting cluster of each file in the file system

  • Data area, which stores the actual data for user files and folders

When an application attempts to read a file, the operating system looks up the starting cluster of the file in the root directory table and then uses the file allocation table to find and read all the clusters in the file.

Feature FAT16 FAT32

Although FAT supports basic file and folder operations, its features are rather limited. By using FAT, you have the following capabilities:

  • You can't control local access to files and folders using Microsoft Windows file and folder access permissions.

  • You can't use any advanced file system features of NTFS, including compression, encryption, disk quotas, and remote storage.

  • You can use Windows file sharing but have limited control over remote access to files and folders.

  • You can use long file names, meaning file and folder names containing up to 255 characters.

  • You can use FAT with floppy disks and removable disks.

  • You can use Unicode characters in file and folders names.

  • You can use upperand lowercase letters in file and folder names.

In addition, although FAT16 supports small cluster sizes, FAT32 does not. Table 20-2 provides a summary of FAT16 and FAT32.

Table 20-2. Comparison of FAT16 and FAT32 Features

Feature

FAT16

FAT32

File allocation table size

16-bit

32-bit

Minimum volume size

See following Inside Out sidebar

33 MB

Maximum volume size

4 GB; best at 2 GB or less

2 TB; limited in Windows Server 2003 to 32 GB

Maximum file size

2 GB

4 GB

Supports small cluster size

Yes

No

Supports NTFS features

No

No

Use on floppy disks

Yes

Yes

Use on removable disks

Yes

Yes

Note

While Windows Server 2003 can read to or write from FAT32 volumes as large as 2 TB, the operating system can only format FAT32 volumes up to 32 GB in size.

In FAT, disk sectors are 512 bytes. By default Windows Server 2003 sets the size of clusters and the number of sectors per cluster based on the size of the volume. Disk geometry also is a factor in determining cluster size because the number of clusters on the volume must fit into the number of bits used by the file system. The actual amount of data you can store on a single FAT volume is a factor of the maximum cluster size and the maximum number of clusters you can use per volume. This can be written out as a formula:

ClusterSize × MaximumNumberOfClusters = MaximumVolumeSize

FAT16 supports a maximum of 65,526 clusters and a maximum cluster size of 64 KB. This is where the limitation of 4 gigabytes (GB) for volume size comes from. With disks less that 32 MB but more than 16 MB in size, the cluster size is 512 bytes and there is one sector per cluster. This changes as the volume size increases up to the largest cluster size of 64 KB with 128 sectors per cluster on 2-GB to 4-GB volumes.

FAT32 volumes using 512-byte sectors can be up to 2 terabytes (TB) in size and can use clusters of up to 64 KB. To control the maximum number of clusters allowed, the Windows operating system reserves the upper 4 bits, however, limiting FAT32 to a maximum 28 bits worth of clusters. With a maximum recommended cluster size of 32 KB (instead of the maximum allowable 64 KB), this means a FAT32 volume on the Windows operating system can be up to 32 GB in size. Because the smallest cluster size allowed for FAT32 volumes is 512 bytes, the smallest FAT32 volume you can create is 33 MB.

Tip

FAT32 volumes of any size can be mounted

Windows Server 2003 does support mounting FAT32 volumes of up to the theoretical limit of 2 TB. This allows you to mount volumes larger than 32 GB that were created on other operating systems or by using third-party utilities.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset