Check All Drives In Your Server For Errors

From We Got Served Wiki

Jump to: navigation, search


You may be asked to check all the drives in your server for errors as a troubleshooting step, or you may be experiencing file conflicts or other errors and need to do this. If you simply open a command prompt and use chkdsk on each drive, you may spend many hours waiting (and rebooting your server to force the dismounting of drives).

You can use the following batch file to force chkdsk on all your drives. Copy the code below and paste it into notepad, then save it (on your server) as e.g. "checkall.cmd":

     chkdsk c: /f /r
     chkdsk d: /f /r
     for /d %%1 in (C:\fs\*) do start chkdsk /f /r %%1

Log in to your server, copy the file to the administrator's desktop, and run it in a command prompt, or double click the checkall.cmd icon from there. Ken uses /x /r instead of /f /r. X: means chkdsk will force a dismount. Personally I don't like that, I wish to check my disks at boot time if they are currently in use.

Credits

This page was originally written by GaMeR for We Got Served. Original info was taken from Ken Warren @ WHS Forums

Windows Media Center