Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've seen different question about how to stop this behaviour but I really want it to happen. I have a videopoker machine that gets turned off brutally from an external power button so often I can get disk problems. I would like chkdsk /r to run at EVERY boot before windows...

Any ways to achieve this?

share|improve this question
There's no point if you formatted it as NTFS. Chkdsk checks for errors and is really only useful on FAT filesystems because NTFS keeps track of everything it writes before it writes it (called journaling) to keep track of any errors that may come up and fix them. – digitxp Jan 16 '11 at 15:28
up vote 2 down vote accepted

You can force the C:\ drive to be checked at next boot by using chkntfs.exe:

chkntfs /c c:

To automate this, you can put that line in a file called "ForceChkDsk.bat" and add those to the Startup folder. Then whenever the machine starts up, it will add the disk to the Boot Execute registry entry and have the OS check it the next time it is restarted.

share|improve this answer
I think this requires command line confirmation... – BloodPhilia Jan 16 '11 at 15:47
@BloodPhilia: I just ran chkntfs /c c: in a prompt and it did not. (I know that chkdsk would, but this is different.) A further chkntfs c: says that it has been scheduled on the next startup. – yhw42 Jan 16 '11 at 15:51
@yhw42 Oh, do excuse me, I read "chkdsk" instead of "chkntfs". – BloodPhilia Jan 16 '11 at 15:57
@BloodPhilia: no worries. I had some chkdsk issues a while back and found this Microsoft article that tries to explain things... I had to read it several times. :) – yhw42 Jan 16 '11 at 16:06
Also: fsutil dirty set c: – Pitto Jan 16 '11 at 22:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.