File Systems and Their Role in Operating Systems

Eyüp İliş
5 min readNov 1, 2023

--

A file system in an operating system decides the way the contents of its storage medium (secondary memory, etc) are stored and organized. Examples of filesystems are btrfs, xfs, zfs, ext series, ntfs, etc. These filesystems differ in aspects of implementation, use cases, etc. A filesystem is essential in the proper and efficient functioning of an operating system.

File systems are a set of rules and structures used to organize and access data on a computer. A file system provides a directory structure that defines all the files and directories on the computer. It also determines how files are stored and how they are accessed.

Each file system has its own advantages.

1. FAT (File Allocation Table): FAT is one of the oldest and most common file systems. Due to its simple and efficient structure, it is widely used in small portable storage devices.

· Compatibility with different operating systems− FAT is a widely used file system that is compatible with many different operating systems, including Windows, Mac OS, and Linux. This makes it easy to share files between different computers and devices.

· Easy to implement− FAT is a relatively simple file system that is easy to implement on different types of storage devices. This makes it a popular choice for removable storage devices such as USB drives and SD cards.

· Supports large disk sizes− FAT supports large disk sizes, with the FAT32 version capable of supporting disks up to 2 terabytes in size. This makes it a suitable file system for modern storage devices with large capacities.

· Reduced risk of data corruption− The FAT file system uses a journaling mechanism to minimize the risk of data corruption due to power failures or other system crashes. This helps to ensure the integrity of stored data and prevent data loss.

2. NTFS (New Technology File System): NTFS is a more advanced file system that was introduced with Windows NT. It supports larger file sizes, better security features, and improved performance compared to FAT. NTFS uses a master file table to keep track of files and directories, and it includes features such as file compression, encryption, and disk quotas. NTFS is the default file system for most modern versions of Windows.

NTFS is more complex than FAT because of its more advanced features and security features.

3. EXT4: It is a file system used in Linux operating systems. It has similar features to NTFS, but it is more efficient.

· Large File and Volume Support: EXT4 caters to extensive storage needs by supporting large files and volumes.

· Delayed Allocation: A performance-enhancing technique, delayed allocation improves performance and disk integrity by delaying block allocation until data is written to the disk.

· Unlimited Subdirectories: EXT4 provides flexibility in file organization by supporting an unlimited number of subdirectories in a single directory.

· Journal Checksums: Journal checksums enhance reliability and slightly improve performance by preventing disk I/O delays during journaling.

· Multiblock Allocator: The multiblock allocator improves performance by efficiently organizing files on disk.

4. HFS+: HFS (Hierarchical File System) is a file system primarily used in macOS operating systems, organizing files and directories in a hierarchical structure.

  • · Efficient use of disk space: More allocation blocks mean a smaller allocation block size, especially on 1 GB or more prominent volumes, which means less average wasted space, and you can have more files as the available space can be more finely distributed among multiple files.
  • · International-friendly file names: HFS+ uses Unicode instead of Mac OS Roman to store file names. Allowing up to 255 characters makes setting descriptive words as file names easier, and long computer-generated names are advantageous.
  • · Future support for named forks: HFS+ has an attribute file to store additional information for files. The data can be kept with the file as it is moved or renamed and deleted when the file is deleted.
  • · Ease booting on non-macOS operating systems: HFS+ has a particular startup file as an unstructured fork, which can be found easily during system startup. It is handy on macOS or other OS that don’t have HFS/HFS+ support in ROM. It generalizes the HFS boot blocks in many respects, providing a more extensive, variable-sized storage.

5. APFS: Apple’s next-generation file system. It is more efficient and secure than HFS+.

· High performance: APFS is more efficient than traditional file systems. This allows for faster discovery and access of files and directories.

· Strong security: APFS offers strong security features that ensure that files and data are protected.

· Flexibility: APFS is compatible with different storage devices and devices.

The article explored the importance of file systems in operating systems, highlighting examples such as btrfs, xfs, zfs, ext series and ntfs. Each file system has unique advantages in organizing and accessing data. Whether it is the simplicity of FAT, the advanced features of NTFS, or the efficiency of ext4, the goal will provide valuable information to a different audience. Understanding these systems is very important in the world of technology and I hope this article will be useful for all our readers.

Contact: https://www.linkedin.com/in/eyupilis / eyupiliss@gmail.com

--

--