L-7.1: File System in Operating System | Windows, Linux, Unix, Android etc.

Gate Smashers
21 May 202009:55

Summary

TLDRThis video provides an in-depth explanation of file systems in operating systems, highlighting their importance in managing data storage and retrieval. The presenter covers various file systems like NTFS, FAT, and ZFS, explaining their roles in different operating systems such as Windows, Unix, and Linux. The video discusses how file systems organize data into files and folders, and manage the storage of data on physical devices like hard disks and SSDs. The presenter also touches on the logical division of data into blocks and the mapping of these blocks to disk sectors. The content is geared towards students preparing for exams and those interested in understanding the technical workings of file systems.

Takeaways

  • 📚 File systems are a crucial component of operating systems, managing how files are stored and retrieved.
  • 🖥️ Different operating systems have their own file systems, such as NTFS for Windows, FAT for DOS, and ext for Linux.
  • 🔍 File systems are software modules within the operating system that handle the organization and management of files.
  • 💾 File systems are responsible for the permanent storage of data on physical drives like hard disks or SSDs.
  • 🗂️ Users interact with files and folders, which are managed by the file system, but the underlying storage architecture is abstracted away.
  • 📈 The file system divides files logically into blocks and maps these blocks to sectors on the physical disk, regardless of the file's actual size.
  • 🔄 The mapping of file blocks to disk sectors can be non-contiguous, meaning a file can be stored across different parts of the disk.
  • 🔑 File systems maintain a mapping to ensure data integrity and correct retrieval when files are accessed.
  • 🛠️ File systems support various operations on files, such as creating, deleting, modifying, and truncating.
  • 🔑 File attributes and operations are managed by the file system, which also handles the creation and management of directories or folders.
  • 📈 The script provides an introduction to file systems, their purpose, and their role in managing data within operating systems.

Q & A

  • What is the role of a file system in an operating system?

    -The file system is a module within the operating system that manages the storage and retrieval of data in the form of files. It ensures that data is stored permanently on disk and can be fetched as needed.

  • What are some examples of file systems used in different operating systems?

    -Examples of file systems include NTFS in Windows, FAT in DOS, Unix File System in Unix, and Extended File System in Linux. Additionally, ZFS is used for managing large amounts of data in big data applications.

  • Is a file system considered hardware or software?

    -A file system is considered software. It is a part of the operating system that manages how data is stored and retrieved.

  • How does a file system manage data storage?

    -A file system manages data storage by determining how data is stored in the form of files on a disk. It divides files into blocks and maps these blocks to sectors on the disk, ensuring that data can be stored and retrieved efficiently.

  • What types of files do users typically manage?

    -Users typically manage various types of files such as documents (DOC, PDF), spreadsheets (XLS), presentations (PPT), media files (MP3, MP4), and images (PNG, JPG).

  • What is the role of folders or directories in a file system?

    -Folders or directories are used to organize files. They are collections of related files, and in operating systems like Linux and Unix, they are referred to as directories.

  • How does a file system store data on a disk?

    -A file system stores data on a disk by mapping the logical blocks of a file to physical sectors on the disk. It divides large files into smaller blocks and maps these blocks to available sectors on the disk.

  • What is the difference between volatile and permanent storage?

    -Volatile storage, such as RAM or CACHE, loses data when the system is powered off. Permanent storage, like a hard disk or SSD, retains data even when the system is turned off.

  • Why is it important for data to be stored permanently?

    -It is important for data to be stored permanently so that it is not lost when the system is turned off. Permanent storage ensures that data is available for future use.

  • What additional attributes and operations can be associated with files in a file system?

    -Files in a file system can have various attributes such as permissions, creation date, and size. Operations on files can include creating, deleting, truncating, reading, and modifying files.

Outlines

00:00

📂 Introduction to File Systems in Operating Systems

The first paragraph introduces the concept of file systems within operating systems, emphasizing their importance for various exams and daily use. It explains that file systems are software components of the operating system responsible for managing how data is stored and retrieved. The paragraph mentions different file systems like NTFS for Windows, FAT for DOS, Unix file system for Unix, extended file system for Linux, and ZFS for handling big data. The role of file systems is to manage user data in the form of files, and it discusses how files are stored permanently on hard disks. The paragraph also touches on the user's perspective of viewing data in files and folders, managed by the file system, without seeing the underlying storage architecture.

05:00

🔍 Understanding File System Operations and Disk Architecture

