File system

Also known as: filesystem

On this page 7

A file system (also written filesystem) is the combination of on-disk data structures and operating system code that organizes a storage volume into named files and directories, records where each file’s data is located, and stores metadata such as size, timestamps and permissions. In OS storage, it is the layer that turns a raw range of disk blocks into something applications and people can use by name.

Every formatted disk volume carries exactly one file system, chosen when the volume is formatted. The choice determines the maximum file and volume size, crash resilience, permission model and which operating systems can read and write the volume, which is why formats such as NTFS, APFS, ext4, exFAT and FAT32 coexist rather than one replacing the rest.

How a file system organizes data

A file system divides a volume into fixed-size allocation units, also called clusters or blocks, and keeps metadata structures that describe how those units are used. A directory maps human-readable names to file records; each file record lists the clusters, or extents (contiguous runs of clusters), that hold its content; and a free-space map tracks which units are available.

When an application writes a file, the operating system’s file system driver finds free units, writes the data, updates the file record and directory entry, and adjusts the free-space map. Because these are several separate writes, a crash between them can leave the structures inconsistent. Modern designs therefore use journaling or copy-on-write to keep metadata consistent after a power failure.

The table below lists the core structures that almost every file system implements in some form.

StructureRoleExample implementation
Superblock or boot recordDescribes volume size, block size and layoutNTFS boot sector, ext4 superblock
File recordsStore size, timestamps, permissions and data locationNTFS MFT entries, ext4 inodes
DirectoriesMap names to file recordsB-tree or hashed directory indexes
Allocation mapTrack free and used unitsBitmaps or free-extent trees
Journal or logRecord pending metadata changesNTFS log file, ext4 journal
Core structures of a file system

Common desktop file systems

Each desktop platform has a native file system designed for its system volume, plus simpler formats intended for removable media and cross-platform exchange. The table compares the formats a desktop user meets most often.

File systemNative platformMaximum file sizeConsistency methodTypical use
NTFSWindowsMany terabytes in practiceMetadata journalingWindows system and data drives
APFSmacOSMany terabytes in practiceCopy-on-writeMac internal and external SSDs
ext4Linux16 TiB with 4 KiB blocksMetadata journalingLinux system and data volumes
exFATCross-platformVery large, no 4 GiB limitNoneUSB drives and memory cards
FAT32Cross-platform4 GiB minus one byteNoneSmall drives, firmware and boot partitions
Widely used file systems on desktop systems

Other notable designs include Btrfs and ZFS, which add copy-on-write snapshots and end-to-end checksums for detecting silent data corruption, and ReFS, which Microsoft positions for resilient server storage rather than general desktop use.

File system, partition and volume compared

A file system is one layer in a stack of storage concepts, and confusing those layers causes many mistakes during disk setup. A partition table such as GPT or MBR divides the physical disk; a disk partition or volume is a region within it; and the file system is the structure written inside that region by disk formatting.

LayerWhat it definesCreated by
Physical diskRaw sectors on an SSD or hard driveManufacturer
Partition tableWhere each partition begins and endsDisk initialization (GPT or MBR)
Partition or volumeA contiguous region used as one unitPartitioning tool
File systemFiles, directories, metadata and free spaceFormatting the volume
Files and foldersUser and system dataApplications and the operating system
Storage layers from the disk upward

A disk image packages an entire volume, file system included, into a single file, while a disk quota is a policy that a file system enforces to limit how much space each user may consume.

Choosing and configuring a file system

The right choice depends mainly on which operating systems need access and whether the volume holds a system installation. For internal system drives, the platform default is almost always correct; the real decisions arise with external and shared storage.

SituationRecommended formatReason
Windows system driveNTFSRequired features, permissions and journaling
Mac internal or external SSD for Macs onlyAPFSSnapshots, cloning and native encryption
USB drive shared between Windows and macOSexFATRead and write support on both, large files
Older devices, cameras or firmware toolsFAT32Broadest compatibility despite the 4 GiB limit
Linux server data volumeext4, XFS or BtrfsMature tooling and suitable performance profile
Selecting a file system for common situations

The allocation unit size is a secondary parameter. Small units, such as 4 KiB, waste less space on many small files, while larger units reduce metadata overhead for big media files. The default chosen by the formatting tool suits most volumes.

Limitations and common mistakes

  • Formatting erases the file system’s index, not necessarily the data; recovery tools may restore files, so formatting alone is not secure erasure.
  • Choosing FAT32 for video work fails as soon as a single file exceeds 4 GiB.
  • Removing a drive without ejecting it risks corruption on formats without journaling, such as exFAT and FAT32.
  • Running disk defragmentation on SSDs brings little benefit; modern systems send TRIM commands instead.
  • Relying on journaling as a backup is a mistake: a journal protects metadata consistency, not deleted or overwritten files.

Permissions and ownership are also format-specific. Copying files from NTFS or APFS to exFAT discards access control information, which matters when moving data between users or systems.

Understanding it simply

A file system is the filing method of a storage drive. Without it, a disk is just a huge row of numbered boxes with no labels. The file system adds the labels, a table of contents and a list of empty boxes, so the computer can find a document by its name.

Different file systems are like different filing methods. Some are simple and understood everywhere, while others add safety features such as a written record of changes in progress, so nothing gets lost if the power goes out halfway through.

Applied in practice

A video editor works on a Windows desktop at the office and on a MacBook at home, carrying projects on a 2 TB external SSD. The drive arrived formatted as FAT32, and the first attempt to copy a 9 GB camera file fails with an error that the file is too large.

After backing up its contents, the editor reformats the drive as exFAT with the default allocation unit size. Both computers can now read and write the same drive, and large camera files copy without problems. Because exFAT has no journal, the editor also makes a habit of ejecting the drive properly before unplugging it.