Windows CheckDisk (chkdsk /f) Runs After Every Restart

Asked By 60 points N/A Posted on -
qa-featured

Hi,

I'm running Windows 2008 as my server for an internet cafe. My problem is it runs checkdisk every time the computer restarts. I even allowed it to finish so the check disk won't appear again but it is stubborn and is starting to annoy me.

People would have to wait a few minutes before I can let them use the computer.

What can I do to solve this problem I'm having?                                    

SHARE
Best Answer by Mankheli Solin
Best Answer
Best Answer
Answered By 0 points N/A #110286

Windows CheckDisk (chkdsk /f) Runs After Every Restart

qa-featured

CHKDSK is another Windows feature that automatically runs if you don't properly shuts down your computer. To fix your problem, follow the steps below:

1. Click Start and then Run. Type CMD on the text field and press the enter key.

2. Type fsutil dirty query e: on the command prompt and then press enter. If the result is indicating that the volume is dirty continue with the next step.

3. Type chkdsk e: /f /x and press the enter key. When it's done, type fsutil dirty query e: again and if the volume is clean, restart your computer and notice that the chkdsk alert will no longer appear.

You can also try to edit the registry if the above solution doesn't work. Another way to disable chkdsk is to use the /x switch on the chkntfs command. This command will leave the drive from the default boot-time check. If your default hard drive is the Drive C:, you can disable chkdsk from scanning by doing the following command:

chkntfs /x c:

If you are using more than one drive, then you can try the chkntfs /x c: d: command.

chkntfs performs by amending the BootExecute value on your system registry. Navigate to the following to see the BootValue:

HKEY_LOCAL_MACHINESYSTEMCURRENTCONTROLSETCONTROLSession Manager

The default value of BootExecute is the autocheck autochk.

If you use the /x switch, it will insert a /k parameter before the (*) asterisk. The /k parameter will leave the volumes from being checked when there is a dirty bit.

 

Answered By 0 points N/A #110288

Windows CheckDisk (chkdsk /f) Runs After Every Restart

qa-featured

Hello,

 
What you're experiencing is what Windows refers to as "setting the dirty bit" and what you have to do is unset that bit. Every time Windows XP starts, autochk.exe is called by the kernel to scan all volumes to check if the volume dirty bit is set. If the dirty bit is set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f verifies file system integrity and attempts to fix any problems with the volume. It is usually caused by a hard shut down or a power loss during a read-right operation on that particular drive. 
 
How to solve this problem?
 
Well, that's easy. First click Start> Run> bring up a command prompt by typing in "CMD" and type fsutil dirty query d: . This queries the drive, and more than likely it will tell you that it is dirty. Next, type "CHKNTFS /X D:. The X tells Windows to NOT check that particular drive on the next reboot. At this time, manually reboot your computer, it should not do a Chkdsk and take you directly to Windows. 
 
Once Windows has fully loaded, bring up another CMD prompt and type and now you want to do a Chkdsk manually by typing "Chkdsk /f /r d:". This should take you through 5 stages of the scan and will unset that dirty bit. Finally, type "fsutil dirty query d:" and Windows will confirm that the dirty bit is not set on that drive. 
 
Good luck!

 

Login/Register to Answer

Related Questions