The second paragraph delves into the operational aspects of file systems and the physical architecture of disks. It describes how data is stored on sectors of the disk and how file systems logically divide user files into blocks, which are then mapped to disk sectors. The paragraph uses an analogy of students and rooms to explain the concept of mapping blocks to sectors, taking into account that not all storage allocation is contiguous due to existing data. It highlights the file system's role in storing and managing this mapping to ensure accurate data retrieval. The paragraph also briefly mentions file attributes and operations such as creating, deleting, and modifying files, promising further discussion in subsequent videos. The summary concludes by reiterating the file system's crucial function in the background, invisible to the user but essential for data storage and retrieval.

Mindmap

Keywords

💡File Systems

File systems are the backbone of operating systems, responsible for managing and organizing files. They define the way data is stored, retrieved, and managed on a computer's storage devices. In the video, file systems such as NTFS for Windows, FAT for DOS, and ext file system for Linux are mentioned, illustrating the importance of file systems in different operating systems.

💡Operating System

An operating system (OS) is the software that manages computer hardware and software resources and provides common services for computer programs. The script highlights the role of the OS in managing files through a specific module, the file system, which is crucial for handling data storage and retrieval.

💡Data Storage

Data storage refers to the process of retaining data on a storage medium for future access. The video explains how file systems manage data storage by organizing user data into files and then mapping these files to blocks and sectors on a physical disk.

💡File Attributes

File attributes are properties or metadata associated with a file, such as creation date, access permissions, and file size. The script mentions that files have attributes and operations that can be performed on them, like creating, deleting, or modifying files, which are managed by the file system.

💡Permanent Storage

Permanent storage is a type of data storage that retains data even when the power is turned off. In the video, it is mentioned that file systems are responsible for storing data permanently on storage devices like hard disks, as opposed to volatile memory like RAM or cache.

💡Hard Disk

A hard disk is a type of non-volatile storage device that stores digitally encoded data on rapidly rotating disks coated with magnetic material. The script uses the hard disk as an example of where file systems store data permanently, emphasizing its importance in data retention.

💡Folders

Folders, also known as directories in Unix or Linux, are used to organize and store files in a hierarchical structure. The video explains how folders are collections of related files and how the file system manages these folders and the files within them.

💡Data Mapping

Data mapping in the context of file systems refers to the process of associating logical blocks of data with physical sectors on a storage device. The script describes how file systems logically divide files into blocks and then map these blocks to sectors on the disk, which is essential for data storage and retrieval.

💡Sectors

A sector is the smallest addressable unit of data storage on a disk. The video script explains that file systems map logical blocks of files to physical sectors on the disk, which is a fundamental part of how data is organized and accessed on storage devices.

💡File Operations

File operations are the actions that can be performed on files, such as creating, reading, updating, and deleting. The script briefly mentions that file systems handle various file operations, which are essential for managing user data.

💡ZFS File System

ZFS is a file system designed for large data volumes, offering features like data integrity, scalability, and high storage capacities. The video mentions ZFS in the context of managing big data, highlighting its relevance in contemporary data storage needs.

Highlights

Introduction to file systems as a crucial component of operating systems.

Importance of file systems for competitive exams, college, and university exams.

Explanation of file systems in different operating systems like Windows (NTFS), DOS (FAT), Unix, and Linux (extended file system).

Discussion on file systems for managing big data, such as ZFS and data wide file systems.

Clarification that a file system is a software component within the operating system.

Description of the file system's role in managing how data is stored and retrieved.

Comparison of file systems to database management systems (DBMS) in terms of data management.

Illustration of how users manage data in files and the file system's role in permanent storage.

Explanation of the file system's management of files and folders within a computer's storage.

Discussion on the user's perspective of files and folders versus the file system's management behind the scenes.

Details on the physical architecture of a disk, including platters, surfaces, tracks, and sectors.

Process of how file systems logically divide files into blocks and map them to disk sectors.

Example of mapping file system blocks to disk sectors using a classroom analogy.

The file system's responsibility for storing and managing the mapping of data blocks to disk sectors.

Overview of the user's interaction with files and folders, and the file system's role in data storage and retrieval.

Introduction to file attributes and operations such as create, delete, and modify, to be discussed in further videos.

Conclusion summarizing the role and importance of file systems in operating systems.

Transcripts

play00:00

Hello friends, welcome to Gate Smashers.

play00:02

In this video I am going to explain file systems in operating systems

play00:06

and in this video we are going to discuss all the points related to file systems

play00:09

which are important for your competitive exams

play00:11

and even your college and University exams.

play00:15

so guys quickly like this video and subscribe to this channel

play00:18

if you have not done till now press the bell button

play00:20

so that you get all the latest notifications.

play00:23

so we start from file system

play00:25

