How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

Time: 2017-05-25Source: Huajun News NetworkAuthor: Itachi Uchiha

There is a very useful command tool in Win7 system called chkdsk. I believe many people do not understand it. The full name of chkdsk is checkdisk, which means disk check. The chkdsk command is used to check the disk and display a status report. So, how to use chkdsk? Today, the editor of Huajun brings you a simple and easy-to-understand usage of chkdsk. I hope you will support and share the carefully selected content. If you like it, hurry up and get it!

How to use

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 D partition:

chkdsk D: /f

Press Enter to start the chkdsk disk check tool to scan the D partition. Checking other partitions is similar.

Detailed parameter descriptions are as follows:

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

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

/F Repairs errors on disk.

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

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

/R Find incorrect sectors and restore readable information (implies /F).

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

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

/X If necessary, force the volume to be dismounted first.

All open handles to the volume will be invalidated (implies /F).

/I NTFS only: Performs less intensive checking of index entries.

/C NTFS only: Skips loop checking of the folder structure.

The /I and /C command-line switches skip certain checks of volumes, reducing the time required 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 status reports. The status report shows errors found in the file system. When running chkdsk on an active partition without the /f command-line option, it may report false information because it cannot lock the drive. You should occasionally use chkdsk to check for errors on each disk.

2. Repair disk errors

The chkdsk command repairs disk errors only if the /f command line option is specified. Chkdsk must be able to lock the drive to correct errors. Because repair usually changes the disk's file allocation table and sometimes results in data loss, chkdsk first sends 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 missing chains in a file called Filennnn.chk in the root directory. After chkdsk ends, you can check whether the files contain the required data. If you press N, Windows repairs the disk, but it does not save the contents of the missing allocation units.

If you do not use the /f command-line option, chkdsk sends a message when a file needs to be repaired, but it does not repair 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 may take a long time (say, days) to complete. Because chkdsk does not hand over control until its work is complete, the computer will be unavailable during this time.

3. Check the FAT disk

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

4. Check the NTFS disk

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

Use chkdsk with an open file

If there are open files on the drive, chkdsk sends an error message when the /f command-line option is specified. If the /f command-line option is not specified and an open file exists, chkdsk reports missing allocation units on the disk. This may occur 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 about using recover to repair physically damaged files, see "".

6. Report disk bad sectors

When the disk is first prepared to run, chkdsk reports bad sectors marked as corrupt. They pose no danger.

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

Solution:

1. Click the Start menu - Run - then enter chkdsk c: /f directly copy it in and press Enter.

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

2. A black frame as shown in the picture will appear, asking you to select Y or N. Click Y and press Enter.

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

3. Restart without touching anything, including the mouse and keyboard. Let the computer repair itself and then it will be OK after booting.

Situations that may occur:

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

1. As shown in the figure, a situation like this will occur. This is because the file attribute of the disk you are repairing is in FAT32 format. The system's built-in command can only repair NTFS format (I use E drive instead because the C drive format is NTFS format)

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

2. Therefore, you must first determine what format the disk you are repairing is in, as shown in the picture.

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

3. You can also view the disk properties by right-clicking on it. If it is not NTFS but FAT32, you have to take one more step and enter a conversion command Convert c:/fs:ntfs [If you want to convert another disk, change it with C. Just fine, for example, Convert d:/fs:ntfs on drive d. After running, press Enter.

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

How to use chkdsk in Win7 system? How to use chkdsk command to detect disk in Win7 system

The above is how to use the chkdsk command to detect the disk under Win7 system. If you encounter the same problem, you may wish to try the above method, or you can also refer to "How to use the chkdsk disk repair tool that comes with Windows system".

Related articles更多>>

Popular recommendations