SlideShare a Scribd company logo
1 of 12
Fileย SystemsFileย Systems
David MartรญnezDavid Martรญnez
Content
๎€Š Physically, what is a HD like?
๎€Š The HD for the OS
๎€Š Why do I need a FS?
๎€Š FS structure in Windows
๎€Š FS structure in Unix
๎€Š Other FS
๎€Š Journalling
Physically, what is a HD like?
๎€Š Little exercise
(Floppy)
๎€Š 2 heads
๎€Š 80 cylinders
๎€Š 18 sectors
๎€Š 512 bytes/sector
The HD for the OS
๎€Š MBR โ€“ Master Boot Record
๎€Š Bootloader
๎€Š Partition table
๎€Š Partitions* (limited to 4 primary)
๎€Š File System: many, not only for HDs
๎€Š Clusters/Blocks (performance)
๎€Š Driver to transform physical address to logical
Why do I need a FS?
๎€Š To set a structure for the data (files,
directories...)
๎€Š Metadata (name, modification date, owner...)
๎€Š Set a permissions system
๎€Š Data integrity (damaged sectors)
๎€Š Links
๎€Š The clusters in which a file is saved (they might
not be contiguous)
๎€Š ...
FS structure in Windows
๎€Š Boot Record โ€“ contains information about the different
areas
๎€Š FAT โ€“ File Allocation Table
๎€Š One entry for each block in the data area
Boot
Record
FAT
Optional
Duplicate
FAT
Data Blocks
๎€Š The FAT family FS
FS structure in Unix
๎€Š Superblock*: stores the size, number of files, free space,
index of the next free inode...
๎€Š i-node list: holds one entry for each file or directory where
to save metadata, inode type, locking and modification
flags...
๎€Š Data blocks: keeps the data of the files pointed by the
inodes.
Superblock i-node list Data blocks
๎€Š The Ext family FS
FS structure in Unix
๎€Š The Ext family FS
๎€Š Buffer cache
๎€Š Syncer
๎€Š 13 entries per inode
๎€Š The first 10 direct
๎€Š 11ยบ indirect simple
๎€Š 12ยบ indirect double
๎€Š 13ยบ indirect triple
๎€Š If the block size is 1KB
๎€Š Files of 16TB
Other FS
๎€Š Special FS
๎€Š Swap
๎€Š ProcFS / SysFS
๎€Š DevFS
๎€Š TmpFS
๎€Š UnionFS
๎€Š In Unix everything is a file
Journalling
๎€Š Avoid corruption
๎€Š Write log before commit
๎€Š Before journalling
๎€Š Guessing work with โ€œfsckโ€
๎€Š For ext3, two ways of mounting the partition
๎€Š Async: uses journalling and it's faster
๎€Š Sync: old system without journalling, makes
changes straight to the disk
Journalling
๎€Š Ordered (default)
๎€Š Only log of Metadata
๎€Š Data written to the disc before writing the log
๎€Š Writeback
๎€Š Only log of Metadata
๎€Š Data written to the disc after or before writing the log
๎€Š Journal
๎€Š Log of Metadata and Data
๎€Š First write the log then the disc
๎€Š Slower but the most secure
Resources
๎€Š http://en.wikipedia.org
๎€Š http://users.iafrica.com/c/cq/cquirke/fat.htm
๎€Š http://hebb.cis.uoguelph.ca/~dave/CIS275/Lect
ures/file7.html
๎€Š Old notes

More Related Content

What's hot

