SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Linux and Windows
File System
W1272075 Yu-Cheng Lin 3/6/18
What is File System
● A file system is the way in which files are named and where they are placed
logically for storage and retrieval.
● In other words, it is a mechanism to organize our data.
1. It has its own data structure to achieve desired organization.
2. It has its own algorithm to achieve desired performance.
● Ability to store, retrieve, search, sort, ....
File - Basic Unit
● File = file name + file size
File system # of char (file name) size of the file performance
MINIX 1 14 64MB medium
ext file system 255 2G slow
ext2 file system 255 up to 64TB fast
Where is File Located
Where is File Located
What is inode?
● The inode is a data structure that describes a file or a directory.
● Each inode stores the attributes and disk block location(s) of the object's data.
● Attributes may include metadata: times of last change, access, modification,
as well as owner and permission data.
We Want Folders!
We Want Folders!
● How to present folders as file?
File System as a Tree
● Rectangle is the folder.
● Circle represents the file.
How Do We Navigate A Tree?
● Absolute path
● “/” represent root
● If we want to access p,
● => /a/c/p
● OS (side) use dentry to cache absolute path
● Store in dentry cache
How Do We Navigate A Tree?
● Relative path
● Assume we are at “a” directory
● We can set working directory at “a” as reference
● “.” represents the current directory
● If we want to access p,
● => ./c/p
How Do We Navigate A Tree?
● Relative path - Use ‘..’
● Assume we are at “d” directory
● Working directory at “d” as reference
● Use “..” to navigate to upper level
● If we want to access p,
● => ../c/p
● Or, change working directory to the ancestor nodes
How Do We Navigate A Tree?
● “link”
1. if folder c link under folder d, => ./c/p
2. if file p link under folder d, => ./p
How to Merge Outer File System? - Linux
mounting
How the User Interact with File System?
File
Directory
What if Two User Working on the Same Tree?
● Race Condition
● Locking
○ Share lock
○ exclusive lock
How Linux Handle Different File Systm?
● In order to have different implementation of the file system, Linux create a
Virtual File System layer, so that different file system only need to support the
four main file-system structures:
How to Store Large Size Files?
● Single indirect block
○ up to 268KB
● Double indirect block
○ up to 10+2^16 blocks
● Triple indirect block
○ 16 GB to 64 TB
The Main Difference for Windows NTFS
1. Structure
2. File compression
3. File encryption
NTFS Structure
● Master File Table
File Compression
End

More Related Content

What's hot (20)

PPTX
Os security issues
JOLLUSUDARSHANREDDY
 
PPTX
Linux commands
penetration Tester
 
PPTX
11. operating-systems-part-1
Muhammad Ahad
 
PPT
Disk structure
Shareb Ismaeel
 
PPTX
Windows file system
sumitjain2013
 
PPT
File system
Harleen Johal
 
PPTX
Memory fragmentation by ofor williams daniel
Ofor Williams
 
PPTX
File system structure
sangrampatil81
 
PPT
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Kuber Chandra
 
PPT
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
PPSX
Hard drive partitions
Gabriela_Technoteacher
 
PPTX
Operating Systems - File Management
Damian T. Gordon
 
PPTX
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
Zena Abo-Altaheen
 
PPT
Linux file system
Burhan Abbasi
 
PPTX
Disk Management
Anjali Negi
 
PPT
Files concepts.53
myrajendra
 
PPT
Disk scheduling
J.T.A.JONES
 
PPTX
Cpu scheduling in operating System.
Ravi Kumar Patel
 
PPT
Linux command ppt
kalyanineve
 
PDF
The Google File System (GFS)
Romain Jacotin
 
Os security issues
JOLLUSUDARSHANREDDY
 
Linux commands
penetration Tester
 
11. operating-systems-part-1
Muhammad Ahad
 
Disk structure
Shareb Ismaeel
 
Windows file system
sumitjain2013
 
File system
Harleen Johal
 
Memory fragmentation by ofor williams daniel
Ofor Williams
 
File system structure
sangrampatil81
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Kuber Chandra
 
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
Hard drive partitions
Gabriela_Technoteacher
 
Operating Systems - File Management
Damian T. Gordon
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
Zena Abo-Altaheen
 
Linux file system
Burhan Abbasi
 
Disk Management
Anjali Negi
 
Files concepts.53
myrajendra
 
Disk scheduling
J.T.A.JONES
 
Cpu scheduling in operating System.
Ravi Kumar Patel
 
Linux command ppt
kalyanineve
 
The Google File System (GFS)
Romain Jacotin
 

Similar to Linux and windows file system (20)

PDF
oslectureset7.pdf
WaltonJrSmithTZ
 
PDF
Unit ivos - file systems
donny101
 
PDF
Operating System-4 "File Management" by Adi.pdf
Prof. Dr. K. Adisesha
 
PDF
File handling in Python this PPT gives
pankajdesai217634
 
PPTX
Linux command line tutorial for beginners.pptx
ciphersecio
 
PDF
File Systems
Shipra Swati
 
PDF
Introducing the Java NIO.2
Fadel Adoe
 
PDF
Files and data storage
Zaid Shabbir
 
PPTX
File Management (1).pptx
SolomonAnab1
 
