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!

How do I stop running Disk Check?

Status
Not open for further replies.

Nohjekim

Technical User
Apr 8, 2001
270
US
My computer has started running Disk Check on one of my partitions every time that my computer boots.

I have run restore and gone back to before it started doing this but it still does it.

If I try to run Defrag it will not do it on this partition because it says it is scheduled to run Disk Check.

How do I get it to stop doing this, it never finds anything wrong.

Mike
 
There's a few of possibilities -


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

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

or:
Another Option: 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 performedf at startup, change the value to: autocheck autochk /f *
If you don't want any checks to be performed, delete all autocheck entries
 
Further reading here too.


You Receive a "System Has Recovered from a Serious Error" Message After Every Restart (Q317277)
The fix in this might work for Chkdsk.


thread751-239387


To know if you've got a file system error, you can type the following command at the command prompt:

fsutil dirty query c: (replace c: with your drive letter)

If the response is that the volume is dirty, then a file system error has occurred, and Chkdsk should run automatically at startup to fix the errors, or you can schedule Chkdsk to run if you want. Having Chkdsk run automatically (without having been scheduled) at every reboot might indicate a hardware problem.
 
I still haven't solved this problem, there is no indication that there is an error on the drive it just runs Check Disk every time it starts.

I looked in the Registry and did not find an entry...

"SFCScan"

The closest I could come up with was...

SFCDisable REG_Dword 0x000000000 (0)

I tried setting this to (1) but that didn't make any difference.


The Boot execute command reads...

BootExecute REG_MULTI_SZ autocheck autochk *

This is the only entry I can find.

I'm still stuck any ideas welcome.

Nohj
 
Did you restore those original Registry settings you changed because altering SFCDisable you are halfway towards disabling Windows File Protection?

Did you try recreating your Paging File?

Would it be a viable solution to save any valuable data from this partition and then reformat it? You haven't said what is on this partition.

 
Yes, I did restore the original settings.

I have considered moving everything formatting it and the moving it back.

However I don't want to do this if there is a simpler way to do it. There is about 12 Gigs of data on the disk, mostly programs and some graphics files. All the Adobe graphics programs etc.

I'm not sure that that would do it any way. It keeps telling me that the disk is scheduled to be disk checked. It won't let me defragment because of that.

If I format it and the instruction is still on my C:\ drive it will still do it. It never indicates that there is any problem with the drive.

There must be an instruction stuck some where that tells it that it is scheduled to be disk checked, how do I change that. This is only annoying not a serious problem but it drives me crazy.

Nohj

 
This problem may occur because after a Minidump (or memory dump) file is written, the paging file continues to have a flag set that indicates that a memory dump file needs to be written.

This maybe the flag setting that is making Chkdsk run too.

Have you tried the Paging file fix in the article Q317277?
 
Nohjekim, I asked because I'm running home and don't have SFCSCAN either.
My bootexecute entry is: autocheck autochk /p \??\C: autocheck autochk *
(spaces after "p" and before "*"
 
I don't have those instructions, only the autocheck autochk *, and the only command I have seen mentioned is /f.

Maybe some one here can explain what the /p command does.

Nohj
 
Nohjekim FWIW;
Prevent AutoChk From Running
Description
Ensures that Autochk.exe will not run against drive C the next time the computer reboots, even if the "dirty bit" has been set on drive C. Requires Windows XP or Windows Server 2003.

Script Code

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objDisk = objWMIService.Get("Win32_LogicalDisk")
errReturn = objDisk.ExcludeFromAutoChk(Array("C:"))
Wscript.Echo errReturn



 
Prevent Autochk from Running
When you run the chkdsk /f /r command, Windows prompts you to state whether you want to schedule Chkdsk to run the next time the system is started. To prevent the chkdsk /f /r command from running, follow these steps:
1. Start Registry Editor.
2. Locate the following subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Control\Session Manager
3. Change the BootExecute entry from
autocheck autochk * /p \??\C: autocheck autochk *
to the following:
autocheck autochk *
If you scheduled Chkdsk for multiple volumes, there is an autocheck entry for each volume. Repeat steps 2 and 3 of this procedure for each volume that you do not want checked. If you want to determine which volumes will be checked during the next startup process, view the entries in the BootExecute registry key.

This is from:
 
Good News and Bad News!!!

The Good News is that my computer does not run Disk Check at boot anymore.

The Bad news is that when I installed the Windows Update...
(Q317277), my computer failed to restart to the extent that I could not get it to start in any mode.

I could not run the repair function either.

So I have had to do a completely clean installation of both Windows and Service Pack 1.

I have spent all day getting things back up but it is running very well now, and this is the first time that I have been able to get Service Pack 1 to install with out a blue screen.

Thanks for the help everone.

Nohj
 
Nohjekim, Glad you got it solved.
With a clean install, what do you show in BootExecute?
 
bullhlms, how are your instructions different than the third option I posted above?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top