The problem
I just entered
chkdsk d: /f /r
and the disk check started right away. I want it to run at the next restart for a number of reasons:
- I can pack up and go as needed
- It will run immediately after shipping
- Less chance for running processes to compound existing errors
- No competing disk activity (on any partition), HDD will not thrash
Right now, after I'm done writing this question, I face an hour or two of watching the screen, jiggling the mouse every five minutes when the ETA starts to climb, because some scheduled task is trying to start.
The wrong answer
fsutil dirty set d:
Unlike chkdsk when it tries to check a volume in use, this cannot set the type of check to be performed at restart.
To schedule
chkdsk
for the next restart, the drive to be checked must be locked by, for instance, setting a command prompt's current drive to the same drive. Opening files on the drive is not sufficient. Also, the/x
switch must not be given.If scheduling a check on the system drive and other drive(s) simultaneously, request the check on the system drive last, so that the check(s) on the other drive(s) are carried out only once.
Thanks to @Iain and @peter-hahndorf.
If you add the
/x
switch it should do what you want as it will offer to run at next restart.