Article ID: 314875 - Last Review: December 1, 2007 - Revision: 1.4 The Free Space That Is Required to Convert FAT to NTFSThis article was previously published under Q314875 On This PageSUMMARY
This article provides a description of the process that Convert.exe uses to convert a disk partition from file allocation table (FAT) to the NTFS file system. The article also discusses the space that is required for conversion.
MORE INFORMATION
The conversion of a disk partition from FAT to NTFS requires a certain amount of free disk space for building the NTFS disk structures. FAT and NTFS use very different on-disk structures to represent the allocation of space for files. These structures are often referred to as "metadata" or "file system overhead."
FAT and NTFS OverheadFAT metadata consists of a boot sector, one or more file allocation tables, a root directory structure of fixed size, and a variable amount of space for each subdirectory. The space for each subdirectory is related to the number of files that are in the subdirectory.Another kind of overhead is associated with both FAT and NTFS. Both file systems allocate disk space in clusters of a fixed size. The exact size of these allocation units or clusters is determined at format time, and the defaults are dependent on the size of the volume. On volumes of similar size, the default cluster size for NTFS is smaller than the default cluster size for FAT. Because space for file data can be allocated only in whole cluster amounts, even a 1-byte file uses a whole cluster's worth of disk space on a FAT volume. (Space usage issues for NTFS are similar but slightly more complicated, and those issues are not covered in detail in this article.) Like FAT, the NTFS file system has a certain amount of fixed-size overhead and a certain amount of per-file overhead. NTFS also has several advanced features, including recoverability, security, and support for very large volumes. Because of these advanced features, the NTFS metadata overhead is somewhat larger than the FAT metadata overhead. On the other hand, because NTFS cluster overhead is smaller than FAT cluster overhead, it is often possible to store at least as much on an NTFS volume as on a FAT volume, even without using NTFS file compression. The Conversion ProcessTo guard against corruption that can be caused by failure during conversion, the Convert.exe utility must build the NTFS metadata by using only the space that the FAT file system considers to be free space. That way, if the conversion does not succeed, the FAT representation of the user files is still valid.A complicating factor for this strategy is that one sector of NTFS data must occupy a specific location on the disk, and a very limited number of other structures must occupy adjacent sectors. In the conversion process, Convert.exe performs these tasks:
Almost all of the writes are to free FAT space, so failure preserves the FAT intact. The only times when Convert.exe writes to space that is not free--that is, the times at which a failure can cause problems--are:
The Computation ProcessBefore starting the conversion process, Convert.exe performs a computation to figure out how much free space is required, based on the number of preexisting files on the FAT volume and on the size of the volume. For standard hardware (a hard drive that has 512 bytes per sector), the computation is done like this:
The computation that is described closely approximates the computation that Convert.exe performs. The exact result on any given system may differ slightly. The computation yields the amount of free space that Convert.exe requires before attempting a conversion. The computation includes an allowance for the possibility of encountering bad sectors in the free space in the FAT volume. If a volume has just enough free space to begin the conversion, and if a significant fraction of drive space is discovered to be unusable, the conversion process may fail. However, because the design is for the volume to automatically fall back to being recognized as FAT, failure does not necessarily produce any disk corruption. Special ConsiderationsIf you use the Convert.exe command, be aware of these considerations:
| Article Translations
|
Back to the top
