![]() Kevin Clements |
Welcome To: KevinClements.com Kevin Clements provides valuable information and resource listings for those interested in learning more about today's technology issues especially web development. |
|
Learn
About |
FAT, HPFS and NTFS Summary What does FAT, HPFS, and NTFS mean. These are all terms for various File System structures used typically under Microsoft Operating System products and Linux. File Allocation Table (FAT) Overview FAT is by far the most simplistic of the file systems supported by Microsoft products. The FAT file system is characterized by the file allocation table (FAT), which is really a table that resides at the very "top" of the volume. To protect the volume, two copies of the FAT are kept in case one becomes damaged. In addition, the FAT tables and the root directory must be stored in a fixed location so that the system's boot files can be correctly located. A disk formatted with FAT is allocated in clusters, whose size are determined by the size of the volume. When a file is created, an entry is created in the directory and the first cluster number containing data is established. This entry in the FAT table either indicates that this is the last cluster of the file, or points to the next cluster. Updating the FAT table is very important as well as time consuming. If the FAT table is not regularly updated, it can lead to data loss. It is time consuming because the disk read heads must be repositioned to the drive's logical track zero each time the FAT table is updated. There is no organization to the FAT directory structure, and files are given the first open location on the drive. In addition, FAT supports only read-only, hidden, system, and archive file attributes. The FAT32 file system is only supported in the Windows 98/95 and Windows 2000. FAT Naming
Convention . " / \ [ ] : ; | = , If any of these characters are used, unexpected results may occur. The name cannot contain any spaces. The following names are reserved: CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL All characters will be converted to uppercase. Advantages
of FAT Disadvantages
of FAT FAT partitions are limited in size to a maximum of 4 Gigabytes (GB) under Windows NT and 2 GB in MS-DOS. For additional information on this limitation, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q118335 TITLE : Maximum Partition Size in MS-DOS
The HPFS file system was first introduced with OS/2 1.2 to allow for greater access to the larger hard drives that were then appearing on the market. Additionally, it was necessary for a new file system to extend the naming system, organization, and security for the growing demands of the network server market. HPFS maintains the directory organization of FAT, but adds automatic sorting of the directory based on filenames. Filenames are extended to up to 254 double byte characters. HPFS also allows a file to be composed of "data" and special attributes to allow for increased flexibility in terms of supporting other naming conventions and security. In addition, the unit of allocation is changed from clusters to physical sectors (512 bytes), which reduces lost disk space. Under HPFS, directory entries hold more information than under FAT. As well as the attribute file, this includes information about the modification, creation, and access date and times. Instead of pointing to the first cluster of the file, the directory entries under HPFS point to the FNODE. The FNODE can contain the file's data, or pointers that may point to the file's data or to other structures that will eventually point to the file's data. HPFS attempts to allocate as much of a file in contiguous sectors as possible. This is done in order to increase speed when doing sequential processing of a file. HPFS organizes a drive into a series of 8 MB bands, and whenever possible a file is contained within one of these bands. Between each of these bands are 2K allocation bitmaps, which keep track of which sectors within a band have and have not been allocated. Banding increases performance because the drive head does not have to return to the logical top (typically cylinder 0) of the disk, but to the nearest band allocation bitmap to determine where a file is to be stored. Additionally, HPFS includes a couple of unique special data objects: Super Block Spare Block Hot fixing is a technique where if an error occurs because of a bad sector, the file system moves the information to a different sector and marks the original sector as bad. This is all done transparent to any applications that are performing disk I/O (that is, the application never knows that there were any problems with the hard drive). Using a file system that supports hot fixing will eliminate error messages such as the FAT "Abort, Retry, or Fail?" error message that occurs when a bad sector is encountered. Note: The version of HPFS that is included with Windows NT does not support hot fixing. Advantages
of HPFS http://www.cs.wisc.edu/~bolo/shipyard/hpfs.html
HPFS is only supported under Windows NT versions 3.1, 3.5, and 3.51. Windows NT 4.0 cannot access HPFS partitions. For additional disadvantages of HPFS, see the following: http://www.cs.wisc.edu/~bolo/shipyard/hpfs.html
From a user's point of view, NTFS continues to organize files into directories, which, like HPFS, are sorted. However, unlike FAT or HPFS, there are no "special" objects on the disk and there is no dependence on the underlying hardware, such as 512 byte sectors. In addition, there are no special locations on the disk, such as FAT tables or HPFS Super Blocks. The goals of NTFS are to provide: * Reliability, which is especially desirable for high end systems and file servers
NTFS is a recoverable file system because it keeps track of transactions against the file system. When a CHKDSK is performed on FAT or HPFS, the consistency of pointers within the directory, allocation, and file tables is being checked. Under NTFS, a log of transactions against these components is maintained so that CHKDSK need only roll back transactions to the last commit point in order to recover consistency within the file system. Under FAT or HPFS, if a sector that is the location of one of the file system's special objects fails, then a single sector failure will occur. NTFS avoids this in two ways: first, by not using special objects on the disk and tracking and protecting all objects that are on the disk. Secondly, under NTFS, multiple copies (the number depends on the volume size) of the Master File Table are kept. Similar to OS/2 versions of HPFS, NTFS supports hot fixing. Added Functionality POSIX Support Case Sensitive Naming: Under POSIX, README.TXT, Readme.txt, and readme.txt are all different files. Additional Time Stamp: The additional time stamp supplies the time at which the file was last accessed. Hard Links: A hard link is when two different filenames, which can be located in different directories, point to the same data. Removing Limitations Advantages
of NTFS The recoverability designed into NTFS is such that a user should never have to run any sort of disk repair utility on an NTFS partition. For additional advantages of NTFS, see the following: A File System for the 21st Century: Previewing the Windows NT 5.0 File System
Currently, there is no file encryption built into NTFS. Therefore, someone can boot under MS-DOS, or another operating system, and use a low-level disk editing utility to view data stored on an NTFS volume. It is not possible to format a floppy disk with the NTFS file system; Windows NT formats all floppy disks with the FAT file system because the overhead involved in NTFS will not fit onto a floppy disk. NTFS Naming Conventions
? " / \ < > * | : Currently, from the command line, you can only create file names of up to 253 characters. NOTE : Underlying hardware
limitations may impose additional partition size limitations in
any file system. Particularly, a boot partition can be only 7.8
GB in size, and there is a 2-terabyte limitation in the partition
table. Want more information on this subject? Follow these links: Server Dynamic Hardware Partitioning: Overview How to Use the Fdisk Tool and the Format Tool How to partition and format a hard disk in Windows XP How to Use Convert.exe to Convert a Partition to the NTFS File System |
Resources/links |
These links are solely for information purposes only. I do not recommend one product over another.
Copyright © 2002-2008 Kevin Clements