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

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
ย 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
ย 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
ย 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
ย 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
ย 
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜RTylerCroy
ย 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
ย 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
ย 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
ย 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
ย 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
ย 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
ย 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
ย 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
ย 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
ย 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
ย 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
ย 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
ย 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
ย 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
ย 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
ย 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
ย 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
ย 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
ย 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
ย 
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
ย 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
ย 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
ย 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
ย 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
ย 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
ย 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
ย 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
ย 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
ย 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
ย 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
ย 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
ย 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
ย 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
ย 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
ย 

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