Helping people with computers... one answer at a time.

There are times when the disk checking utility needs to run before you boot into Windows. Sometimes it seems to get stuck and does so every time.

I have a two year old laptop running Windows XP. I had run "Defrag" and also clicked on the check drive for errors option, which was then scheduled at next restart.

Now this scan program runs every time I start up. How can I shut this off?

Good news: we can turn it off.

Bad news: it means editing the registry.

The "I'm not so sure" news: you shouldn't have to. It should have turned itself off, and I'm concerned that this might be trying to tell you something.

Checking your disk for errors requires that the checking utility have exclusive access to the hard disk. That means that even Windows can't be accessing the drive for any reason. If the disk drive you're checking is the drive on which Windows lives, the error check is then "scheduled" to happen automatically the next time you boot, before Windows loads. It looks much like this while it's running:

Chkdsk running at system boot time

"It's possible that there's an issue preventing the scanner from un-scheduling itself."

It should happen once. When the utility completes successfully, it should remove that request to run again on boot up, and then reboot. In other words, the next time you boot, which would be upon completion of the scan, it shouldn't check again.

Before I tell you how to turn it off, I want you to watch it one more time, this time paying particular attention to any error messages that it may produce before it completes. (A digital camera snapshot of the screen, as I've done above, is a great way to preserve the error massages before they disappear as the boot continues.) It's possible that there's an issue preventing the scanner from un-scheduling itself.

In order to disable the scan we'll be making changes in the Windows registry. Step one should be: back it up. This Microsoft Support article Description of the Microsoft Windows registry includes pointers to the recommended ways of doing so.

The short version, for those who are ready to dive into the registry: we're going to change the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute to autocheck autochk *.

Step by step that means:

  • Start the registry editor by clicking Start, then Run, typing in regedit and pressing OK. The result will be similar to this:

    Registry Editor at top level

  • Click on the boxed plus sign [+] in front of HKEY_LOCAL_MACHINE. That will expand and look something like this:

    Registry Editor with HKEY_LOCAL_MACHINE expanded

    Don't worry if your instance of Regedit already had some of these expanded; it remembers the last setting. Just follow along as if it hadn't been, expanding the nodes that we need if they're not already expanded.

  • Expand (by clicking the boxed plus sign in front of) SYSTEM

  • Expand CurrentControlSet

  • Expand Control

  • Now click on Session Manager, which is listed underneath Control and you should see something like this:

    Registry Editor open on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

  • In the right-hand pane, double click on BootExecute. This contains the instruction that we want to remove. You should get an edit dialog much like this:

    Registry Editor editting the BootExecute setting

    The command "autocheck autochk /p \??\C:" is what we want to change.

  • Change replace the "/p \??\C:" with an asterisk (*). The resulting command, "autocheck autochk *" in the dialog looks like this:

    Registry Editor editting the BootExecute setting complete

  • Press OK to dismiss the edit dialog.

  • Close Registry Editor

Now, on your next boot the disk checker should not run.

I say "should" because there are still things that may cause it to run anyway:

You didn't shut down your machine cleanly. Perhaps your machine crashed or suddenly rebooted. Or perhaps you were in a hurry and turned off the power before Windows said it was safe to do so. In both cases Windows may not have finished updating information on the hard disk on shutdown, so it must check the disk on start up to make sure that everything is ok.

The disk may be failing. It's sometimes the case that a disk drive, as it starts to fail, will do so in a way that causes Windows to notice and run the disk checking utility on start up. It's not common, but it can happen.

Article C2990 - April 9, 2007

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
29 Comments

Hi Leo, Is there any software that saves current settings at every step when I m working on my PC. if u can suggest me any this type of software that saves settings each time & chkdsk will not come at every boot.
if u an ans. plzzz mail me.
i m waiting...

Posted by: Vishal at July 27, 2010 7:54 AM

Is this CHKDSK error due to Power issue?

It can be, but there are many, many other possible causes as well.
Leo
19-Nov-2010

Posted by: suman at November 18, 2010 8:41 PM

My computer never gets into XP program, only keeps running CHKDSK when i restart it. shows no errors, but will not allow normal start of XP. sometimes wants to use some alternative boot, then says it finished chckign disk and it is clean and ok. then stall stall. one time it chose Normal Windows startup, but nothing happened. i would love to get into xp to regedit if i could.

Posted by: Sandi Brockway at May 17, 2011 11:10 PM

I am using Windows XP and AVG. I shut down my computer properly however, every restart will trigger a chkdsk operation.
I found that I have a corrupted avg receipt in pdf format which I cannot open nor delete. I think this is the cause of the problem. How can I delete it?
Thanks!

Posted by: Manny at September 2, 2011 2:59 PM

yeah, my laptop runs chkdsk every start up and when I went to edit the registery, the command line was already there with the *. Guess I'll just have to live with it.

Posted by: Nymathin at April 21, 2012 7:52 PM
Post a comment on "How do I keep CHKDSK from running on every start up?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...