Structure File System
- FAT16
- FAT32
FAT32 is a derivative of the File Allocation Table (FAT) file system that supports drives with over 2GB of storage. Because FAT32 drives can contain more than 65,526 clusters, smaller clusters are used than on large FAT16 drives. This method results in more efficient space allocation on the FAT32 drive.
The largest possible file for a FAT32 drive is 4GB minus 2 bytes.
The FAT32 file system includes four bytes per cluster within the file allocation table. Note that the high 4 bits of the 32-bit values in the FAT32 file allocation table are reserved and are not part of the cluster number.
- THE FAT FILE SYSTEMS. FAT32 FAT16 FAT12
A volume formatted with the FAT file system is allocated in clusters. The default cluster size is determined by the size of the volume. For the FAT file system, the cluster number must fit in 16 bits and must be a power of two.
Structure of a FAT Volume
The figure below illustrates how the FAT file system organizes a volume
- NTFS
Master File Table and Metadata
When a volume is formatted with NTFS, a Master File Table (MFT) file and other pieces of metadata are created. Metadata are the files NTFS uses to implement the file system structure. NTFS reserves the first 16 records of the MFT for metadata files
The data segment locations for both $Mft and $MftMirr are recorded in the boot sector. If the first MFT record is corrupted, NTFS reads the second record to find the MFT mirror file. A duplicate of the boot sector is located at the end of the volum
Table 3.5 Metadata Stored in the Master File Table
System File | File Name | MFT Record | Purpose of the File |
---|---|---|---|
Master file table | $Mft | 0 | Contains one base file record for each file and directory on an NTFS volume. If the allocation information for a file or directory is too large to fit within a single record, other file records are allocated as well. |
Master file table 2 | $MftMirr | 1 | A duplicate image of the first four records of the MFT. This file guarantees access to the MFT in case of a single-sector failure. |
Log file | $LogFile | 2 | Contains a list of transaction steps used for NTFS recoverability. Log file size depends upon the volume size. It is used by Windows 2000 to restore consistency to NTFS in the event of a system failure. For more information about the log file, see "NTFS Recoverability" later in this chapter. |
Volume | $Volume | 3 | Contains information about the volume, such as the volume label and the volume version. |
Attribute definitions | $AttrDef | 4 | A table of attribute names, numbers, and descriptions. |
Root file name index | $ | 5 | The root directory. |
Cluster bitmap | $Bitmap | 6 | A representation of the volume showing which clusters are in use. |
Boot sector | $Boot | 7 | Includes the bootstrap for the volume if it is a bootable volume. |
Bad cluster file | $BadClus | 8 | Contains bad clusters for the volume. |
Security file | $Secure | 9 | Contains unique security descriptors for all files within a volume. |
Upcase table | $Upcase | 10 | Converts lowercase characters to matching Unicode uppercase characters. |
NTFS extension file | $Extend | 11 | Used for various optional extensions such as quotas, reparse point data, and object identifiers. |
12–15 | Reserved for future use. |
- EXT2
EXT2 defines the file system topology by providing the sense that every file on the system diasosiasiakan the inode data structure. A shows the block where the inode in afile on every file access rights, file modification time, and file type. Each file in the EXT2file system consists of a single inode and each inode has a unique identification number. Inode inode-stored in the file system inode table. Directory in the EXT2 filesystem is a special file that contains a pointer to the inode of each directory content
XT2 first developed and integrated in the Linux kernel, and is now also being developedfor use on other operating systems.
The goal is to create a powerful file system, which can implement those files from UNIXsemantics, and has an advanced service features.
- abilities:
Ext2 able to manage system files are created in a large partition.
Ext2 file system capable of generating file names are long. Maximum of 255 characters.
Ext2 require several blocks to super user (root).
- Ext3
Ext3 is a filesystem that was developed for use on the Linux operating system. Ext3 is the result of improvement of Ext2 Ext2 into better shape by adding a variety ofadvantages.
- Pros:
Things like this happen because the data is written or stored into a disk in a way so that the file system is always consistent.
The time required to recover EXT3 file system after the system is not cleaned off
Is independent of the size of the file system or file number, but depends on the size of the "journal" used to maintain consistency. Journal of the size of the initial (default)
Requires about 1 second to recover (depending on the speed of hardware).
- Ext2 and Ext3 comparison:
Method of accessing files, data security, and the use of disk space between the filesystem is almost the same.
The fundamental difference between the two file systems is the concept of journaling file system that is used in Ext3.
This led to the concept of journaling Ext2 and Ext3 have differences in terms of durabilityand data recovery from damage.
This led to the concept of journaling Ext3 Ext2 is much faster than the recovery of datadue to damage.
0 comments:
Post a Comment