Wednesday, June 26, 2013

chkdsk switches

2. In the command prompt, type in the following command below followed by one or more switches that you would like to use below with a space between each switch and press Enter.NOTE: For example, the most common command to run chkdsk on your C: drive is: chkdsk C: /F

chkdsk [drive letter]: [switches with space inbetween]Switches that you can use in the command:

/F
- Fixes errors on the disk. The disk must be locked. If chkdsk cannot
lock the drive, a message appears that asks you if you want to check the
drive the next time you restart the computer. For example, on the C:
drive.

/V - Displays the name of each file in every directory as the disk is checked.

/R - Locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.

/L:[size in KB]
- Can only be used with a NTFS disk. Changes the chkdsk log file size
to the number size in KB you type. If you omit the size parameter,
typing /L by itself will display the current chkdsk log file
size. For example, to have the default 65536 KB log file for the C:
drive, you would type: chkdsk C: /F /L:65536

/X - Forces the volume to dismount first, if necessary. All open handles to the drive are invalidated. /x also includes the functionality of /f.

/I
- Can only be used with a NTFS disk. Performs a less vigorous check of
index entries, which reduces the amount of time required to run chkdsk.

/C
- Can only be used with a NTFS disk. Does not check cycles within the
folder structure, which reduces the amount of time required to run
chkdsk.

/B - Can only be used with
a NTFS disk. Clears the list of bad clusters on the volume and rescans
all allocated and free clusters for errors. /b includes the functionality of /r. Use this parameter after imaging a volume to a new hard disk drive.