On 5/18/05 11:16:06, Jerold Schulman wrote:
>>My problem is this: I wanted to force a chkdsk on boot, kind of
>>programmatically. I read that if the dirty bit is set, autochk runs that
>>boot time chkdsk. I also read that with fsutil I can both query and set the
>>dirty bit of an NTFS partition. So I did -- but now there's no boot time
>>chkdsk on that drive anymore.
> Make sure that the BootExecute Value Name at
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
> is set to
> autocheck autochk *
Thanks for your help. The pointer to this registry entry was valuable, even
though it didn't provide a solution yet...
This key was set to
autocheck autochk /p \??\C:
autocheck autochk *
According to the information I found, this is supposed to unconditionally
run chkdsk on the C: drive (and then do the normal check for dirty drives).
Yet this didn't happen. I deleted the first line, left the second (the
default line) and rebooted. No chkdsk on the C: drive happened (even though
chkntfs and fsutil still show the dirty bit to be set).
> Once that is done, try tip 58 in the 'Tips & Tricks' at
> http://www.jsifaq.com
This tip basically told me to run "chkdsk c: /f" and answer "y" when asked
whether I want a boot time check. I did this, and it put the "autocheck
autochk /p \??\C:" line back into the BootExecute value -- put it back to
where it was before I deleted that line. Rebooted, and still no chkdsk on
boot.
This all happened after I used fsutil to set the dirty bit (chkdsk ran fine
on boot before that).
Any other ideas? Is there any way to clear the dirty bit?
Thanks,
Gerhard