The "Dirty Bit" is set by the file system itself only if it detects a
problem. The dirty bit can be set because the volume is online and has
outstanding changes, because changes were made to the volume and the
computer shutdown before the changes were committed to disk, or because
corruption was detected on the volume. If the dirty bit is set when the
computer restarts, chkdsk runs to verify the consistency of the volume.
Every time your computer starts Autochk.exe is called by the Kernel to scan
all volumes to check if the volume dirty bit is set. If the dirty bit is
set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f
verifies file system integrity and attempts to fix any problems with the
volume.
When Autochk runs against a volume at boot time it records its output to a
file called Bootex.log in the root of the volume being checked. The Winlogon
service then moves the contents of each Bootex.log file to the Application
Event log. One event log message for each volume checked is recorded.
You can Explorer|"drive"|File|Properties|Tools|Check Now and check the
boxes. Also the article may help you.
CHKNTFS.EXE: What You Can Use It For
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q160963
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
:
Hello Dave..
Thank you so very much for responding..
I was wanting to run chkdsk or autochk on the NEXT boot only,
prior to windows booting... This is in prep for my weekly defrag
and (or partition management (move/resize/create etc)). I can
run a batch file from the Windows CLI OK but it will not lock
(dismount) the partitions to /f. If I could run it while booting
that would be much more convenient for my needs. I just don't
know how to call the batch file.. Via Boot.ini?? In Real DOS I
would just run it from autoexec.bat.
Does the dirty bit get set if there are cross linked files or
lost clusters?? I don't think so.. I think the only way to find
those types of errors is to run chkdsk/autodsk. I would like to
run it with the /f switch on every partition, prior to
significant disk manipulation.
I was wondering if I could insert the appropriate lines in the
Registrys 'RunOnce' section for each partition to be 'chkdsk.exe
c: /f' (or bootdsk?). Once run the lines would be removed..
right? When I wanted to do it again, reinstall the same .reg
segment? This way I could set it up in the Scheduler I think and
not forget.
Why does such a simple task have to be so difficult.. Just wanna
run chkdsk/bootdsk /f at boot time when I need too. It will not
find errors unless the dirty bit is set (from a bad shutdown),
then it will run, but in the meantime you may have a lot of lost
clusters & cross linked files, that continue to cause disk errors
until the dirty bit is set.
Does that make sense?? Am I asking too much of Windows 2K pro??
Of Microsoft??
I sincerely appreciate you taking the time to respond and for
sharing your bat file.. I have one too. Pretty similar, but
instead of 'pause' I have 'delay 5'. Will try 'pause' and see if
that is better.
Peace to you and yours.. -<-* Lynlee
-----Original Message-----
Lynlee - chkdsk is a command. To see its syntax, go to a command prompt
and type: chkdsk /?
Chkdsk.exe with no parameters except drivename (c: for example) should
always run, and will generate a short report showing either trouble
found or no trouble found.
Chkdsk.exe with /f /r will attempt to repair a partition but only if it
can lock the partition for exclusive use. If it cannot, it will offer to
run at next boot, before the OS is fully loaded. It sounds like you are
dealing with the fix/repair option against 11 partitions that chkdsk
cannot lock.
I have found a simple BAT program very useful. It runs chkdsk serially
from the command prompt against (it so happens) 11 partitions on this
machine, but only reports its findings for each, then pauses so I can
note whether a particular partition needs a fix/repair. It doesn't take
long to run. It is named CHKDNFIX.BAT, and is this:
chkdsk c:
pause
chkdsk d:
pause
..
..
..
chkdsk m:
echo FINISHED ALL DRIVES
pause
partitions at once.. Currently I have to go to each partitions properties
and tell it to check the partition, then it tells me I cant and asks if I
want to do it on the next boot.. I say yes.. I have to do this for 11
partitions.. Surely there has got to be a better way.. Afterall, in Win98
you could tell it to check all!
Much Thanks.. Sorry for butting in on this thread but it was loosly related..
Peace.. -<-* Lynlee
-----Original Message-----
Check Event Viewer for the results.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
:
hi all
i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.
thanks
alok
.
.