Donate to the Palestine's children, safe the people of Gaza.  >>>Donate Link...... Your contribution will help to save the life of Gaza people, who trapped in war conflict & urgently needed food, water, health care and more.

What is a File System?

In a computer, a file system — sometimes a written filesystem — is how files are named and where they are placed logically for storage and retrieval. Without a file system, stored information wouldn’t be isolated into individual files and would be difficult to identify and retrieve.

A file system is a process of managing how and where data is on a storage disk, which is also referred to as file management or FS. It is a logical disk component that compresses files separated into groups, which are known as directories. It is abstract to a human user and related to a computer; hence, it manages a disk’s internal operations. Files and additional directories can be in the directories. Although there are various file systems with Windows, NTFS is the most common in modern times. It would be impossible for a file with the same name to exist and also impossible to remove installed programs and recover specific files without file management, as well as files would have no organization without a file structure. The file system enables you to view a file in the current directory as files are often managed in a hierarchy.

A disk (e.g., Hard disk drive) has a file system, despite type and usage. Also, it contains information about file size, file name, file location fragment information, and where disk data is stored and also describes how a user or application may access the data. The operations like metadata, file naming, storage management, and directories/folders are all managed by the file system.

On a storage device, files are stored in sectors in which data is stored in groups of sectors called blocks. The size and location of the files are identified by the file system, and it also helps to recognize which sectors are ready to be used. Other than Windows, some other operating systems contain FAT and NTFS file system. But Apple product (like iOS and macOS) uses HFS+ as the operating system that is horizon by many different kinds of file systems.

Sometimes the term “file system” is used in the reference to partitions. For instance, saying, “on the hard drive, two files systems are available,” that does not have to mean the drive is divided between two file systems, NTFS and FAT. But it means two separate partitions are there that use the same physical disk

To work, a file system is required by most of the applications you come into contact with; therefore, each partition should have one. Furthermore, if a program is built for use in macOS, you will be unable to use this program on windows because programs are file system-dependent.

Examples of file systems

The examples of file systems are given below:

FAT: FAT is a type of file system, which is developed for hard drives. It stands for file allocation table and was first introduced in 1977, which is used for 12 or 16 bits for every cluster access into the file allocation table (FAT). On hard drives and other computer systems, it helps to manage files on Microsoft operating systems. In devices like digital cameras, flash memory, and other portable devices, it is also often found that is used to store file information. It also helps to extend the life of a hard drive as it minimizes the wear and tears on the hard disc. Today, FAT is not used by later versions of Microsoft Windows like Windows XP, Vista, 7, and 10 as they use NTFS. The FAT8, FAT12, FAT32, and FAT16 are all the different types of FAT (for file allocation table).

GFS: A GFS is a file system, which stands for Global File System. It can make enable multiple computers to act as an integrated machine, which is first developed at the University of Minnesota. But now it is maintained by Red Hat. When the physical distance between two or more computers is high, and they are unable to send files directly to each other, a GFS file system makes them capable of sharing a group of files directly. A computer can organize its I/O to preserve file systems with the help of a global file system.

HFS: HFS (Hierarchical file system) is the file system that is used on a Macintosh computer for creating a directory at the time a hard disk is formatted. Generally, its basic function is to organize or hold the files on a Macintosh hard disk. Apple is not capable of supporting writing or formatting HFS disks since when OS X came on the market. Also, HFS-formatted drives are not recognized by Windows computers as HFS is a Macintosh format. With the help of WIN32 or NTFS file systems, Windows hard drives are formatted.

NTFS: NTFS is the file system, which stands for NT file system and stores and retrieves files on Windows NT operating system and other versions of Windows like Windows 2000, Windows XP, Windows 7, and Windows 10. Sometimes, it is known as the New Technology File System. As compared to the FAT and HPFS file systems, it provides better methods of file recovery and data protection and offers several improvements in terms of extendibility, security, and performance.

UDF: A UDF is a file system, stands for Universal Disk Format, and used first developed by OSTA (Optical Storage Technology Association) in 1995 for ensuring consistency among data written to several optical media. It is used with CD-ROMs and DVD-ROMs and is supported on all operating systems. Now, it is used in the process of CD-R’s and CD-RW’s, called packet writing.

The architecture of the File System

Two or three layers are contained by the file system. Sometimes, these layers function combined and sometimes are explicitly separated. For file operations, the API (Application Program Interface) is provided by the logical file system, like OPEN, CLOSE, READ, and more because it is accountable for interaction with the user application. Also, for processing, the requested operation is forwarded to the layer that is located below it. Furthermore, for various concurrent instances of physical file systems, the second optional layer allows support, which is a virtual file system. And each concurrent instance is called a file system implementation.

The third layer is responsible for handling buffering and memory management, which is called the physical file system. It is concerned with the physical operation of the storage device and processes physical blocks being read or written. Furthermore, to drive the storage device, this layer interacts with the channel and the device drivers.

Types of file systems

There are various kinds of file systems, which are as follows:

1. Disk file systems

On the disk storage medium, a disk file system can randomly address data within a few amounts of time. Also, it includes the anticipation that led to the speed of accessing data. Without regard to the sequential location of the data, multiple users can access several data on the disk with the help of a disk file system.

2. Flash file systems

