Chapter 20. Managing Windows Server 2003 File Systems

The previous chapter discussed storage management, which primarily focuses on storage technologies and techniques for configuring storage. As discussed in that chapter, disks can be apportioned in many ways but ultimately must be formatted with a particular file system. The file system provides the environment for working with files and folders. Microsoft Windows Server 2003 provides two basic file system types: File Allocation Table (FAT) and NTFS file system (NTFS). These file systems are discussed in this chapter.

Understanding Disk and File System Structure

The basic unit of storage is a disk. Regardless of the partition style or disk type, Windows Server 2003 reads data from disks and writes data to disks using the disk input/output (I/O) subsystem. The I/O subsystem understands the physical and logical structures of disks, which allows it to perform read and write operations. The basic physical structure of a disk includes:

  • Platters

  • Cylinders

  • Tracks

  • Clusters

  • Sectors

Each disk has one or more platters. Platters are the physical media from which data is read and to which data is written. The disk head travels in a circular path over the platter. This circular path is called a track. Tracks are magnetically encoded when you format a disk. Tracks that reside in the same location on each platter form a cylinder. For example, if a disk has four platters, Cylinder 1 consists of Track 1 from all four platters.

Tracks are divided into sectors. Sectors represent a subsection within a track and are made up of individual bytes. The number of sectors in a track depends on the disk type and the location of the track on the platter. Tracks closer to the outside of the platter can have more sectors than tracks near the center of the platter.

When you format a disk with a file system, the file system structures the disk using clusters, which are logical groupings of sectors. Both FAT and NTFS use a fixed sector size of 512 bytes but allow the cluster size to be variable. For example, the cluster size might be 4096 bytes, and if there are 512 bytes per sector, each cluster is made up of eight sectors. Table 20-1 provides a summary of the default cluster sizes for FAT, FAT32, and NTFS. You have the option of specifying the cluster size when you create a file system on a disk, or you can accept the default cluster size setting. Either way, the cluster sizes available depend on the type of file system you are using.

Table 20-1. Default Cluster Sizes for FAT16, FAT32, and NTFS

Volume Size

 

Cluster Size

 
 

FAT16

FAT32

NTFS

7 MB to 16 MB

2 KB

Not supported

512 bytes

17 MB to 32 MB

512 bytes

Not supported

512 bytes

33 MB to 64 MB

1 KB

512 bytes

512 bytes

65 MB to 128 MB

2 KB

1 KB

512 bytes

129 MB to 256 MB

4 KB

2 KB

512 bytes

257 MB to 512 MB

8 KB

4 KB

512 bytes

513 MB to 1024 MB

16 KB

4 KB

1 KB

1025 MB to 2 GB

32 KB

4 KB

2 KB

2 GB to 4 GB

64 KB

4 KB

4 KB

4 GB to 8 GB

Not supported

4 KB

4 KB

8 GB to 16 GB

Not supported

8 KB

4 KB

16 GB to 32 GB

Not supported

16 KB

4 KB

32 GB to 2 TB

Not supported

Not supported

4 KB

Tip

Three Different FAT File Systems

There are actually three FAT file systems used by Windows platforms: FAT12, FAT16, and FAT32. The difference between them is the number of bits used for entries in their file allocation tables, namely 12, 16, or 32 bits. From a user's perspective, the main difference in these file systems is the theoretical maximum volume size, which is 16 MB for a FAT12 volume, 4 GB for FAT16, and 2 TB for FAT32. When the term FAT is used without an appended number, however, it always refers to FAT16.

The important thing to know about clusters is that they are the smallest unit in which disk space is allocated. Each cluster can hold one file at most. So, if you create a 1-kilobyte (KB) file and the cluster size is 4 KB, there will be 3 KB of empty space in the cluster that isn't available to other files. That's just the way it is. If a single cluster isn't big enough to hold an entire file, then the remaining file data will go into the next available cluster and the next until the file is completely stored. For FAT, for example, the first cluster used by the file has a pointer to the second cluster, and the second cluster has a pointer to the next, and so on until you get to the final cluster used by the file, which has an End Of File (EOF) marker.

While the disk I/O subsystem manages the physical structure of disks, Windows Server 2003 manages the logical disk structure at the file system level. The logical structure of a disk relates to the basic or dynamic volumes you create on a disk and the file systems with which those volumes are formatted. You can format both basic volumes and dynamic volumes using FAT or NTFS. As discussed in the next section, each file system type has a different structure, and there are advantages and disadvantages of each as well.

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

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