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

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

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
 
Disk scheduling
Disk schedulingDisk scheduling
Disk schedulingniralim40
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1Amir Payberah
 
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, 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
 
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
 
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

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 

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