CHKDSK CHKDSK
Name
chkdsk - checks the disk in the specified drive
Syntax
chkdsk [drive:] [pathname] [/f] [/v]
Description
You should run chkdsk occasionally on each disk to check for
errors. If you do run chkdsk on a disk and any errors are
found, chkdsk.displays the error messages, followed by a
status report.
A typical status report might look like this:
160256 bytes total disk space
8192 bytes in 2 hidden files
512 bytes in 2 directories
30720 bytes in 8 user files
121344 bytes available on disk
65536 bytes total memory
53152 bytes free
The chkdsk switches
/f Fixes errors on the disk. If you do not specify this
switch, chkdsk does not correct errors that it finds in
your directory, though it does display messages about
files that need to be fixed.
/v chkdsk displays messages while it is running.
If you enter a filename after chkdsk, MS-DOS displays a
status report for the disk and for the individual file.
Examples
If you want to save the chkdsk status report for future use,
you can redirect the output from chkdsk to a file by enter-
ing the following:
chkdsk a:>filename
The errors are then sent to the specified file. Remember,
though, not to use the /f switch when you redirect chkdsk
output.
If chkdsk finds errors on the disk in drive A and you want
to try to correct them, enter the following command:
chkdsk a: /f
chkdsk now tries to correct any errors it encounters on the
disk in drive A.
Notes
chkdsk does not correct errors on a disk unless you specify
the /f switch. For more information on chkdsk errors, refer
to the specific error message in Appendix E, ``MS-DOS Mes-
sage Directory.''
chkdsk is an external command.
CHKDSK (printed 8/16/89) CHKDSK