first of all if we talk about operating system

play00:27

out of all the major functionality of an operating system

play00:31

file system is the most important system

play00:35

means we say operating system manages the files

play00:39

but inside the code of the operating system

play00:42

we get a module, file system

play00:44

which manages all of the files

play00:48

if we talk about Windows

play00:50

Windows has NTFS file system

play00:52

earlier there was dos in DOS operating system there was fat file system

play00:56

if we talk about Unix, there is Unix file system

play00:59

if we talk about LINUX there is extended file system.

play01:01

in today's time we are talking about big data

play01:03

large amount of data

play01:04

for that there is zfs file system data wide file system

play01:07

means if we talk about any operating system

play01:10

in the code of operating system in kernel

play01:13

you will find one module that is file system

play01:18

so what is the first point that is covered here

play01:20

whether a file system is a hardware or software?

play01:23

file system is a software

play01:26

so if this is a software

play01:27

and comes under operating system so what work it does?

play01:31

this manages files

play01:32

now what is the meaning of manage here

play01:34

how the data will be stored

play01:37

and how the data will be fetched?

play01:40

Like we discuss in database DBMS

play01:43

what is DBMS database management system

play01:46

means which manages the data.

play01:48

So here if we say what does the file system do?

play01:51

it manage data of users, in the form of files

play01:55

mean how the data will be stored

play01:57

and if data is stored then how it will be fetched

play02:01

so from where the story begins

play02:03

let's take the example of myself or any user

play02:06

how do we manage our data

play02:09

we manage our data in the form of files

play02:11

take a simple example

play02:13

we copy any data with pen drive in the form of file

play02:16

which we download it is in the form of file

play02:19

if you are sending an email there are also we are attaching a file

play02:22

we send a file on WhatsApp

play02:25

so if I talk about PPT or XL or PDF or DOC file

play02:30

it can be of any type MP3 MP4 PNG JPG

play02:35

so on daily basis with what we are dealing?

play02:39

We are dealing with Files

play02:41

so in actual how do we manage these files in our laptop in our computer

play02:46

even in our mobiles also

play02:48

so who manages those files

play02:50

who stores those files in the back end

play02:53

back end means the permanent storage

play02:55

because we want our data to be stored permanently

play02:58

It is not that I downloaded any file or downloaded any movie

play03:02

and that I would place in a volatile memory kept

play03:06

in RAM or in CACHE

play03:08

so when we close the system and open the next day we will not have that data

play03:13

so I want my data to be stored permanently

play03:16

so from where do we have permanent storage available?

play03:19

It is provided by hard disk

play03:21

hard disk is a permanent storage

play03:23

although SSDs are also becoming popular, solid states

play03:26

but however most likely we use a hard disk in majority

play03:30

because it’s size is more

play03:32

so because of large size especially nowadays we have it in terabytes,

play03:36

today if we buy a laptop in a price range of 20 - 25 thousand

play03:39

there also you get a hard drive of minimum 1 terabyte

play03:42

So, who gets the data to be permanently stored

play03:44

in the permanent storage? File system

play03:48

So the story is, what does a user do?

play03:51

The user has created some file

play03:54

let’s say I made a doc file,

play03:57

or excel file or ppt, mp3, mp4

play04:00

or I downloaded any file

play04:02

or I copied any file whatever I am doing,

play04:04

the form in which I am managing the data is in the form of a file

play04:08

How is the user viewing his data?

play04:11

User views his data in the form of a file

play04:13

So in your laptop what is there in C drive or D drive?

play04:17

There are files only and where are those files?

play04:20

They are inside folders,

play04:22

you will find the file inside any folder

play04:25

so you can say what is a folder? It is a collection of related files

play04:29

As we call it directory in Linux or Unix.

play04:32

So even if we say folder in windows, what we call it in Linux, directory

play04:36

So what do we do in a directory?

play04:38

We store and keep related files there.

play04:40

Now who is managing all these folders?

play04:44

The file system is managing them

play04:46

so whether we talk about windows, Linux, Unix or any operating system

play04:50

the file system is managing data

play04:53

So how far can the user see?

play04:55

User view is up to here, the user can see his files, folders

play05:00

but beyond the folder a user can’t see anything.

play05:03

So there the file system works.

play05:06

What do we have to do now?

play05:08

Actually we are storing the data inside our disk

play05:11

But the architecture of the disk is something else

play05:13

What do we have in the disc?

play05:15

We have platters, surfaces, tracks on these surfaces

play05:18

What do we have on the tracks

play05:21

there are sectors

play05:22

Let’s say if I have a track so on this track we have sectors

