Pages

Thursday, October 10, 2013

Check Disk


In built windows tool to check the integrity of the file system.

Checks a disk and displays a status report.

CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]

  volume          Specifies the drive letter (followed by a colon),
                  mount point, or volume name.
  filename        FAT/FAT32 only: Specifies the files to check for fragmentation.
  /F              Fixes errors on the disk.
  /V              On FAT/FAT32: Displays the full path and name of every file
                  on the disk.
                  On NTFS: Displays cleanup messages if any.
  /R              Locates bad sectors and recovers readable information
                  (implies /F).
  /L:size         NTFS only:  Changes the log file size to the specified number
                  of kilobytes.  If size is not specified, displays current
                  size.
  /X              Forces the volume to dismount first if necessary.
                  All opened handles to the volume would then be invalid
                  (implies /F).
  /I              NTFS only: Performs a less vigorous check of index entries.
  /C              NTFS only: Skips checking of cycles within the folder
                  structure.
  /B              NTFS only: Re-evaluates bad clusters on the volume
                  (implies /R)

The /I or /C switch reduces the amount of time required to run Chkdsk by
skipping certain checks of the volume.



Example :

At a command prompt, you can test the integrity of the D drive by typing the following command:

chkdsk D:

To Repair/Fix

chkdsk /f D:

Note: 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.



 

3 comments:

  1. Good One. Thanks for sharing.

    ReplyDelete
  2. Powershell, instead of CMD, is the only way you should run CHKDSK /R from within Windows 7. Seems to have a lot of annoying issues in CMD.

    ReplyDelete
  3. um no. chkdsk was written for Dos / CMD shell. been around longer than you've been alive lol.

    ReplyDelete