On Feb 7, 12:52Â pm, dheeraj jatwani
wrote:
> Hi
>
> I am using Xp Pro with NTFS file format. When ever there is unexpected power
> failure or unexpected shut down then my system is not performing automatic
> disc  check for errors(saying system will perform error check....press any
> key to cancel) which XP generally performs under such situations but opens
> normally.Any idea why its not performing automatic disc check??
A power interruption will sometimes result in the dirty bit being set
for a volume. A power interruption may not result in the dirty bit
being set. Since a power interruption is an unnatural way (not
graceful) to shutdown the system, it is a good thing to let chkdsk run
when XP thinks it is necessary. XP is doing what it is supposed to do
to try to make sure things are okay after being insulted.
Normally, each volume will be checked by autochk when XP starts to
load. If the dirty bit is set on a volume, chkdsk will run. If the
dirty bit is not set, chkdsk will not run - but the volume will be
checked.
If chkdsk completes successfully, the dirty bit will be cleared and
chkdsk will not run again on the next reboot (unless the volume is
dirty again).
When chkdsk runs automatically on a reboot, the results are shown in
the Event Viewer Application log sourced by Winlogon:
Event Type: Information
Event Source: Winlogon
Event Category: None
Event ID: 1001
Description:
Checking file system on C:
The type of the file system is NTFS.
A disk check has been scheduled.
Windows will now check the disk.
CHKDSK is verifying Usn Journal...
Usn Journal verification completed.
39070048 KB total disk space.
25151976 KB in 78653 files.
48256 KB in 10264 indexes.
0 KB in bad sectors.
237080 KB in use by the system.
65536 KB occupied by the log file.
13632736 KB available on disk.
4096 bytes in each allocation unit.
9767512 total allocation units on disk.
3408184 allocation units available on disk.
Windows has finished checking your disk.
Please wait while your computer restarts.
"Trying" fsutil dirty will not tell you anything - it is not even a
complete command, but you can certainly try it.
Using fsutil you can set or query the dirty bit on a volume, but you
cannot clear the dirty bit with fsutil.
Assuming the drive is C, open a command window by clicking Start, Run
and in the box enter:
cmd
Clcik OK to open a command window.
To query the dirty bit, execute the following command:
fsutil dirty query c:
To set the dirty bit, execute the following command:
fsutil dirty set C:
If you set the dirty bit and reboot, expect chkdsk to run on the next
reboot.
NTFS volumes are designed to reduce the likelihood of errors and
fragmentation, but they are not immune to either.
Designed to prevent it, but not immune to either.