play05:27

I have already made videos on the architecture of the disk.

play05:31

If you haven’t checked it, then definitely check it once.

play05:33

So that all the points you have are cleared

play05:36

You will find their link in the description box

play05:38

So see here we have sectors

play05:41

so actually the data are on these sectors means

play05:44

the data which user is creating

play05:47

we want to put that data on these sectors

play05:50

So the file system will put the data over these sectors.

play05:52

So let’s say I downloaded one file,

play05:55

let’s say I downloaded a movie of 1 GB

play05:57

it is not necessary that I have 1 GB of space lying in my disk.

play06:01

it will be directly stored in that 1GB file of yours ? No

play06:04

what happens ?

play06:05

when all these files come to the file system

play06:08

what it does? Divides these files logically

play06:13

in what ? in the blocks

play06:15

let's say if we have 1GB file,

play06:18

so we divided into small parts

play06:21

Divided into blocks

play06:23

and those blocks then what did we do?

play06:25

we mapped those blocks

play06:28

we mapped those blocks . with whom?

play06:30

with disk, means

play06:32

we map with those sectors inside the disk.

play06:36

what does map mean

play06:39

look it's not necessary

play06:40

let's say that I said, here in block number one to sector number one

play06:44

block number two to sector number two

play06:46

block number three to sector number three

play06:49

contagious is not always possible

play06:51

may be you can do that too

play06:53

But it is also possible that the data is already lying there

play06:56

So what are we doing?

play06:57

We are simply mapping that this block goes to this sector

play07:01

This block should go in this sector

play07:03

Like if I explain you with a simple example

play07:05

Let's say if I have ten rooms

play07:09

there are ten rooms and I have five students

play07:12

Student 1, student 2, student 3, student 4, student 5

play07:15

and let's say out of the ten rooms some rooms are already booked

play07:19

Let's say this room is already booked, this room is already booked

play07:22

Now let's say this is a section

play07:23

inside this section there are five students

play07:26

So what did I say? that now in section one

play07:28

Where I have Student one, you go in room Number one

play07:31

and told the student number two to go to room number three

play07:34

go to room number four

play07:35

said roll number three to go to room number five

play07:38

said roll number four to go to room number nine

play07:41

said roll number five to go to room number ten

play07:44

means I have mapped all these

play07:46

so what I did here

play07:47

here in section there are many students

play07:50

by dividing them logically

play07:53

with whom did we mapped them

play07:54

we mapped them that you go to this room and you go to this

play07:57

If I have five rooms already available, contagious

play08:00

I will send them continuously, you go to one, you in two,

play08:03

you in three & in four

play08:04

but this is not always possible

play08:06

because there is already a lot of data lying in the disk

play08:09

So obviously what we are doing, we're mapping

play08:12

So the file system has a major role here.

play08:15

So the file system stores this mapping

play08:17

manages this mapping

play08:19

so that when we fetch data

play08:21

Let's say I said roll number 1 to 5 come back

play08:25

means I called the whole section

play08:27

and now when I am calling the whole section

play08:29

I should now that where I have sent roll number 1

play08:32

Where did I have send roll number 2

play08:33

where did I send roll number 3

play08:35

If I will not know then obviously I may call wrong data

play08:39

So that it is what how the data will be stored

play08:42

and how the data will be fetched

play08:44

So this is a complete mapping, that means

play08:45

we divide data in blocks

play08:47

we divided the files logically

play08:50

not dividing physically

play08:52

we only divided logically

play08:53

that this much address in this block

play08:55

and this much address in this block

play08:57

and then what we did, we mapped it

play09:00

and then we put that in sectors.

play09:02

we put them in sectors inside the disk

play09:06

So who is actually doing this work?

play09:08

So this work is actually done by the file system

play09:10

so file system has a major role

play09:13

to store and fetch the data

play09:16

We as a user only see our folders and our files

play09:21

but the scene behind it and work behind all this

play09:24

that work is actually done by the file system

play09:26

so in file system other than all these

play09:29

if we talk about files

play09:31

so files also have their attributes

play09:33

files have some operation

play09:35

we can create file, delete files or truncate

play09:38

can rise and modify

play09:41

so all these we will discuss in further videos

play09:44

Here I have told you only this introduction

play09:46

about file system, what is a file system?

play09:49

what it does? and why do we use it? in our systems

play09:53

Thank You.

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
File SystemsOperating SystemsNTFSFATUnix File SystemLinux File SystemZFSData ManagementStorage SolutionsDisk ArchitectureData Mapping
هل تحتاج إلى تلخيص باللغة الإنجليزية؟