Solved

Force Windows XP Checkdisk upon reboot

Posted on 2006-07-18
5
704 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ntdlr  is missing or corrupt 15 156
Remote Exchange powershell-ing 25 125
no display on laptop 5 86
What is this Task? 4 181
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…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 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