Microsoft KB Archive/140365

= Default cluster size for FAT and NTFS =

Article ID: 140365

Article Last Modified on 8/22/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition

-



This article was previously published under Q140365





SUMMARY
All file systems used by Windows organize your hard disk based upon cluster (or allocation unit) size, which represents the smallest amount of disk space which can be allocated to hold a file. So when file sizes do not come out to an even multiple of the cluster size, extra space must be used to hold the file (up to the next multiple of the cluster size). On the typical partition, this means that (cluster size)/2 * (number of files) worth of space is lost this way.

If no cluster size is specified during format, NTFS picks defaults based upon the size of the partition. These defaults have been selected to reduce the amount of space lost and to reduce the amount of fragmentation on the partition.



MORE INFORMATION
The following default values are used by Windows NT 3.51 and later when a volume is formatted to NTFS via one of the following methods:
 * 1) Using the FORMAT command from the command line without specifying a cluster size.
 * 2) Formatting a volume from Windows Explorer when Allocation Unit box in the format dialog lists "Default Allocation Size".

The maximum default cluster size under Windows NT 3.51 and later is 4K due to the fact that NTFS file compression is not possible on drives with a larger allocation size. So format will never use larger than 4k clusters unless the user specifically overrides the defaults by using the /A: switch (for command line format) or by specifying a larger cluster size in the format dialog in Windows Explorer.

As versions of Windows NT earlier than 3.51 do not support NTFS file compression, the default cluster sizes will go above 4k. For Windows NT 3.50 and earlier, the following addition to the above table applies:

When you are using the Convert.exe utility to convert to NTFS, Windows always uses a 512-byte cluster size. This is due to the fact that the FAT structures are aligned on 512 byte boundaries, so any larger cluster size would not allow the conversion to function. Note also when formatting a partition under Windows Setup, the partition is first formatted to FAT and then converted to NTFS, so the cluster size will also always be 512 bytes when a partition is formated in Setup.

Note This only applies to Windows NT 3.5, 3.51, and 4.0. It does not apply to Windows 2000 Setup, which formats the partition using the file system you choose.

The FAT file system uses the following cluster sizes. These sizes the same under Microsoft Windows NT, Microsoft MS-DOS, Microsoft Windows 95 and any other operating system that supports FAT:   Drive Size          FAT Type   Sectors       Cluster (logical volume)              Per Cluster   Size -     ---   ---   0 MB - 15 MB        12-bit     8             4K 16 MB - 127 MB     16-bit     4             2K 128 MB - 255 MB    16-bit     8             4K 256 MB - 511 MB    16-bit     16            8K 512 MB - 1023 MB   16-bit     32            16K 1024 MB - 2048 MB  16-bit     64            32K 2048 MB - 4096 MB  16-bit     128           64K *4096 MB - 8192 MB 16-bit     256           128K  NT V4.0 only *8192 MB - 16384 MB 16-bit    512           256K  NT V4.0 only To support > 4GB FAT partitions using 128k or 256k clusters, the drives must use > 512 byte sectors.

Note On very small FAT partitions, a 12-bit FAT is used instead of a 16-bit FAT. The FAT files system only supports 512 byte sectors, so both the sectors per cluster and the cluster size is fixed.

The following table describes the default cluster sizes for Windows 2000 file system volumes:

The following table describes the default NTFS cluster sizes for Windows Server 2003 file system volumes:

The following table describes the default FAT cluster sizes for Windows Server 2003 file system volumes:

For more information about how NTFS works, visit the following Microsoft Web site:

http://technet2.microsoft.com/WindowsServer/en/library/8cc5891d-bf8e-4164-862d-dac5418c59481033.mspx?mfr=true

For more information about how FAT works, visit the following Microsoft Web site:

http://technet2.microsoft.com/WindowsServer/en/library/50cd4ffc-1389-423d-9d02-1a898b2eb39f1033.mspx?mfr=true

For more information about file systems, visit the following Microsoft Web site:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/prork/prdf_fls_zkxi.mspx

Additional query words: prodnt

Keywords: kbinfo kbother KB140365

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.