Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer 1

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
1  
Also: fsutil dirty set c: –  Pitto Jan 16 '11 at 22:18
show 1 more comment

Your Answer

 
discard

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.