File System FAT And NTFS
File System FAT And NTFSFile System FAT And NTFS
File System FAT And NTFSInocentshuja Ahmad
ย 
File and fat 2
File and fat 2File and fat 2
File and fat 2Vimal Madhale
ย 
Fat and ntfs
Fat and ntfsFat and ntfs
Fat and ntfsLucky Ali
ย 
File system Os
File system OsFile system Os
File system OsNehal Naik
ย 
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 and fat
File and fatFile and fat
File and fatVimal Madhale
ย 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xpashubhardwaj03
ย 
Xfs file system for linux
Xfs file system for linuxXfs file system for linux
Xfs file system for linuxAjay Sood
ย 
File System Hierarchy
File System HierarchyFile System Hierarchy
File System Hierarchysritolia
ย 
Difference between ntfs and fat32
Difference between ntfs and fat32Difference between ntfs and fat32
Difference between ntfs and fat32proser tech
ย 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System ImplementationWayne Jones Jnr
ย 
File Management
File ManagementFile Management
File ManagementDiane Coyle
ย 
Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System ManagementRaja Waseem Akhtar
ย 
File management
File managementFile management
File managementMohd Arif
ย 

What's hot (18)

Linux course fhs file hierarchy standard
Linux   course   fhs file hierarchy standardLinux   course   fhs file hierarchy standard
Linux course fhs file hierarchy standard
ย 
File System FAT And NTFS
File System FAT And NTFSFile System FAT And NTFS
File System FAT And NTFS
ย 
File and fat 2
File and fat 2File and fat 2
File and fat 2
ย 
Fat and ntfs
Fat and ntfsFat and ntfs
Fat and ntfs
ย 
File system Os
File system OsFile system Os
File system Os
ย 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
ย 
File and fat
File and fatFile and fat
File and fat
ย 
FAT vs NTFS
FAT vs NTFSFAT vs NTFS
FAT vs NTFS
ย 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xp
ย 
File system
File systemFile system
File system
ย 
Xfs file system for linux
Xfs file system for linuxXfs file system for linux
Xfs file system for linux
ย 
File System Hierarchy
File System HierarchyFile System Hierarchy
File System Hierarchy
ย 
Difference between ntfs and fat32
Difference between ntfs and fat32Difference between ntfs and fat32
Difference between ntfs and fat32
ย 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
ย 
File Management
File ManagementFile Management
File Management
ย 
Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System Management
ย 
OSCh12
OSCh12OSCh12
OSCh12
ย 
File management
File managementFile management
File management
ย 

Viewers also liked

Coda file system
Coda file systemCoda file system
Coda file systemSneh Pahilwani
ย 
Coda file system tahir
Coda file system   tahirCoda file system   tahir
Coda file system tahirMohammad Faizan
ย 
1 04 rao
1 04 rao1 04 rao
1 04 raodimitar9
ย 
Kernel development
Kernel developmentKernel development
Kernel developmentNuno Martins
ย 
Kernel Recipes 2016 - New hwmon device registration API - Jean Delvare
Kernel Recipes 2016 -  New hwmon device registration API - Jean DelvareKernel Recipes 2016 -  New hwmon device registration API - Jean Delvare
Kernel Recipes 2016 - New hwmon device registration API - Jean DelvareAnne Nicolas
ย 
Virtual file system (VFS)
Virtual file system (VFS)Virtual file system (VFS)
Virtual file system (VFS)Waylin Ch
ย 
Part 03 File System Implementation in Linux
Part 03 File System Implementation in LinuxPart 03 File System Implementation in Linux
Part 03 File System Implementation in LinuxTushar B Kute
ย 
Linux Vfs
Linux VfsLinux Vfs
Linux VfsMeiri Lerner
ย 
4. linux file systems
4. linux file systems4. linux file systems
4. linux file systemsMarian Marinov
ย 
Disk scheduling
Disk schedulingDisk scheduling
Disk schedulingniralim40
ย 
Mobile agent
Mobile agent Mobile agent
Mobile agent Anjan Mondal
ย 
Lect12
Lect12Lect12
Lect12Vin Voro
ย 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1Amir Payberah
ย 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory ManagementAnil Kumar Pugalia
ย 
Data management issues
Data management issuesData management issues
Data management issuesNeha Bansal
ย 

Viewers also liked (19)

