|
CHKDSK
"Check Disk" Scans hardrives(or other disks) for errors,
bad files, damage, etc.
Syntax
CHKDSK [drive:][[path]filename] [/F] [/V] [/R] [/L[:size]]
Key
[drive:] The drive to check.
filename File(s) to check for fragmentation (FAT only).
/F Automatically Fix file system errors on the disk.
/X Fix file system errors on the disk, (Win2003
and above)
dismounts the volume first, closing all open
file handles.
/R Scan for and attempt Recovery of bad sectors.
/V Display the full path and name of every file
on the disk.
/L:size NTFS only: change the log file size to the
specified number of kilobytes.
If size is not specified, displays the current
log size and the drive type (FAT or NTFS).
/C Skip directory corruption checks.
/I Skip corruption checks that compare directory
entries to the file record segment (FRS) in
the volume's master file table (MFT)
Example:
CHKDSK C: /F
If the drive is the boot partition, you will be prompted to
run the check during the next boot.
If you specify the /f switch, chkdsk will show an error if
open files are found on the disk.
Chkdsk will log error messages in the Event Viewer - System
Log.
To issue chkdsk on a hard drive you must be a member of the
Administrators group.
Cmd Commands
|