
Re: Dirty flag and Documentation
Hi,
Quote:
The dirty flag has been set by me, effectively. I'm working with an ntfsclone'd image of a sysprep'd Windows install. I'm using ntfsresize to adjust the file system to the new volume size
Then the dirty flag is relevant : ntfsresize has to be applied before the partition is shrunk, and it cannot determine the exact new size of the partition. Moreover the partition sizes given to ntfsresize and to the partition editor are given roughly (such as a GB count) and the partition editor has to make alignments depending on the partition model, which ntfsresize does not know.
As a consequence ntfsresize cannot create the backup boot sector on the last sector of the partition, which is very important when the normal boot sector is damaged.
Quote:
So far, I have yet to see chkdsk find an issue when it runs.
chkdsk fixes the backup boot sector silently (even if it is correct, by the way).
Recent ntfsfix'es also fix the backup boot sector, in the attached patch I have added a new option "-d" to clear the volume dirty flag provided ntfsfix can mount the partition (after fixing it). Please try, after the partition is resized by the partition editor.
Regards
Jean-Pierre