DiskSalvor › Help

Inside NTFS

How drives work · How NTFS finds your files through the Master File Table and folder listings, and why files can be recovered when parts of the MFT are lost.

Boot sector"the MFT starts atcluster N" Master File Table (MFT) #0 $MFT: where the MFT itself is#1 $MFTMirr · #2 $LogFile · #3 $Volume #5 the top folder ( \ )#6 $Bitmap: which clusters are in use #64 "Photos" (a folder)#109 "beach.jpg" (a file)… one record (1 KB) per file or folder piece 1 of the photopiece 2 Data area
Header"FILE" · record numberin use / deleted Datescreated · modifiedaccessed · changed Name + parent folder"beach.jpg", in folder #64(long name and 8.3 short name) Data: size + where the pieces are"45,312 bytes: 6 clusters at 81,920, 4 at 90,113"tiny files (under ~700 bytes) live right here Every record is self-contained and starts with the letters FILE, so a scan can find records anywhere on the disk, even when the MFT's own map is lost.

The boot sector says where the MFT starts. The MFT holds one record per file or folder, and each record says where that file's contents are in the data area, possibly in several pieces (fragments). Each folder also keeps a sorted list of its contents in INDX blocks, so names are written in two places.

A record stores its folder only as a number. To show "Photos\2024\beach.jpg", the folder's own record must be readable too. If it isn't, the file is fine but has lost its place. That's why DiskSalvor can show "Lost folder #N" and then try to restore the real folder names from the INDX blocks (deep search).

Other system files: $LogFile (a journal of changes in progress, replayed at mount), $Bitmap (which clusters are in use), $UpCase, $Secure (permissions), $Extend\$UsnJrnl (a log of recent changes), and the MFT's own bitmap.

← PreviousFile systems comparedNext →Inside FAT32 and exFAT

Free help for a failing drive

DiskSalvor is free, open-source data recovery for failing drives on Windows. It never writes to the drive, gets the easy files off first, goes back for the rest round by round, and explains what it's doing in plain English. No file limits, no paid edition, no account.

Start here if your drive is failing

How drives work

Reference