SlideShare a Scribd company logo
1 of 10
Download to read offline
DEPARTMENT OF INFORMATION TECHNOLOGY
Subject Code : CS6004 Staff Name : R. Arthy, AP/IT
Subject Name: Cyber Forensics Class : IV IT
FILE ALLOCATION SYSTEM (FAT)
Introduction
 FAT x – File Allocation Table – family of file systems for DOS/Windows operating
systems
o FAT table – stores info. on status of all clusters on the disk = ‘table of content’
o x = 12, 16, 32 – number of bits used for cluster identification/numbering
 bit-size of each FAT table entry
 Example
 Example: FAT16 capacity
Can 700 MB disk drive be formatted with a FAT16 file system using 4KB clusters?
FAT16 ⇒ 216
= 65536 clusters
216
clusters * 4 Kbytes = 26
* 210
* 4 * 210
bytes
max capacity = 64 * 4 MB = 256 MB
 In Microsoft file structures, sectors are grouped to form clusters
o Storage allocation units of one or more sectors
 Clusters range from 512 bytes up to 32,000 bytes each
 Combining sectors minimizes the overhead of writing or reading files to a disk
 Clusters are numbered sequentially starting at 0 in NTFS and 2 in FAT
o First sector of all disks contains a system area, the boot record, and a file
structure database
 OS assigns these cluster numbers, called logical addresses
 Sector numbers are called physical addresses
 Clusters and their addresses are specific to a logical disk drive, which is a disk
partition
Major Section
1) Boot Sector – occupies the 1st cluster on the disk
 Contains specific information about organization of the file system, including: type
of FAT (12/16/32) system,
o # of bytes per sector,
o # of sectors per track,
o # of sectors per cluster,
o # of read heads,
o # of FAT tables,
o # of clusters per FAT table, etc.
2) FAT Tables
 keep track of allocation status of different data clusters
o entry N relates to data cluster N – the actual value is a pointer to another FAT
entry
o set of clusters that constitute one file are defined by a set of linked FAT entries
 multiple FATs (FAT1 & FAT2) ensure redundancy in case of data corruption – FAT2
is a backup of FAT 1
o typically used on portable (more vulnerable) media
Example: Use of FAT system
 FAT entry values
3) Root Directory (FAT12/16 only)
 stores Directory Table – table of 32-byte long entries for each file & directory created
on the disk
4) Data Area
 contains file & directory data – occupies remaining sectors (clusters) on the disk
 first cluster of Data Area is numbered 2; though, this is physical sector 33!
Example: (Root) Directory Table entries in bytes
Example: File fragmentation / cluster allocation in FAT
Example: Final Exam 2010
 Assume a computer employs the FAT16 file system with components as shown
below:
o A file, containing a set of numbers, is stored on this computer under the name
YourFile.txt.
o Using the provided information, identify the first six numbers stored in
YourFile.txt.
Disk Partitions
 A partition is a logical drive
 Windows OSs can have three primary partitions followed by an extended partition
that can contain one or more logical drives
 Hidden partitions or voids
o Large unused gaps between partitions on a disk
 Partition gap
o Unused space between partitions
 The partition table is in the Master Boot Record (MBR)
o Located at sector 0 of the disk drive
 MBR stores information about partitions on a disk and their locations, size, and
other important items
 In a hexadecimal editor, such as WinHex, you can find the first partition at offset
0x1BE
o The file system’s hexadecimal code is offset 3 bytes from 0x1BE for the
first partition
Examining FAT Disks
 File Allocation Table (FAT)
o File structure database that Microsoft originally designed for floppy disks
 FAT database is typically written to a disk’s outermost track and contains:
o Filenames, directory names, date and time stamps, the starting cluster
number, and file attributes
 Three current FAT versions
o FAT16, FAT32, and exFAT (used by Xbox game systems)
 Cluster sizes vary according to the hard disk size and file system
 Microsoft OSs allocate disk space for files by clusters
o Results in drive slack
 Unused space in a cluster between the end of an active file and the end of the cluster
 Drive slack includes:
o RAM slack and file slack
 An unintentional side effect of FAT16 having large clusters was that it reduced
fragmentation
o As cluster size increased
 When you run out of room for an allocated cluster
o OS allocates another cluster for your file, which creates more slack space on
the disk
 As files grow and require more disk space, assigned clusters are chained together
o The chain can be broken or fragmented
 When the OS stores data in a FAT file system, it assigns a starting cluster position to
a file
 Slack Space in FAT
o phenomenon caused by the way how computers store data/files:
 files are allocated cluster-sized chunks
 regardless of the actual size of data in the file data may not be
