Home »
Hardware
»
Disks and Mass Storage
Summary: 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:

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:

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

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:
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:

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:

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.
Related:
Ask Leo! - How do I fix a cyclic redundancy check error when I try to copy a file?
Ask Leo! - How do I fix a bad sector on my hard drive?
Ask Leo! - Your hard disk is more likely to fail than you think.
Article C2990 - April 9, 2007
Thanks Leo. It worked great. I was getting a BSOD with the missing autocheck system message. I had copied the autocheck.exe from my XP Pro CD to my System32 directory which didn't do anything, I thought it might have gotten corrupted, but booting OK to XP desktop. Added the BootExecute which for some reason was missing from session manager. Possible either CCleaner or RegSupeme cleaned up a little to much of a leftover software program that I in/uninstalled recently. Hard to keep track since I'm dual booting with Vista. Never fret as I backup every couple weeks with Acronis True Image. Got to love Acronis. I love messing around in the registry. Thanks again Leo. Great job on your site. Keep it up and you'll be eating lunch with Thurrott at the next MS convention.
Posted by: Tim at December 27, 2007 10:03 PMLeo! You da MAN! The registry edit fixed this, after I tried all the other suggestions. I've bookmarked your site for the future. Thanks.
Posted by: Jim at April 6, 2008 9:24 AMI use Windows 2000 and need CHKDSK run every time the system boots up. Referring your instruction, I type the following lines in BootExecute
0000 61 00 75 00 74 00 6F 00 a.u.t.o.
0008 63 00 68 00 65 00 63 00 c.h.e.c.
0010 6B 00 20 00 61 00 75 00 k. .a.u.
0018 74 00 6F 00 63 00 68 00 t.o.c.h.
0020 6B 00 20 00 2F 00 70 00 k. ./.p.
0028 20 00 5C 00 3F 00 3F 00 .\.?.?.
0030 5C 00 43 00 3A 00 00 00 \.C.:...
It works one time but after it the value in BootExexute automatically goes back to
0000 00 00 ..
Any idea to keep CHKDSK running at every boot up as it is necessary for my application.
Thanks.
Posted by: Watthon at June 17, 2008 7:30 PMIt works fine with Windows XP PCs.
Posted by: Watthon at June 17, 2008 7:36 PMI carried out the above as disc check started running every time I re-booted. As far as I can see this is a space between '.... autochk *' and the asterisk. However if I leave a space the other wording pops up again when I re-check the registry so I deleted the space.
This has stopped autocheck from running (thank you!) but when I reboot a blue screen appears saying skipping disk check as disabled. Should that happen?
I assume I can still run it manually?
By the way I'm not very technically minded.
David Bieda
Posted by: David Bieda at September 26, 2008 11:53 AMThe exact wording which now apeears on my screen on re=start is:
'Autocheck programme not found - skipping AUTOCHECK'
Which means my machine is still trying to start autocheck each time it starts.
db
Posted by: David Bieda at September 26, 2008 7:29 PMRan CHKSDK with the (disk):/f option on e partition affected, that cleared the command to run it at startup. It worked I don't know why.
Posted by: robert nagler at December 3, 2008 6:00 AMI need a fix for my c drive. I get a message that comes from the toolbar at the bottom. It says msn.exe-corrupt file. The file directory c: is corrupt and unreadable. Please run the chkdsk utility. I did that and finally found your solution to shut the chkdsk off, I hope it works. My question is how do I now fix that error message. My computer will no longer play video when I am online and I need that for school.
Posted by: Brian at January 22, 2009 12:32 PMI had this autocheck autochk * when I opened register and one of diskkept checking every time
Posted by: Beata at March 8, 2009 7:16 AMi had chkdsk checking every time on boot i came here and did all the steps and got to the edit reg and the bootexecute autocheck already had an * so what do i do not to get it to stop????
Posted by: louise at April 27, 2009 8:07 PM