Solved

Force Windows XP Checkdisk upon reboot

Posted on 2006-07-18
5
698 Views
Last Modified: 2008-01-09
I need to be able to force a Windows XP machine to perform a checkdisk upon reboot.  I would prefer to be able to force this within a command line script that is automatically run through the OS's "scheduled tasks" function and then also utilizing a separate utility (which I have) to force the XP machine to reboot.  This so that I don't have to perform a checkdisk every single time I reboot and instead only when initiated by the script.  Running checkdisk while the machine is running XP normally is not an option for me for other reasons I will not go into.  I have found several articles on the matter from Microsoft and from other sources, including this site, but nothing seems to actually work.  The machine simply reboots normally without enacting a checkdisk.  Most recently I tried following the steps within the article:

   Title: Chkdsk at boot-up - every time!!
   asked by ARWirth on 08/11/2005 08:35AM CDT  

Thanks.
0
Comment
Question by:zooadmin
  • 2
5 Comments
 
LVL 26

Expert Comment

by:Pber
ID: 17131412
Have you seen this.  Towards the bottom of the post might help you out.
0
 
LVL 59

Accepted Solution

by:
LeeTutor earned 250 total points
ID: 17131438
See tip number 21 on this web page (which I will also quote below in case the page disappears from the internet, as pages are all too apt to do):

http://www.smereghetti.com/win/tips.html


21. Control disk check at boot after incorrect shutdown
After an incorrect/improper shutdown, then Windows will perform a CHKDSK of the partitions marked with a dirty-bit at boot to ensure disk stability.
One can also force CHKDSK to run at next boot if running CHKDSK /F on a partition, which is locked. The CHKDSK is starts after a certain time, which gives the user time to avoid running CHKDSK.

The time is in seconds can be controlled with this DWORD :

[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Session Manager]
AutoChkTimeOut=10 (Default = 10, Disable Countdown=0)

More info MS KB Q191603
More info MS KB Q173322

Note one can also use the command CHKNTFS.EXE to configure the time, along with excluding certain drives from boot up check, or forcing boot check of drives. (Running CHKNTFS.EXE /? you will see all parameters). The CHKNTFS.EXE will change the following MULTISTRING registry key, which can be changed to force CHKDSK on all drives at boot:
[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Session Manager]
BootExecute = autocheck autochk /f * (Default Value = autocheck autochk *)
Note if having trouble with constantly checking drives at start, then run this command to reset the above registry value to default:
CHKNTFS /D
More info MS KB Q160963
More info MS KB Q218461
More info MS KB Q235771

0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 17146382
zooadmin, any feedback?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question