Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chkdsk.exe keeps running at startup

Status
Not open for further replies.

cderow

Technical User
Jul 13, 2001
216
US
Hello,
I am having an issue with a laptop that has Windows 2000 Prof. SP4 running on it. Everytime, I boot up or restart this laptop, chkdsk.exe runs a scan on the harddrive. As a result, the scan finds nothing wrong and allows me to move along without a problem.

I have checked the health of the harddrive and it is healthy. The disk is no where near capacity. Everything functions fine. I then checked the Tasks and Startup folders to make sure the user did not have ckdsk running at startup. I found nothing. Besides this, I see no other signs of disk failure...yet. Finally, I scheduled a disk scan to happen on the next startup. I ran it until it was finished (no problems were found), and I still get the same result.

As far as patches, this laptop is all up to date and there seems to be nothing on MS's site regarding this issue. Any other suggestions are greatly appreciated.
 
This is actually a p.i.a. to fix, as there are several possible issues:

I am going to just quote Kelly Theriot's notes:

Go to Start/Run/CMD and type in: fsutil dirty query c:
(Modify the drive letter accordingly)

If it comes back as dirty, it hasn't cleared. For more information go to Start/Run/CMD and type in: CHKNTFS /?

Option: From a command prompt type chkntfs /D and then reboot, a chkdsk should run but not again on next boot.

This edit does not work for all users, circumstances depending:

Disable or Enable CheckDisk Upon Boot (Line 82)

To use the Regedit: Save the REG File to your hard disk. Double click it and answer yes to the import prompt. REG files can be viewed in Notepad by right clicking on the file and selecting Edit.

Chkdsk Runs Each Time That You Start Computer

Checkpoint:

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Highlight the Winlogon file.

In the list look for "SFCScan", this should be set to (0) if it is set to (1) the scan will happen at every boot.

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

Look for the REG_MULTI_SZ value with the following name: BootExecute. This value contains commands that will be executed at startup. The default value is: autocheck autochk *

After scheduling one or more chkdsks, the entry will contain one or more autochk lines. Delete each of these lines and put the default one in place.

If you always want a check to be performed at startup, change the value to: autocheck autochk /f *

If you don't want any checks to be performed, delete all autocheck entries.

Last checkpoint: Modify as needed:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\cleanuppath
Registry entry should read: %SystemRoot%\system32\cleanmgr.exe /D %c

How to schedule a CHKDSK on every boot
Chkdsk Runs Each Time That You Start Computer After Upgrade to Windows XP

Scandisk after a Bad Shutdown - Go to Start/Run/CMD and type in: CHKNTFS/T:4
Where 4 is the amount of waiting time.

Automating Disk Cleanup Tool in Windows
An Explanation of CHKDSK and the New /C and /I Switches

Use the scheduler and run chkdsk with the automatic switches for unattended operation (chkdsk /? will list the options for you). To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks. You can also use TweakUI to automatically login if you have logged off the system to allow chkdsk access.

Restore Disk Cleanup - cleanmgr (Line 84)

Disk Cleanup freezes during the Compressed File Phase: This edit correct the problem:

Disk Cleanup - Compressed Old Files Freezes (Line 48)

To use the Regedit: Save the REG File to your hard disk. Double click it and answer yes to the import prompt. REG files can be viewed in Notepad by right clicking on the file and selecting Edit.


Bcastner suggests that you ignore the XP tone of the above. The steps should work for Win2k.

Best,
Bill Castner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top