PPT
File management
Salman Khan
 
PPTX
Unit-1-Lecture-9.pptx file structure semester
NevilDesai8
 
PPTX
Learn about the File Concept in operating systems ppt
geethasenthil2706
 
PPTX
file_concept.pptx file presentation directories
namrataparopate
 
PPTX
file_concept.pptx file presentation directories
namrataparopate
 
PPTX
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
PDF
Mounting and Creating Links - RHCSA (RH124) .pdf
RHCSA Guru
 
PDF
Operating system 4 files by adi
Prof. Dr. K. Adisesha
 
PPT
linux-file-system01.ppt
MeesanRaza
 
PPT
managing-the-linux-file-system_suse_.ppt
submarinoaguadulce1
 
PPT
managing-the-linux-file-system________________________
saurabhbquest
 
oslectureset7.pdf
WaltonJrSmithTZ
 
Unit ivos - file systems
donny101
 
Operating System-4 "File Management" by Adi.pdf
Prof. Dr. K. Adisesha
 
File handling in Python this PPT gives
pankajdesai217634
 
Linux command line tutorial for beginners.pptx
ciphersecio
 
File Systems
Shipra Swati
 
Introducing the Java NIO.2
Fadel Adoe
 
Files and data storage
Zaid Shabbir
 
File Management (1).pptx
SolomonAnab1
 
File management
Salman Khan
 
Unit-1-Lecture-9.pptx file structure semester
NevilDesai8
 
Learn about the File Concept in operating systems ppt
geethasenthil2706
 
file_concept.pptx file presentation directories
namrataparopate
 
file_concept.pptx file presentation directories
namrataparopate
 
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
Mounting and Creating Links - RHCSA (RH124) .pdf
RHCSA Guru
 
Operating system 4 files by adi
Prof. Dr. K. Adisesha
 
linux-file-system01.ppt
MeesanRaza
 
managing-the-linux-file-system_suse_.ppt
submarinoaguadulce1
 
managing-the-linux-file-system________________________
saurabhbquest
 
Ad

Recently uploaded (20)

PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Ad

Linux and windows file system

  • 1. Linux and Windows File System W1272075 Yu-Cheng Lin 3/6/18
  • 2. What is File System ● A file system is the way in which files are named and where they are placed logically for storage and retrieval. ● In other words, it is a mechanism to organize our data. 1. It has its own data structure to achieve desired organization. 2. It has its own algorithm to achieve desired performance. ● Ability to store, retrieve, search, sort, ....
  • 3. File - Basic Unit ● File = file name + file size File system # of char (file name) size of the file performance MINIX 1 14 64MB medium ext file system 255 2G slow ext2 file system 255 up to 64TB fast
  • 4. Where is File Located
  • 5. Where is File Located
  • 6. What is inode? ● The inode is a data structure that describes a file or a directory. ● Each inode stores the attributes and disk block location(s) of the object's data. ● Attributes may include metadata: times of last change, access, modification, as well as owner and permission data.
  • 8. We Want Folders! ● How to present folders as file?
  • 9. File System as a Tree ● Rectangle is the folder. ● Circle represents the file.
  • 10. How Do We Navigate A Tree? ● Absolute path ● “/” represent root ● If we want to access p, ● => /a/c/p ● OS (side) use dentry to cache absolute path ● Store in dentry cache
  • 11. How Do We Navigate A Tree? ● Relative path ● Assume we are at “a” directory ● We can set working directory at “a” as reference ● “.” represents the current directory ● If we want to access p, ● => ./c/p
  • 12. How Do We Navigate A Tree? ● Relative path - Use ‘..’ ● Assume we are at “d” directory ● Working directory at “d” as reference ● Use “..” to navigate to upper level ● If we want to access p, ● => ../c/p ● Or, change working directory to the ancestor nodes
  • 13. How Do We Navigate A Tree? ● “link” 1. if folder c link under folder d, => ./c/p 2. if file p link under folder d, => ./p
  • 14. How to Merge Outer File System? - Linux mounting
  • 15. How the User Interact with File System? File Directory
  • 16. What if Two User Working on the Same Tree? ● Race Condition ● Locking ○ Share lock ○ exclusive lock
  • 17. How Linux Handle Different File Systm? ● In order to have different implementation of the file system, Linux create a Virtual File System layer, so that different file system only need to support the four main file-system structures:
  • 18. How to Store Large Size Files? ● Single indirect block ○ up to 268KB ● Double indirect block ○ up to 10+2^16 blocks ● Triple indirect block ○ 16 GB to 64 TB
  • 19. The Main Difference for Windows NTFS 1. Structure 2. File compression 3. File encryption
  • 22. End

Editor's Notes

  • #2: https://www.slideshare.net/anil_pugalia/linux-file-system https://www.slideshare.net/harleen-johal/file-system-12292068 https://www.slideshare.net/azilian/4-linux-file-systems-18175783 https://unix.stackexchange.com/questions/4402/what-is-a-superblock-inode-dentry-and-a-file https://stackoverflow.com/questions/5256599/what-are-file-descriptors-explained-in-simple-terms https://stackoverflow.com/questions/27345342/inode-vs-vnode-difference http://slideplayer.com/slide/4594828/ http://slideplayer.com/slide/8961492/