How to use the Win7 system chkdsk? Win7 system uses the chkdsk command to detect the disk method

  
                

There is a very useful command tool in the Win7 system called chkdsk. I believe many people don't understand it. The full name of chkdsk is checkdisk, which means the disk check. The chkdsk command is used to check the disk and display the status report. So, how do you use chkdsk? Let's take a look together.

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

chkdsk D: /f

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

Detailed parameters 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 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 missing 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 & mdash; & mdash; run & mdash; & mdash; which then enter chkdsk c: /f copied directly into it, Enter.


2, with a black frame as shown in FIG let you choose you press Y or N to Y and press Enter.

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

there may be situations:

1, there will be such a situation as shown This is because you have to repair the disk format is FAT32 file system attributes from the command is only with repair NTFS format (I use the E drive instead of the C disk because the NTFS format)

2, so first you have to determine what repair disk format The figure can be viewed.

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


These are the Win7 system using the following method chkdsk command to detect the disk, users have encountered the same problem, try the above procedure, or you can also refer to "Windows system comes How to use chkdsk disk repair tool.

Copyright © Windows knowledge All Rights Reserved