A flash file system is responsible for restrictions, performance, and special abilities of flash memory. It is superior to utilize a file system that is designed for a flash device; however, a disk file system is the basic storage media, which can use a flash memory device.

3. Tape file systems

A tape file system is used to hold files on the tape as it is a tape format and file system. As compared to disks, magnetic tapes are more powerful to access data for a long time, which are the challenges for a general-purpose file system in terms of creation and efficient management.

4. Database file systems

A database-based file system is another method for file management. Files are recognized by their characteristics (like a type of file, author, topic, etc.) rather than hierarchical structured management.

5. Transactional file systems

Some programs require one or more changes to fail for any reason or need several file systems changes but do not make any changes. For instance, a program may write configuration files or libraries mand executables at the time of installing or updating the software. The software may be unusable or broken if the software is stopped while updating or installing. Also, the entire system may leave in an unusable state if the process of installing or updating the software is incomplete.

6. Network file systems

A network file system offers access to files on a server. In remote network-connected computers, with the help of local interfaces, programs can transparently create, manage and access hierarchical files and directories. The file-system-like clients for FTP and WebDAV, and AFS, SMB protocols, and NFS are all examples of the network file systems.

7. Shared disk file systems

A shared-disk file system allows the same external disk subsystem to be accessed by multiple machines, but when the number of machines accesses the same external disk subsystem, there may be occurred collisions in this condition; so, to prevent the collision, the file system decides which subsystem to be accessed.

8. Minimal file system

In the 1970s, for some initial microcomputer users, disk and digital tape devices were much more expensive. A few cheaper basic data storage systems used common audio cassette tape was designed. On the cassette recorder, the user was informed about pressing “RECORD” when there was required to write data by system. And, to notify the system, press “RETURN” on the keyboard. Also, on the cassette recorder, the user needed to press the “PLAY” button when the system required to read data.

9. Flat file systems

The subdirectories are not available in the flat system. It contains the only directory, and all files are held in a single directory. Due to the relatively small amount of data space available, this type of file system was adequate when floppy disk media was available for the first time.

Difference between File System and DBMS

File System :
The file system is a way of arranging the files in a storage medium like a hard disk. The file system organizes the files and helps in the retrieval of files when they are required. File systems consist of different files which are grouped into directories. The directories further contain other folders and files. The file system performs basic operations like management, file naming, giving access rules, etc.

Example: NTFS(New Technology File System), EXT(Extended File System).

DBMS(Database Management System) :
Database Management System is software that manages the collection of related data. It is used for storing data and retrieving the data effectively when it is needed. It also provides proper security measures for protecting the data from unauthorized access. In Database Management System the data can be fetched by SQL queries and relational algebra. It also provides mechanisms for data recovery and data backup.

Example:

Oracle, MySQL, MS SQL server.

DBMS

Difference between File System and DBMS:

Basis File System DBMS
Structure The file system is software that manages and organizes the files in a storage medium within a computer. DBMS is software for managing the database.
Data Redundancy Redundant data can be present in a file system. In DBMS there is no redundant data.
Backup and Recovery It doesn’t provide backup and recovery of data if it is lost. It provides backup and recovery of data even if it is lost.
Query processing There is no efficient query processing in the file system. Efficient query processing is there in DBMS.
Consistency There is less data consistency in the file system. There is more data consistency because of the process of normalization.
Complexity It is less complex compared to DBMS. It has more complexity in handling as compared to the file system.
Security Constraints File systems provide less security in comparison to DBMS. DBMS has more security mechanisms as compared to file systems.
Cost It is less expensive than DBMS. It has a comparatively higher cost than a file system.
Data Independence There is no data independence. In DBMS data independence exists.
User Access Only one user can access data at a time. Multiple users can access data at a time.
Meaning The user has to write procedures for managing databases The user is not required to write procedures.
Sharing Data is distributed in many files. So, not easy to share data Due to its centralized nature sharing is easy
Data Abstraction It gives details of storage and representation of data It hides the internal details of the Database
Integrity Constraints Integrity Constraints are difficult to implement Integrity constraints are easy to implement
Example Cobol, C++ Oracle, SQL Server

Database management system (DBMS)

It is defined as a software system that allows the user to define, create and maintain the database and provide control access to the data.

DBMS is a collection of programs used for managing data and simultaneously it supports different types of users to create, manage, retrieve, update and store information.

Differences

The major differences between the file management system and database management system (DBMS) are as follows −

File Management System Database Management system
Small system. Large system.
Relatively cheap. Relatively expensive.
Few files. Many files.
Need an individual application program to perform any operation on data files. Using a single command any operation can be performed on data files.
Transaction management is difficult. Transaction management is easy.
Programming is done using COBOL, C, and PASCAL called 3GL. Programming is done using SQL which is a 4GL.
Simple structure. Complex Structure.
No Security. Rigorous Security.
Simple, primitive backup or recovery. Complex and sophisticated backup or recovery.
Single user. Multiple users
Duplication of data cannot be minimized. Duplication of data can be minimized.
Data Consistency is less. Data consistency is more because of normalization.
It stores unstructured data. It is used for storing structured data.

FAQ

To Get Daily Health Newsletter

We don’t spam! Read our privacy policy for more info.

Download Mobile Apps
Follow us on Social Media
© 2012 - 2025; All rights reserved by authors. Powered by Mediarx International LTD, a subsidiary company of Rx Foundation.
RxHarun
Logo