MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]


Switch to mobile style


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Strange, benign, undetected NTFS metadata corruption
PostPosted: July 4th, 2024, 13:17 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
Some time ago I replaced a 160GB HDD with a 1TB SSD and used Samsung's Data Migration Tool to clone the drive. The original HDD had a 160 GB Windows 10 NTFS partition, and this was cloned to a 900GB partition on the SSD. The SSD now has 325GB of data, about double that of the HDD. The system has been running without issue for several years.

Recently I was examining various NTFS metafiles with DMDE. I noticed that the INDX record for the root directory contained a $Bitmap entry with an Allocated Size of 4886528 and a Size of 4883760. However, the corresponding $MFT record for $Bitmap reported figures of 27471872 and 27471448 bytes for the same parameters.

My first thought was that perhaps this was a sparse file. However, an examination of the file contents revealed the expected bitmap data, ie one bit per cluster, 1 = in-use cluster, 0 = free cluster.

The cluster size is 4KiB, so a 160GB NTFS volume should have a $Bitmap of size ...

    (160 GB / 4KiB) / 8 = 4882812 bytes

For a 900GB NTFS volume, the size is 27465820 bytes.

So it would appear that the $MFT record reflects the size of the 900GB bitmap whereas the INDX reflects the 160GB bitmap. The used space is now double that of the original NTFS volume. Moreover, CHKDSK reports no errors.

This suggests that the $MFT record takes precedence over the INDX, and the INDX inconsistency appears to be ignored by CHKDSK.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Strange, benign, undetected NTFS metadata corruption
PostPosted: July 4th, 2024, 15:05 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4753
Location: Hungary
question is how that samsung tool migrates the data. I guess there might be a bug in that tool. Generally, INDX is just an index, probably only MFT record number is used to find file record of a file in a folder. Everything else is taken from the file record once found. This makes sense, MFT is the boss after all...

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: Strange, benign, undetected NTFS metadata corruption
PostPosted: July 4th, 2024, 15:18 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
What is CHKDSK doing, if not verifying the "linkage" between INDX and MFT? Or is it just walking down the file/folder tree via the INDX-es?

Code:
Stage 2: Examining file name linkage ...
Progress: 1922 of 1947028 done; Stage:  0%; Total: 27%; ETA:   0:01:56 ...
...
Progress: 1947028 of 1947028 done; Stage: 100%; Total: 81%; ETA:   0:00:38 ...
                                                                                       
  1947028 index entries processed.                                                       

Index verification completed.
Phase duration (Index verification): 1.85 minutes.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group