How to use the Win7 system chkdsk?

  

1. Click “Start”, click “Run”, enter cmd and press Enter to open the Command Prompt window;

2. Enter the following command in this window:

For example, check and repair the D partition:

chkdsk D: /f

Enter the chkdsk disk check tool to scan the D partition, check other partitions.

Detailed parameters are as follows:

CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [ ,null,null,3],/C] [/L[:size]]

volume Specifies the drive (followed by a colon), mount point

/F fixes errors on the disk.

/V On FAT/FAT32: Displays the full path and name of each file on the disk.

On NTFS: If there is a clear message, display it.

/R Finds an incorrect sector and restores readable information (implicit /F).

/L:size For NTFS only: Change the log file size to the specified number of KB.

If no size is specified, the current size is displayed.

/X Force the volume to be removed first if necessary.

All open handles to the volume will be invalid (implicit /F).

/I For NTFS only: Performs a lesser check on index entries.

/C For NTFS only: Skip the loop check of the folder structure.

The /I and /C command line switches skip some checks on the volume, reducing the time it takes to run Chkdsk.

1. Report disk errors

The chkdsk command checks disk space and file allocation table (FAT) and NTFS file system usage. Chkdsk provides information specific to each file system in the status report. The status report shows the errors found in the file system. When you run chkdsk on an active partition, if the /f command line option is not included, it may report false information because the drive cannot be locked. Chkdsk should be used occasionally to check for errors on each disk.

2, repair disk errors

The chkdsk command fixes disk errors only by specifying the /f command line option. Chkdsk must be able to lock the drive to correct the error. Since the fix usually changes the disk's file allocation table and sometimes loses data, chkdsk will first send a confirmation message like this:

10 lost allocation units found in 3 chains.

Convert lost chains to files?

If you press Y, Windows saves all lost chains in a file called Filennnn.chk in the root directory. After chkdsk is finished, you can see if these files contain the required data. If you press N, Windows repairs the disk, but for missing allocation units, it does not save its contents.

If you do not use the /f command line option, chkdsk will send a message when there is a file to fix, but it does not fix any errors.

If you use chkdsk /f on a large disk (for example, 70 GB) or a disk with a large number of files (millions), this can take a long time (say, a few days) to complete. Because chkdsk does not give control until the job is completed, the computer will not be available during this time.

3, Check FAT Disks

Windows displays the chkdsk status report for FAT disks in the following format:

4. Check NTFS disks

Windows in the following format Display chkdsk status report for NTFS disks:

Use chkdsk with open file

If there is an open file on the drive, chkdsk will send an error after specifying the /f command line option Message. If the /f command line option is not specified and an open file exists, chkdsk reports the missing allocation unit on the disk. This can happen if the open file is not recorded in the file allocation table. If chkdsk reports that a large number of allocation units are missing, consider repairing the disk.

5, Find physical disk errors

Use the /r command line option to find physical disk errors in the file system. For information on using recover to repair physical corrupted files, see “”.

6. Reporting bad sectors on disk

When the disk is ready to run for the first time, the bad sectors reported by chkdsk are marked as corrupt. They are not dangerous.

Solution:

1. Click the Start menu ——Run —— Then enter chkdsk c: /f directly into it and press Enter.

2, there will be a black frame as shown in the figure will let you choose Y or N. You press Y and then press Enter.

3, restart do not move anything, the mouse and keyboard do not move the computer to automatically repair and then boot will be OK.

There may be situations:

1. This will happen as shown in the figure. This is because the file attribute of the disk you are repairing is a command that comes with the system in FAT32 format. It can only repair the NTFS format (I used the E disk instead of the C disk NTFS format)

2, so first determine what format the disk you are repairing can be viewed.

3, right click on the disk properties can also be viewed, if not NTFS is FAT32, then one more step and then enter a conversion command Convert c: /fs: ntfs [if you want to convert other disks Change it inside C, just change it, such as d disk Convert d: /fs: ntfs 】 run, enter.

Copyright © Windows knowledge All Rights Reserved