How to Use the chkdsk disk repair command tool and how to run the chkdsk tool to fix it?

Source: Internet
Author: User

How to Use the chkdsk disk repair command tool and how to run the chkdsk tool to fix it?
The full name of chkdsk is checkdisk, which means disk check. This check item is called by the system to check the disk when your system is down or shut down illegally. You can also manually call the command line to check a disk partition.

The full name of chkdsk is checkdisk, which means disk check. This check item is called by the system to check the disk when your system is down or shut down illegally. You can also manually call the command line to check a disk partition. This tool creates and Displays disk status reports based on the file system used by the detected partition. Chkdsk also lists and corrects disk errors. If no parameter is specified, the chkdsk displays the disk status in the current drive.

The chkdsk command is used to check the disk and display the status report.

How to Use the chkdsk disk Repair Tool?

You can enable it by using the following methods:
1. Click Start and 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
Press enter to start the chkdsk disk check tool to scan for the D partition. Check for other partitions.

Detailed parameters are described as follows:
CHKDSK [volume [[path] filename] [/F] [/V] [/R] [/X] [/I] [/C] [/L [: size]

Volume specifies the drive (followed by a colon) and mount point
Or volume name.
Filename is only used for FAT/FAT32: Specifies the file to check whether there are fragments.
/F.
/V on FAT/FAT32: displays the complete path and name of each file on the disk.
On NTFS: If a message is cleared, display it.
/R searches for incorrect sectors and restores readable information (implicit/F ).
/L: size is only used for NTFS: Change the log file size to the specified KB.
If no size is specified, the current size is displayed.
/X force the volume to be detached first if necessary.
All opened handles of the volume will be invalid (implicit/F ).
/I is only used for NTFS: checks the index items for a low intensity.
/C is only used for NTFS: Skip the loop check of the folder structure.

The/I and/C command line switches skip some checks on the volume to reduce the time required to run the Chkdsk.

Report disk errors

The chkdsk command checks the usage of the disk space and File Allocation Table (FAT) and NTFS file system. The Chkdsk provides information specific to each file system in the status report. The status report displays errors found in the file system. When running 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 errors on each disk.

Fix disk errors

The chkdsk command can fix disk errors only when the/f command line option is specified. The Chkdsk must be able to lock the drive to correct the error. Because the repair usually changes the disk file allocation table and sometimes data is lost, chkdsk will first send the following confirmation message:
10 lost allocation units found in 3 chains.
Convert lost chains to files?
If you press Y, Windows saves all lost links in a file named Filennnn. chk in the root directory. After the chkdsk is completed, you can check whether these files contain the required data. If you press N, Windows will repair the disk, but it does not save the contents of the lost allocation unit.
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 fix any errors.
If chkdsk/f is used on a large disk (for example, 70 GB) or a disk with a large number of files (millions), it may take a long time (for example, several days) to complete. Because the chkdsk will not surrender control until the work is completed, the computer will be unavailable during this period of time.
Check the FAT Disk
The chkdsk Status Report of the FAT disk is displayed in the following format in Windows:
Check NTFS Disk
In the following Windows format, the chkdsk Status Report of the NTFS disk is displayed:
Use chkdsk if the file is opened
If an opened file exists on the drive, chkdsk will send an error message after the/f command line option is specified. If the/f command line option is not specified and an open file exists, chkdsk reports the missing allocation unit on the disk. This may happen if the opened file is not recorded in the file allocation table. If chkdsk reports the loss of a large number of allocation units, you can consider restoring the disk.
An error occurred while searching for the physical disk.
Use the/r command line option to find physical disk errors in the file system. For more information about how to use recover to repair physically corrupt files, see "".
Reporting bad sector of a disk
When the disk is preparing for running for the first time, chkdsk reports that the bad sectors are marked as corrupted. They do not pose danger.

In the Q & A session, you may see damaged files in the lower right corner. Please run the chkdsk Repair Tool to fix the icon or the windows-delayed write failure. So the close-up blog hopes to help you.

Instance

Solution:

Click Start Menu -- run -- enter chkdsk c:/f in the menu and copy it directly. Then press Enter.



The black box that appears will let you choose Y or N. Click Y and press Enter.



Restart, do not touch anything, mouse or keyboard, so that the computer will automatically repair it, and then it will be OK after it is turned on.

Possible situations:



This is because the file attribute of the disk you fixed is that the command provided by the system in the FAT32 format can only be used to fix the NTFS format (I use the e disk instead of the C drive NTFS here ). format)

Therefore, you must first determine the format of the disk you have repaired.



Right-click the disk attribute and you can view it.

If NTFS is not FAT32, you need to add one more step and then enter the conversion command Convert c:/fs: ntfs [if you want to Convert another disk, replace it with C. For example, d Drive Convert d:/fs: ntfs.] Press enter after running.





In this case, the conversion is completed, restart the system, and then enter the chkdsk c:/f repair command. Then, perform the preceding steps again. OK.

If you enter the volume label, it is the name of the disk you have repaired. For example, if you enter the volume label, it is winxp.

If it still does not work, open my computer -- Right-click the drive letter you want to fix -- properties -- tools -- check the error -- start check (automatically fix File System Error scan and try to fix bad sector check boxes) check before! ~) -Start



Restart OK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.