SlideShare a Scribd company logo
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

File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
Lavanya Sharma
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
Anil Kumar Pugalia
 
Ch 6: Enumeration
Ch 6: EnumerationCh 6: Enumeration
Ch 6: Enumeration
Sam Bowne
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
Veeral Bhateja
 
Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentation
Ranjeet Kumar
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 
Memory management
Memory managementMemory management
Processing Crimes and Incident Scenes
Processing Crimes and Incident ScenesProcessing Crimes and Incident Scenes
Processing Crimes and Incident Scenes
primeteacher32
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
Santosh Khadsare
 
Operating system security
Operating system securityOperating system security
Operating system security
Ramesh Ogania
 
File system structure
File system structureFile system structure
File system structure
sangrampatil81
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentation
hamza haseeb
 
Linux commands
Linux commandsLinux commands
Linux commands
Mannu Khani
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding Scheme
Rajesh Piryani
 
Database security
Database securityDatabase security
Database security
Birju Tank
 
Fault tolerance and computing
Fault tolerance  and computingFault tolerance  and computing
Fault tolerance and computing
Palani murugan
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory Systems
Arush Nagpal
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
Dhaval Sakhiya
 
Intrusion detection system ppt
Intrusion detection system pptIntrusion detection system ppt
Intrusion detection system ppt
Sheetal Verma
 

What's hot (20)

File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Ch 6: Enumeration
Ch 6: EnumerationCh 6: Enumeration
Ch 6: Enumeration
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentation
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
 
Memory management
Memory managementMemory management
Memory management
 
Processing Crimes and Incident Scenes
Processing Crimes and Incident ScenesProcessing Crimes and Incident Scenes
Processing Crimes and Incident Scenes
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Operating system security
Operating system securityOperating system security
Operating system security
 
File system structure
File system structureFile system structure
File system structure
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentation
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding Scheme
 
Database security
Database securityDatabase security
Database security
 
Fault tolerance and computing
Fault tolerance  and computingFault tolerance  and computing
Fault tolerance and computing
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory Systems
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Intrusion detection system ppt
Intrusion detection system pptIntrusion detection system ppt
Intrusion detection system ppt
 

Similar to Fat File Systems

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
Harman 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 User
Harman 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 Table
Chinmaya M. N
 
File System
File SystemFile System
File System
Thayalan Danusan
 
File system
File systemFile system
File system
harleen_johal
 
File system
File systemFile system
File system
Harleen Johal
 
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
 
Os
OsOs
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
Meghaj Mallick
 
File System FAT And NTFS
File System FAT And NTFSFile System FAT And NTFS
File System FAT And NTFS
Inocentshuja Ahmad
 
NTFS.ppt
NTFS.pptNTFS.ppt
NTFS.ppt
jlmansilla
 
Mshd
MshdMshd
File and fat 2
File and fat 2File and fat 2
File and fat 2
Vimal Madhale
 
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
Lisa Liao
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
keshav546
 
Fat 32 file system
Fat 32 file systemFat 32 file system
Fat 32 file system
keshav546
 
File and fat
File and fatFile and fat
File and fat
Vimal Madhale
 
Introduction to filesystems and computer forensics
Introduction to filesystems and computer forensicsIntroduction to filesystems and computer forensics
Introduction to filesystems and computer forensics
Mayank Chaudhari
 
File system
File systemFile system
File system
kendersec
 
File Systems
File SystemsFile Systems
File Systems
kendersec
 

Similar to Fat File Systems (20)

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
 
File Systems
File SystemsFile Systems
File Systems
 

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.pdf
ArthyR3
 
VIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdfVIT336 – Recommender System - Unit 3.pdf
VIT336 – Recommender System - Unit 3.pdf
ArthyR3
 
OOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdfOOPs - JAVA Quick Reference.pdf
OOPs - JAVA Quick Reference.pdf
ArthyR3
 
NodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdf
ArthyR3
 
MongoDB.pdf
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR3
 
REACTJS.pdf
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
ArthyR3
 
ANGULARJS.pdf
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
ArthyR3
 
JQUERY.pdf
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR3
 
Qb it1301
Qb   it1301Qb   it1301
Qb it1301
ArthyR3
 
CNS - Unit v
CNS - Unit vCNS - Unit v
CNS - Unit v
ArthyR3
 
Cs8792 cns - unit v
Cs8792   cns - unit vCs8792   cns - unit v
Cs8792 cns - unit v
ArthyR3
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit iv
ArthyR3
 
Cs8792 cns - unit iv
Cs8792   cns - unit ivCs8792   cns - unit iv
Cs8792 cns - unit iv
ArthyR3
 
Cs8792 cns - unit i
Cs8792   cns - unit iCs8792   cns - unit i
Cs8792 cns - unit i
ArthyR3
 
Java quick reference
Java quick referenceJava quick reference
Java quick reference
ArthyR3
 
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 Workbook
ArthyR3
 
Cns
CnsCns
Cns
ArthyR3
 
Cs6701 cryptography and network security
Cs6701 cryptography and network securityCs6701 cryptography and network security
Cs6701 cryptography and network security
ArthyR3
 
Compiler question bank
Compiler question bankCompiler question bank
Compiler question bank
ArthyR3
 

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

一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
P5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civilP5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civil
AnasAhmadNoor
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
mahaffeycheryld
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
Kamal Acharya
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
MadhavJungKarki
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENTNATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
Addu25809
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
AlvianRamadhani5
 

Recently uploaded (20)

一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
P5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civilP5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civil
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENTNATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
 

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