Coda file system
Coda file systemCoda file system
Coda file system
ย 
Coda file system tahir
Coda file system   tahirCoda file system   tahir
Coda file system tahir
ย 
1 04 rao
1 04 rao1 04 rao
1 04 rao
ย 
Kernel development
Kernel developmentKernel development
Kernel development
ย 
Kernel Recipes 2016 - New hwmon device registration API - Jean Delvare
Kernel Recipes 2016 -  New hwmon device registration API - Jean DelvareKernel Recipes 2016 -  New hwmon device registration API - Jean Delvare
Kernel Recipes 2016 - New hwmon device registration API - Jean Delvare
ย 
Virtual file system (VFS)
Virtual file system (VFS)Virtual file system (VFS)
Virtual file system (VFS)
ย 
Vfs
VfsVfs
Vfs
ย 
Part 03 File System Implementation in Linux
Part 03 File System Implementation in LinuxPart 03 File System Implementation in Linux
Part 03 File System Implementation in Linux
ย 
Linux Vfs
Linux VfsLinux Vfs
Linux Vfs
ย 
4. linux file systems
4. linux file systems4. linux file systems
4. linux file systems
ย 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
ย 
Mobile agent
Mobile agent Mobile agent
Mobile agent
ย 
Lect12
Lect12Lect12
Lect12
ย 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1
ย 
Mobile ip
Mobile ipMobile ip
Mobile ip
ย 
File System Modules
File System ModulesFile System Modules
File System Modules
ย 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
ย 
Linux File System
Linux File SystemLinux File System
Linux File System
ย 
Data management issues
Data management issuesData management issues
Data management issues
ย 

Similar to File system

File system
File systemFile system
File systemharleen_johal
ย 
File system
File systemFile system
File systemHarleen Johal
ย 
File system
File systemFile system
File systemHarleen Johal
ย 
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
ย 
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
ย 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
ย 
Operating System
Operating SystemOperating System
Operating SystemVijayaPriya14
ย 
009709863.pdf
009709863.pdf009709863.pdf
009709863.pdfKalsoomTahir2
ย 
Seminar 1
Seminar 1Seminar 1
Seminar 1Ahmad Amin
ย 
NTFS file system
NTFS file systemNTFS file system
NTFS file systemRavi Yasas
ย 
filesystem-120405093921-phpapp02 (1).pdf
filesystem-120405093921-phpapp02 (1).pdffilesystem-120405093921-phpapp02 (1).pdf
filesystem-120405093921-phpapp02 (1).pdfTESTFALTU
ย 
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
ย 
Booy Up
Booy UpBooy Up
Booy Upboyelectron
ย 
XFS.ppt
XFS.pptXFS.ppt
XFS.pptDmitryIg
ย 
Distributed File System
Distributed File SystemDistributed File System
Distributed File SystemNtu
ย 
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
ย 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems Dhaivat Zala
ย 

Similar to File system (20)

File system
File systemFile system
File system
ย 
File system
File systemFile system
File system
ย 
File system
File systemFile system
File system
ย 
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
ย 
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
ย 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
ย 
Operating System
Operating SystemOperating System
Operating System
ย 
009709863.pdf
009709863.pdf009709863.pdf
009709863.pdf
ย 
Seminar 1
Seminar 1Seminar 1
Seminar 1
ย 
NTFS file system
NTFS file systemNTFS file system
NTFS file system
ย 
Ch11
Ch11Ch11
Ch11
ย 
Os
OsOs
Os
ย 
filesystem-120405093921-phpapp02 (1).pdf
filesystem-120405093921-phpapp02 (1).pdffilesystem-120405093921-phpapp02 (1).pdf
filesystem-120405093921-phpapp02 (1).pdf
ย 
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
ย 
Booy Up
Booy UpBooy Up
Booy Up
ย 
XFS.ppt
XFS.pptXFS.ppt
XFS.ppt
ย 
Distributed File System
Distributed File SystemDistributed File System
Distributed 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)
ย 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems
ย 

Recently uploaded

Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024BookNet Canada
ย 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
ย 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
ย 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
ย 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
ย 
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024BookNet Canada
ย 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDubai Multi Commodity Centre
ย 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
ย 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
ย 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
ย 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
ย 
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort ServiceHot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
ย 
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...Alan Dix
ย 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
ย 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
ย 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
ย 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
ย 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
ย 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
ย 

