Microsoft KB Archive/175414

{|
 * width="100%"|

PRB: Writing to a File Prior to Load Phase 7 Starts Chkdisk.exe

 * }

Q175414

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) for Windows NT, versions 3.1, 3.5, 3.51, 4.0

-

SYMPTOMS
A file write operation from a device driver that is loaded prior to Autochk.exe causes Chkdisk.exe to execute. This occurs even though the last shutdown was clean.

CAUSE
The Autochk.exe utility, which performs the sanity check on a file system when the system loads, runs at the end of Phase 5 of the system load process. Any file write operation by a device driver that loads prior to the Chkdisk.exe causes the dirty bit to set in the volume control block of the drive. When Autochk.exe runs and finds the volume dirty (that is, the dirty bit set in the volume control block) it starts Chkdisk.exe, regardless of whether or not the last shutdown was clean.

This is by design.

RESOLUTION
Do not perform file IO from driver initialization routine of any drivers that is loaded prior to SERVICE_AUTO_START (Start=2).

Keywords :

Issue type : kbprb

Technology : kbAudDeveloper kbWinDDKSearch kbWin32sSearch kbWin32DDKSearch kbWin32DDKNT310 kbWin32DDKNT350 kbWin32DDKNT351 kbWin32DDKNT400 kbWin32DDKNTSearch