Lesson10 - FAT - FILE SYSTEM
Lesson10 - FAT - FILE SYSTEM
Computer Systems
File Allocation Table
• A special file that is used by the
operating system to store the physical
location of all the files on a storage
medium such as floppy disks or hard
disks.
• Like creating a table of contents
• Varies depending on the type of media
• It was developed by Bill Gates and Marc
McDonald during 1976–1977
How FAT stores data?
1–2 (GB) 32 KB 4 KB
2 - 4 (GB) 64 KB 4 KB
4 - 8 (GB) Not supported 4 KB
8 -16 (GB) Not supported 8 KB
16 –32 (GB) Not supported 16 KB
32 GB– 2TB Not supported Not supported
Cluster Size = Disk Space /
Number of Clusters Possible
FAT32
• Ex.
• A 20 KB file would require two 16 KB
clusters actually occupying 32 KB of
space. A mere 1 KB file still requires 16
KB of space.
• A typical large disk might have 30% or
even 40% of its space wasted in this
way
Problems with FAT
• with bigger disks is the large amount of
wasted space or “slack”
• Quick performance decrease with the
fragmentation going up.
• Difficulty in access to big files (more
than 10% of the disc space).
• Very slow work with directories
containing huge amount of files.
FAT32 Multiple Issues
• -windows systems can only format a drive
up to 32 GB. 2TB for some OS.
• - The maximum file size on a FAT32
formatted drive is around 4 GB.
• - Dealing with fragmentation and free disk
space calculations can become painfully
resource intensive in large FAT32 systems.
• - A FAT32 directory can have 65,536
directory entries.
NTFS
• New Technology File System
• Developer- Microsoft
• Developed last July, 1993 for Windows
NT 3.1
• Overcomes FAT system limitations
NTFS
• “Journaling” file system
– Keeps track of transaction performed
– “Rolls back” transactions if errors found
• Uses a Master File Table (MFT)
– Stores data about all files and directories
– Similar to database table with records
• Uses clusters
• Reserves blocks of space to allow the
MFT to grow
Connecting with Computer
23 Science, 2e
NTFS
• stores all objects in NTFS
Volume Size
the file system using Cluster Size
a record called the
7 -512 MB 512 bytes
Master File Table
(MFT),
513-1,024 MB 1 KB
1,025MB-2 GB 2 KB
2GB-2 terabytes 4 KB
NTFS Architecture
Organization of an NTFS Volume
ADVANTAGES of NTFS:
• NTFS is much more flexible than FAT.
Its system areas are almost all files
instead of the fixed structures used in
FAT.
• NTFS has much more security built in.
• supports both long and short file names
ADVANTAGES of NTFS:
• NTFS is much more flexible than FAT.
Its system areas are almost all files
instead of the fixed structures used in
FAT.
• NTFS has much more security built in.
• supports both long and short file names
ADVANTAGES of NTFS:
• File compression
• Encrypting File System (EFS)
• Volume Shadow Copy
• Disk quotas
Disadvantages of NTFS
• Large overhead
– Not recommended for volumes less than 4
GB
• Cannot access NTFS volumes from:
– MS-DOS
– Windows 95
– Windows 98
– Linux
Connecting with
Computer Science,
2e 30
LIMITATIONS of NTFS:
• High memory & processing ratings