Pages

Friday, April 16, 2010

"chkdsk" Command

Chkdsk (Check Disk) is a utility that checks the computer's hard disk drives' status for any cross-linked or any additional errors with the hard disk drive. It is available in all versions of MS-DOS and Windows. MS-DOS versions 2.x - 4.x used chkdsk.com and MS-DOS versions 5.x and beyond including Windows used chkdsk.exe.

Syntax: chkdsk
Example: chkdsk c: /f

Switches
  • /F: Fixes errors on the disk.
  • /V: On FAT / FAT32: Displays the full path and name of every file on the disk.
  • /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 (KB). 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.
The /I or /C switch reduces the amount of time required to run chkdsk by skipping certain checks of the volume. Chkdsk may be used without any parameters, in which case the current drive is checked with no switches. You can specify the listed switches. Chkdsk requires the autochk.exe file. Chkdsk automatically locates autochk.exe in the startup (boot) directory. If it cannot be found in the startup directory, chkdsk attempts to locate the Windows 2000 Setup CD. If the installation CD cannot be found, chkdsk prompts for the location of autochk.exe.In Windows 98, scandisk command is the best alternate of chkdsk.

No comments:

Post a Comment