big enough to fill (all) segments, i.e. clusters
 sector slack - space between EOF and end of last sector that file was written to known
as RAM slack as OS pulls any info available in RAM at that point (memory dump) to
fill this space – e.g. logon IDs, passwords, segments of other files
 cluster slack - remaining sectors in cluster known as file slack – contains whatever
was last written by disk in those sectors (e.g. parts of a deleted file)
Data for the file is written to the first sector of the first assigned cluster
 When this first assigned cluster is filled and runs out of room
o FAT assigns the next available cluster to the file
 If the next available cluster isn’t contiguous to the current cluster
o File becomes fragmented
Deleting FAT Files
 In Microsoft OSs, when a file is deleted
o Directory entry is marked as a deleted file
 With the HEX E5 character replacing the first letter of the filename
 FAT chain for that file is set to 0
 Data in the file remains on the disk drive
 Area of the disk where the deleted file resides becomes unallocated disk space
o Available to receive new data from newly created files or other files needing
more space

More Related Content

What's hot (20)

Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Introduction to Ubuntu
Introduction to UbuntuIntroduction to Ubuntu
Introduction to Ubuntu
 
File system Os
File system OsFile system Os
File system Os
 
Windows registry forensics
Windows registry forensicsWindows registry forensics
Windows registry forensics
 
File management
File managementFile management
File management
 
File management
File managementFile management
File management
 
NTFS vs FAT
NTFS vs FATNTFS vs FAT
NTFS vs FAT
 
Utility software
Utility softwareUtility software
Utility software
 
File system hiearchy
File system hiearchyFile system hiearchy
File system hiearchy
 
File system
File systemFile system
File system
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Bios
BiosBios
Bios
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
 
FAT vs NTFS
FAT vs NTFSFAT vs NTFS
FAT vs NTFS
 
File management
File managementFile management
File management
 
File Management
File ManagementFile Management
File Management
 
Types and components of computers
Types and components of computersTypes and components of computers
Types and components of computers
 

Similar to Fat File Systems

File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tablesshashikant pabari
 
File System, Dual Boot, Addon Components, Create User
File System, Dual Boot, Addon Components, Create UserFile System, Dual Boot, Addon Components, Create User
File System, Dual Boot, Addon Components, Create UserHarman Gahir
 
File system, dual boot, addon components, create user
File system, dual boot, addon components, create userFile system, dual boot, addon components, create user
File system, dual boot, addon components, create userHarman Gahir
 
File Access & File System & File Allocation Table
File Access & File System & File Allocation TableFile Access & File System & File Allocation Table
File Access & File System & File Allocation TableChinmaya M. N
 
OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)Chinmaya M. N
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMeghaj Mallick
 
How to convert file system without data loss
How to convert file system without data lossHow to convert file system without data loss
How to convert file system without data lossLisa Liao
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file systemkeshav546
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file systemkeshav546
 
Introduction to filesystems and computer forensics
Introduction to filesystems and computer forensicsIntroduction to filesystems and computer forensics
Introduction to filesystems and computer forensicsMayank Chaudhari
 

Similar to Fat File Systems (20)

File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
 
File System, Dual Boot, Addon Components, Create User
File System, Dual Boot, Addon Components, Create UserFile System, Dual Boot, Addon Components, Create User
File System, Dual Boot, Addon Components, Create User
 
File system, dual boot, addon components, create user
File system, dual boot, addon components, create userFile system, dual boot, addon components, create user
File system, dual boot, addon components, create user
 
File Access & File System & File Allocation Table
File Access & File System & File Allocation TableFile Access & File System & File Allocation Table
File Access & File System & File Allocation Table
 
File System
File SystemFile System
File System
 
File system
File systemFile system
File system
 
File system
File systemFile system
File system
 
OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)
 
Os
OsOs
Os
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating System
 
File System FAT And NTFS
File System FAT And NTFSFile System FAT And NTFS
File System FAT And NTFS
 
NTFS.ppt
NTFS.pptNTFS.ppt
NTFS.ppt
 
Mshd
MshdMshd
Mshd
 
File and fat 2
File and fat 2File and fat 2
File and fat 2
 
How to convert file system without data loss
How to convert file system without data lossHow to convert file system without data loss
How to convert file system without data loss
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
 
File and fat
File and fatFile and fat
File and fat
 
Introduction to filesystems and computer forensics
Introduction to filesystems and computer forensicsIntroduction to filesystems and computer forensics
Introduction to filesystems and computer forensics
 
File system
File systemFile system
File system
 

More from ArthyR3

