Manually schedule a disk check at next restart
You can schedule a chkdsk at reboot time for a drive by using the Windows command line utility fsutil.
You do this by setting the “dirty” flag for a drive, which marks the drive for a chkdsk when you next reboot.
Usage:
fsutil dirty query <volume pathname>
e.g.
fsutil dirty set C:
You can check if a drive has been marked as dirty by using the query command:
fsutil dirty query <volume pathname>
This command work only on NTFS File System, otherwise this command is not usable.
I suppose this will cause a “chkdsk /f” to be performed on reboot. I have a friend who does not understand much about computers and has an unreliable hard disk that he can’t replace at the moment. It would be nice if there was a simple way for me to put an icon on his desktop with a batch routine for “chkdsk /r” for him to start every night. This wouldn’t work for that. (Yes, I can make that batch routine, but he will still have to answer the questions about dismounting the drive or running at next reboot, and trust me, he can get confused by that.)
This command work only on NTFS File System, otherwise this command is not usable.
Excellent ! Thank you