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



The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT 3.1
  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT 3.5
  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT 3.51
  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT 4.0

This article was previously published under Q175414

SUMMARY

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).

Modification Type:MinorLast Reviewed:5/24/2004
Keywords:kbprb KB175414