Unit IV Knowledge and Hybrid Recommendation System.pdf
Unit IV Knowledge and Hybrid Recommendation System.pdfUnit IV Knowledge and Hybrid Recommendation System.pdf
Unit IV Knowledge and Hybrid Recommendation System.pdfArthyR3
 
VIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdfVIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdfArthyR3
 
OOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdfOOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdfArthyR3
 
NodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfArthyR3
 
MongoDB.pdf
MongoDB.pdfMongoDB.pdf
MongoDB.pdfArthyR3
 
REACTJS.pdf
REACTJS.pdfREACTJS.pdf
REACTJS.pdfArthyR3
 
ANGULARJS.pdf
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdfArthyR3
 
JQUERY.pdf
JQUERY.pdfJQUERY.pdf
JQUERY.pdfArthyR3
 
Qb it1301
Qb   it1301Qb   it1301
Qb it1301ArthyR3
 
CNS - Unit v
CNS - Unit vCNS - Unit v
CNS - Unit vArthyR3
 
Cs8792 cns - unit v
Cs8792   cns - unit vCs8792   cns - unit v
Cs8792 cns - unit vArthyR3
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit ivArthyR3
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit ivArthyR3
 
Cs8792 cns - unit i
Cs8792   cns - unit iCs8792   cns - unit i
Cs8792 cns - unit iArthyR3
 
Java quick reference
Java quick referenceJava quick reference
Java quick referenceArthyR3
 
Cs8792 cns - Public key cryptosystem (Unit III)
Cs8792   cns - Public key cryptosystem (Unit III)Cs8792   cns - Public key cryptosystem (Unit III)
Cs8792 cns - Public key cryptosystem (Unit III)ArthyR3
 
Cryptography Workbook
Cryptography WorkbookCryptography Workbook
Cryptography WorkbookArthyR3
 
Cs6701 cryptography and network security
Cs6701 cryptography and network securityCs6701 cryptography and network security
Cs6701 cryptography and network securityArthyR3
 
Compiler question bank
Compiler question bankCompiler question bank
Compiler question bankArthyR3
 

More from ArthyR3 (20)

Unit IV Knowledge and Hybrid Recommendation System.pdf
Unit IV Knowledge and Hybrid Recommendation System.pdfUnit IV Knowledge and Hybrid Recommendation System.pdf
Unit IV Knowledge and Hybrid Recommendation System.pdf
 
VIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdfVIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdf
 
OOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdfOOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdf
 
NodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdf
 
MongoDB.pdf
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
 
REACTJS.pdf
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
 
ANGULARJS.pdf
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
 
JQUERY.pdf
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
 
Qb it1301
Qb   it1301Qb   it1301
Qb it1301
 
CNS - Unit v
CNS - Unit vCNS - Unit v
CNS - Unit v
 
Cs8792 cns - unit v
Cs8792   cns - unit vCs8792   cns - unit v
Cs8792 cns - unit v
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit iv
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit iv
 
Cs8792 cns - unit i
Cs8792   cns - unit iCs8792   cns - unit i
Cs8792 cns - unit i
 
Java quick reference
Java quick referenceJava quick reference
Java quick reference
 
Cs8792 cns - Public key cryptosystem (Unit III)
Cs8792   cns - Public key cryptosystem (Unit III)Cs8792   cns - Public key cryptosystem (Unit III)
Cs8792 cns - Public key cryptosystem (Unit III)
 
Cryptography Workbook
Cryptography WorkbookCryptography Workbook
Cryptography Workbook
 
Cns
CnsCns
Cns
 
Cs6701 cryptography and network security
Cs6701 cryptography and network securityCs6701 cryptography and network security
Cs6701 cryptography and network security
 
Compiler question bank
Compiler question bankCompiler question bank
Compiler question bank
 

Recently uploaded

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 

Recently uploaded (20)

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 

