MSDN Documentation

NTFS (New Technology File System) Concepts

NTFS is the standard file system for Microsoft Windows, offering advanced features and robustness for modern operating systems. This document provides an overview of its key concepts.

Master File Table (MFT)

The Master File Table (MFT) is the heart of an NTFS volume. It's a special file that contains records for every other file and directory on the volume. Each record in the MFT is typically 1 KB in size and describes a file or directory by storing its attributes.

For larger files, the MFT record stores pointers to the file's data clusters on the disk.

File Attributes

NTFS uses a rich set of attributes to describe files and directories, providing flexibility beyond simple file storage.

Journaling

NTFS implements a log file ($LogFile) that records all metadata changes before they are written to the MFT or other files. This journaling mechanism ensures file system consistency and allows for quick recovery in case of system crashes or power failures.

When the system restarts, NTFS reads the log file to identify any operations that were interrupted and can either complete them or roll them back to restore the file system to a consistent state.

Security and Permissions

NTFS provides robust security features through Access Control Lists (ACLs). Each file and directory can have an ACL associated with it, specifying which users or groups have what level of access (e.g., read, write, execute, modify).

ACLs are stored in the Security Descriptor attribute of an MFT record. This granular control is fundamental to Windows security.

Hard Links and Symbolic Links

NTFS supports both hard links and symbolic links, offering powerful ways to manage file references:

Reparse Points are the NTFS mechanism used to implement these types of links.

Other Advanced Features

Understanding these NTFS concepts is crucial for managing Windows file systems effectively and leveraging its advanced capabilities.