Darkwing99
Programmer
Hi,
first the things I already know:
Windows checks at startup the "hard disk error bit" and the "clean shutdown bit". If any of them is set to ZERO, Windows performs a SCANDISK.
You can find Infos about the bits here:(the article is for Win95 but VFAT hasn't changed in that way)
>
> The Clean Shutdown and Hard Disk Error bits are the two
> low-order bits of the FAT entry for cluster 1. If bit 0
> is 0, it indicates an unclean shutdown; if bit 1 is 0, it
> indicates that a hard disk error occurred on that drive.
> These bits are turned on by VFAT; they are turned off
> only by ScanDisk. The Clean Shutdown bit is turned off
> upon completion of a standard run. The Hard Disk Error bit
> is turned off upon completion of a surface scan
> (regardless of whether errors were repaired).
>
To check if the "hard disk error bit" is set you can run the folowing command in the command prompt(if works for FAT-Volumes as well):
CHKNTFS c:
To reset the bit you have to run a SCANDISK with a complete surface scan. That can last for hours (depending on your harddisk-speed and -size).
Now the part I don't know:
Is there a way to reset the bit manually or in a faster way than SCANDISK with surface-scan?
Regards,
Thomas
first the things I already know:
Windows checks at startup the "hard disk error bit" and the "clean shutdown bit". If any of them is set to ZERO, Windows performs a SCANDISK.
You can find Infos about the bits here:(the article is for Win95 but VFAT hasn't changed in that way)
>
> The Clean Shutdown and Hard Disk Error bits are the two
> low-order bits of the FAT entry for cluster 1. If bit 0
> is 0, it indicates an unclean shutdown; if bit 1 is 0, it
> indicates that a hard disk error occurred on that drive.
> These bits are turned on by VFAT; they are turned off
> only by ScanDisk. The Clean Shutdown bit is turned off
> upon completion of a standard run. The Hard Disk Error bit
> is turned off upon completion of a surface scan
> (regardless of whether errors were repaired).
>
To check if the "hard disk error bit" is set you can run the folowing command in the command prompt(if works for FAT-Volumes as well):
CHKNTFS c:
To reset the bit you have to run a SCANDISK with a complete surface scan. That can last for hours (depending on your harddisk-speed and -size).
Now the part I don't know:
Is there a way to reset the bit manually or in a faster way than SCANDISK with surface-scan?
Regards,
Thomas