CHKDSK Checks the status of a disk and displays a status
report. Can also fix disk errors.
Open the command prompt by going to 'start/run' and typing 'cmd.'
From the command prompt, type chkdsk c: /v and hit ENTER. CHKDSK
will do a quick scan of the c drive in this example, then inform you
if it found any errors.
Syntax
CHKDSK [drive:][[path]filename] [/F] [/V] [/R] [/X] [/I] [/C] [/B]
[/L[:size]]
|
|
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. 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 Vista only: For re-evaluating bad clusters on a volume
Examples
chkdsk
Will display all information described above and also report any
crossed linked files.
chkdsk c: /f
Will fix any crossed linked files
chkdsk c: /f /r
will both fix errors and recover lost data
If the drive is the boot partition, you will be prompted to run the
check during the next boot
To issue chkdsk on a hard drive you must be a member of the
Administrators group.
|
|
If you specify the /f switch, chkdsk will show an error if open
files are found on the disk.
Chkdsk /f will lock the volume, making data unavailable until chkdsk
is finished.
If you use chkdsk /f on a very large disk or a disk with a very
large number of files (millions), chkdsk may take a long time to
complete. The computer will not be available during this time, as
chkdsk does not relinquish control until it is done.
|
|
|