The A+ Certification & PC Repair Handbook (Charles River Media Networking/Security)

CHKDSK is a program used for checking the status of magnetic drives/disks, fixing certain errors, and even recovering readable data from bad disk sectors. It isn’t particularly useful in 9x, except for obtaining a report on files on the disk. To correct any disk errors on 9x, run ScanDisk. In 2000, and XP, CHKDSK replaces 9x’s ScanDisk. In 2000 and XP, it is easier to run CHKDSK from Windows, so you might as well save the command-line version for when the computer is booted into Safe Mode, Command prompt only. When invoked with the /f and/or /r switches to run on a disk in use, CHKDSK will prompt you to run at the next boot. See Chapter 2 for more information on CHKDSK and ScanDisk.

Use

Type “CHKDSK” followed by the drive letter and colon (:), followed by any switches (each switch must be preceded by a space character).

Switches

/c: Use with NTFS-formatted drives only. Skips folder structure cycle checking, resulting in a faster completion.

/f: Fixes file system errors on the disk. If run on a disk currently in use, /f causes CHKDSK to be run on the next boot.

/i: Use with NTFS-formatted drives only. Performs a less exhaustive check of index entries, resulting in a faster completion.

/r: Recovers readable information from bad disk sectors. If run on a disk currently in use, /r causes CHKDSK to be run on the next boot. See the listing for the RECOVER command for another tool that can recover lost data.

/v: Displays the name of each file in every folder as the disk is checked.

/x: Use with NTFS-formatted drives only. Makes all necessary changes to any network-mapped drives in order for CHKDSK to work on them. /x also includes the functionality of the /r switch.

Notes

Категории