Sunday, February 22, 2015

Run Check Disk from Command prompt

  You can run Check Disk from the command line or within other utilities. At a command prompt, you can test the integrity of the C drive by typing the following command:
    chkdsk C:

To find and repair errors that are found in the E drive, use the following command: 

chkdsk /f C: 

 Note that Check Disk can’t repair volumes that are in use. If the volume is in use, Check Disk displays a prompt that asks if you want to schedule the volume to be checked the next time you restart the system. Click Yes to schedule this. 

 The complete syntax for Check Disk is as follows:
CHKDSK [volume[[path]filename]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]

The options and switches for Check Disk are used as follows:
volume Sets the volume to work with
path/filename Specifies files to check for fragmentation (FAT16 and FAT32 only)
/F Fixes errors on the disk
/V Displays the full path and name of every file on the disk (FAT16 and FAT32); displays cleanup messages if any (NTFS)
/R Locates bad sectors and recovers readable information (implies /F)
/X Forces the volume to dismount first if necessary (implies /F)
/I Performs a minimum check of index entries (NTFS only)
/C Skips checking of cycles within the folder structure (NTFS only)
/L:size Sets the log file size (NTFS only)
/B Re-evaluates bad clusters on the volume (NTFS only; implies /R)

No comments:

Post a Comment