Recently uploaded (20)

Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
ย 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
ย 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
ย 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
ย 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
ย 
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: Whatโ€™s new for BISAC - Tech Forum 2024
ย 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
ย 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ย 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
ย 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
ย 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
ย 
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort ServiceHot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service
Hot Sexy call girls in Panjabi Bagh ๐Ÿ” 9953056974 ๐Ÿ” Delhi escort Service
ย 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
ย 
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song โ€“ personal research during my six years at Swansea ... and bey...
ย 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
ย 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
ย 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
ย 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
ย 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
ย 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
ย 

File system

  • 2. Content ๎€Š Physically, what is a HD like? ๎€Š The HD for the OS ๎€Š Why do I need a FS? ๎€Š FS structure in Windows ๎€Š FS structure in Unix ๎€Š Other FS ๎€Š Journalling
  • 3. Physically, what is a HD like? ๎€Š Little exercise (Floppy) ๎€Š 2 heads ๎€Š 80 cylinders ๎€Š 18 sectors ๎€Š 512 bytes/sector
  • 4. The HD for the OS ๎€Š MBR โ€“ Master Boot Record ๎€Š Bootloader ๎€Š Partition table ๎€Š Partitions* (limited to 4 primary) ๎€Š File System: many, not only for HDs ๎€Š Clusters/Blocks (performance) ๎€Š Driver to transform physical address to logical
  • 5. Why do I need a FS? ๎€Š To set a structure for the data (files, directories...) ๎€Š Metadata (name, modification date, owner...) ๎€Š Set a permissions system ๎€Š Data integrity (damaged sectors) ๎€Š Links ๎€Š The clusters in which a file is saved (they might not be contiguous) ๎€Š ...
  • 6. FS structure in Windows ๎€Š Boot Record โ€“ contains information about the different areas ๎€Š FAT โ€“ File Allocation Table ๎€Š One entry for each block in the data area Boot Record FAT Optional Duplicate FAT Data Blocks ๎€Š The FAT family FS
  • 7. FS structure in Unix ๎€Š Superblock*: stores the size, number of files, free space, index of the next free inode... ๎€Š i-node list: holds one entry for each file or directory where to save metadata, inode type, locking and modification flags... ๎€Š Data blocks: keeps the data of the files pointed by the inodes. Superblock i-node list Data blocks ๎€Š The Ext family FS
  • 8. FS structure in Unix ๎€Š The Ext family FS ๎€Š Buffer cache ๎€Š Syncer ๎€Š 13 entries per inode ๎€Š The first 10 direct ๎€Š 11ยบ indirect simple ๎€Š 12ยบ indirect double ๎€Š 13ยบ indirect triple ๎€Š If the block size is 1KB ๎€Š Files of 16TB
  • 9. Other FS ๎€Š Special FS ๎€Š Swap ๎€Š ProcFS / SysFS ๎€Š DevFS ๎€Š TmpFS ๎€Š UnionFS ๎€Š In Unix everything is a file
  • 10. Journalling ๎€Š Avoid corruption ๎€Š Write log before commit ๎€Š Before journalling ๎€Š Guessing work with โ€œfsckโ€ ๎€Š For ext3, two ways of mounting the partition ๎€Š Async: uses journalling and it's faster ๎€Š Sync: old system without journalling, makes changes straight to the disk
  • 11. Journalling ๎€Š Ordered (default) ๎€Š Only log of Metadata ๎€Š Data written to the disc before writing the log ๎€Š Writeback ๎€Š Only log of Metadata ๎€Š Data written to the disc after or before writing the log ๎€Š Journal ๎€Š Log of Metadata and Data ๎€Š First write the log then the disc ๎€Š Slower but the most secure
  • 12. Resources ๎€Š http://en.wikipedia.org ๎€Š http://users.iafrica.com/c/cq/cquirke/fat.htm ๎€Š http://hebb.cis.uoguelph.ca/~dave/CIS275/Lect ures/file7.html ๎€Š Old notes