Fat File Systems

  • 1. DEPARTMENT OF INFORMATION TECHNOLOGY Subject Code : CS6004 Staff Name : R. Arthy, AP/IT Subject Name: Cyber Forensics Class : IV IT FILE ALLOCATION SYSTEM (FAT) Introduction  FAT x – File Allocation Table – family of file systems for DOS/Windows operating systems o FAT table – stores info. on status of all clusters on the disk = ‘table of content’ o x = 12, 16, 32 – number of bits used for cluster identification/numbering  bit-size of each FAT table entry  Example
  • 2.  Example: FAT16 capacity Can 700 MB disk drive be formatted with a FAT16 file system using 4KB clusters? FAT16 ⇒ 216 = 65536 clusters 216 clusters * 4 Kbytes = 26 * 210 * 4 * 210 bytes max capacity = 64 * 4 MB = 256 MB  In Microsoft file structures, sectors are grouped to form clusters o Storage allocation units of one or more sectors  Clusters range from 512 bytes up to 32,000 bytes each  Combining sectors minimizes the overhead of writing or reading files to a disk  Clusters are numbered sequentially starting at 0 in NTFS and 2 in FAT o First sector of all disks contains a system area, the boot record, and a file structure database  OS assigns these cluster numbers, called logical addresses  Sector numbers are called physical addresses  Clusters and their addresses are specific to a logical disk drive, which is a disk partition Major Section 1) Boot Sector – occupies the 1st cluster on the disk  Contains specific information about organization of the file system, including: type of FAT (12/16/32) system, o # of bytes per sector, o # of sectors per track, o # of sectors per cluster, o # of read heads,
  • 3. o # of FAT tables, o # of clusters per FAT table, etc. 2) FAT Tables  keep track of allocation status of different data clusters o entry N relates to data cluster N – the actual value is a pointer to another FAT entry o set of clusters that constitute one file are defined by a set of linked FAT entries  multiple FATs (FAT1 & FAT2) ensure redundancy in case of data corruption – FAT2 is a backup of FAT 1 o typically used on portable (more vulnerable) media Example: Use of FAT system
  • 4.  FAT entry values 3) Root Directory (FAT12/16 only)  stores Directory Table – table of 32-byte long entries for each file & directory created on the disk 4) Data Area  contains file & directory data – occupies remaining sectors (clusters) on the disk  first cluster of Data Area is numbered 2; though, this is physical sector 33!
  • 5. Example: (Root) Directory Table entries in bytes Example: File fragmentation / cluster allocation in FAT Example: Final Exam 2010  Assume a computer employs the FAT16 file system with components as shown below:
  • 6. o A file, containing a set of numbers, is stored on this computer under the name YourFile.txt. o Using the provided information, identify the first six numbers stored in YourFile.txt. Disk Partitions  A partition is a logical drive  Windows OSs can have three primary partitions followed by an extended partition that can contain one or more logical drives  Hidden partitions or voids o Large unused gaps between partitions on a disk  Partition gap o Unused space between partitions
  • 7.  The partition table is in the Master Boot Record (MBR) o Located at sector 0 of the disk drive  MBR stores information about partitions on a disk and their locations, size, and other important items  In a hexadecimal editor, such as WinHex, you can find the first partition at offset 0x1BE o The file system’s hexadecimal code is offset 3 bytes from 0x1BE for the first partition Examining FAT Disks  File Allocation Table (FAT) o File structure database that Microsoft originally designed for floppy disks  FAT database is typically written to a disk’s outermost track and contains: o Filenames, directory names, date and time stamps, the starting cluster number, and file attributes
  • 8.  Three current FAT versions o FAT16, FAT32, and exFAT (used by Xbox game systems)  Cluster sizes vary according to the hard disk size and file system  Microsoft OSs allocate disk space for files by clusters o Results in drive slack  Unused space in a cluster between the end of an active file and the end of the cluster  Drive slack includes: o RAM slack and file slack  An unintentional side effect of FAT16 having large clusters was that it reduced fragmentation o As cluster size increased  When you run out of room for an allocated cluster o OS allocates another cluster for your file, which creates more slack space on the disk  As files grow and require more disk space, assigned clusters are chained together o The chain can be broken or fragmented  When the OS stores data in a FAT file system, it assigns a starting cluster position to a file
  • 9.  Slack Space in FAT o phenomenon caused by the way how computers store data/files:  files are allocated cluster-sized chunks  regardless of the actual size of data in the file data may not be big enough to fill (all) segments, i.e. clusters  sector slack - space between EOF and end of last sector that file was written to known as RAM slack as OS pulls any info available in RAM at that point (memory dump) to fill this space – e.g. logon IDs, passwords, segments of other files  cluster slack - remaining sectors in cluster known as file slack – contains whatever was last written by disk in those sectors (e.g. parts of a deleted file) Data for the file is written to the first sector of the first assigned cluster  When this first assigned cluster is filled and runs out of room o FAT assigns the next available cluster to the file  If the next available cluster isn’t contiguous to the current cluster o File becomes fragmented Deleting FAT Files  In Microsoft OSs, when a file is deleted o Directory entry is marked as a deleted file  With the HEX E5 character replacing the first letter of the filename
  • 10.  FAT chain for that file is set to 0  Data in the file remains on the disk drive  Area of the disk where the deleted file resides becomes unallocated disk space o Available to receive new data from newly created files or other files needing more space