
Re: $BadClus File Sparse flag set "1" for $DATA (0x80)-Attribute
Hi,
Quote:
After some deeper digging with Disc Editors we found that there is a difference in the MFT:
The "Sparse"-Flag is now set to "1" for the second $DATA (0x80)-Attribute of the $BadClus File.
Do you mean the flag is not the same in the original partition and in the cloned one after the cloning, or can this be the consequence of some subsequent action ?
Quote:
After some deeper digging with Disc Editors we found that there is a difference in the MFT:
The "Sparse"-Flag is now set to "1" for the second $DATA (0x80)-Attribute of the $BadClus File.
This is probably meaningless as long as no cluster is marked bad (with the $Bad attribute being just a single hole). When a cluster is marked bad, it is recorded in the $Bad attribute, a flags with value 0x8000 is inserted in the "Attribute flags" field of the $Bad attribute, and a flag with value 0x200 is inserted into the general "File attributes".
So, what does the "Runlist" of $Bad attribute look like ? Simply post the output of :
Code:
ntfsinfo -fvi 8 /dev/partition
Quote:
Now the question is if this is an intended change in the behavior for the newer version - meaning is it a feature or a bug?
AFAIK ntfs-3g and ntfsclone never make any modification to $BadClus. There are only two situations where $BadClus is modified : by using the --clear-bad-sectors option in ntfsfix, and by resizing the partition by ntfsresize. Did you use one of these tools ? Also did you use chkdsk (which marks bad the clusters it cannot read) ?
Quote:
Now the question is if this is an intended change in the behavior for the newer version - meaning is it a feature or a bug?
There has been a recent change in ntfsresize to discard the bad clusters which are not part of a shrunken partition. This may have caused unintended behavior.
Quote:
And more importantly is this setup (having sparse-flag set the $BadClus file) inside of the NTFS specification
Only Microsoft has access to the NTFS specifications, and we have to guess from what is disclosed or experienced. Experimentally the sparse flags has been found to be set by Windows when at least one of the $DATA attribute is made sparse, and the flag is not cleared when all the holes of the $DATA attribute have been filled.
Quote:
meaning can i ignore the one tool that marks the partition as faulty?
It should be expected such a tool issues a warning if it finds a cluster marked bad. However there must be some other reason for it to declare the partition as non formatted. Anyway I would be surprised if a wrong sparse flag in $BadClus had any consequence in Windows or ntfs-3g.
Regards
Jean-Pierre