Chkdsk f r where the report is located. CHKDSK - checks the hard drive for errors. Example of fixing disk errors using Chkdsk

Check Disk Utility (Chkdsk.exe) used to check the disk for errors and bad sectors. This Windows command line utility verifies the integrity of both basic and dynamic disks. It is used to check and correct errors detected on NTFS volumes and older formats such as FAT, FAT32.

Check Disk able to find and correct many types of errors. The utility primarily looks for inconsistencies in the file system and associated metadata. One of the ways Check Disk finds errors is by comparing the volume's bitmap to the disk sectors assigned to the files.

Many users have a question - How to run CHKDSK? To do this you need:

CHKDSK Command Options

CHKDSK [volume[[path]filename]] ] , where

  • Volume- Specifies the mount point, volume name, or drive letter of the drive being checked, followed by a colon.
  • file name- Files checked for fragmentation (FAT/FAT32 only).
  • /F- Correction of errors on the disk.
  • /V- For FAT/FAT32: display the full path and name of each file on the disk. For NTFS: display cleanup messages (if any).
  • /R- Search for bad sectors and restore surviving contents (requires /F).
  • /L:size- NTFS only: Set the log file size (in KB). If a size is not specified, the current size value is displayed.
  • /X- Preliminary shutdown of the volume (if necessary). All open handles to this volume will be invalidated (requires /F)
  • /I- NTFS only: less strict checking of index entries.
  • /C- NTFS only: skip checking for loops within the folder structure.
  • /B- NTFS only: re-evaluate bad clusters on disk (requires /R)
  • The /I or /C options reduce Chkdsk execution time by skipping some volume checks.

An example of disk analysis without Chkdsk error correction

You can check the integrity of the drive by entering the command name and the drive letter followed by a colon. For example, to check the integrity of drive C, enter:

If the index check finds lost files, Check Disk will restore them as they are. Typically, recovered files are stored with a .chk extension in the root directory of the corresponding drive. Finally, Check Disk displays a report telling you whether free space was incorrectly marked as in use and, if so, recommending that you correct the error by running Check Disk with /F key.

Example of fixing disk errors using Chkdsk

By analyzing the disk, you check it, but you don't actually fix anything. To check the disk and fix any detected problems, you need to specify the /f switch, after which Check Disk will search for and fix errors:

  • chkdsk /f C:

Check Disk cannot recover volumes that are in use. If the volume is in use, Check Disk asks if you want the volume to be checked the next time you boot your computer. Key /R specifies the search for bad disk sectors and restoration of readable information, and key /X- forced shutdown of an NTFS volume if necessary.

Check Disk can display more detailed information about the progress of the scan using key /V. For NTFS volumes, you can limit index checking by setting key /I, and skip checking for loops inside folder structures by specifying key /C.

In Windows 7 and earlier versions, the chkdsk disk check was run when the PC was turned on as a result of an incorrect shutdown. However, it could also be launched independently via the command line. At the end of the scan, the user could see the scan results and corrected errors. The Windows 10 operating system does not have this feature. On the monitor screen, the chkdsk scan report is displayed as a total percentage of completion. It would seem that this is enough, but experienced users may need information about bugs fixed and changes made to the operating system. How to view the chkdsk report in Windows 10?

Checking the disk and looking at the scan results in Windows 10

In order to check your hard drive for errors, you should run the chkdsk command. To do this, click “Start”, then “Command Prompt (Administrator)”. In the window that opens, enter “chkdsk D/ f/ r/ v”.

After scanning, close the command line and click “Start”. Enter “Event Viewer” in the search bar.

A new window will open. In the left menu, select the “Windows Logs” and “Application” section.

Right-click on “Application” and select “Find”. Type chkdsk and click “Enter”.

The search will return the first log with ID 1001. At the bottom, go to the “Main” tab and look at the results.

Also, I launched the command line with administrator rights and entered the request “get-winevent -FilterHashTable @(logname="Application"; id="1001")| ?($_.providername –match "wininit") | fl timecreated, message | out-file c:\CHKDSK_REPORT.txt", you can get a scan report.

You can open it in any text editor.

To check the disk for errors and bad sectors, use the Check Disk command line utility (Chkdsk.exe). You can check the integrity of the drive by entering the command name and the drive letter followed by a colon. For example, to check the integrity of drive C, enter: chkdsk c: Check Disk displays a report on the progress of each phase of work. More details from the command chkdsk can be found in the article - Checking the disk for errors and bad sectors.

Stages of operation of the CHKDSK utility

Check Disk performs operations in three stages.

  1. At the first stage, Check Disk verifies the file structure: CHKDSK is verifying files (stage 1 of 3)... File verification completed.
  2. At the second stage, the indexes are verified: CHKDSK is verifying indexes (stage 2 of 3)... Index verification completed. CHKDSK is recovering lost files. If the index check finds orphaned files, Check Disk will restore them as they are. Typically, recovered files are stored with a .chk extension in the root directory of the corresponding drive.
  3. In the third stage, Check Disk verifies security descriptors: CHKDSK is verifying security descriptors (stage 3 of 3)... Security descriptor verification completed.

Finally, Check Disk displays a report telling you whether free space was incorrectly marked as used, and, if so, recommends correcting the error by running Check Disk with the /F switch: CHKDSK discovered free space marked as allocated in the master file table (MFT ) bitmap. CHKDSK discovered free space marked as allocated

You can tell Check Disk to display more detailed information about the scan progress using the /V switch. For NTFS volumes, you can limit index checking by specifying the /I switch, and skip checking for cycles within folder structures by specifying the /C switch. Finding and correcting errors on the C drive: chkdsk /f C.

The integrity of files on a hard drive is an important component of a stable computer system. The appearance of various errors in files and the file structure, violation of the logical structure of the disk, and the appearance of bad sectors on the disk lead to incorrect operation of the PC, system failures, glitches and freezes. To prevent such problems in the operating system, from archaic MS DOS to modern versions of Windows 10, there is a special tool designed to check and restore the integrity of the file system and deal with logical and physical errors on the disk. We are talking about the CHKDSK system utility, and in this material I will tell you what this utility is, what it is intended for, and how the CHKDSK /F /R command can help to repair file system damage on your PC.

Use CHKDSK /F /R to repair file system corruption

What is CHKDSK?

CHKDSK (short for “check disk” - disk check) is a system tool designed to check a hard drive for logical errors, bad sectors, and also correct the problems it finds.

CHKDSK functionality allows you to restore the logical structure of a disk, including correcting incorrect MFT (master file table) entry points. In the case of bad sectors, which come in two main forms - “soft” (appears when data was written incorrectly) and “hard” (bad sectors caused by physical damage to the disk), CHKDKS usually repairs “soft” bad sectors, and marks “hard” in such a way that they cannot be further used by the system.

The work of this utility can take quite a long time, and for its work, CHKDSK requires exclusive rights to write the disc. Therefore, if you, being in the Windows OS, want to check the system disk (usually C) using this tool, the system will prompt you to restart the computer, and, the next time you start it, CHKDSK will receive extended rights and then check your disk for errors .

Functionality of the CHKDSK command

There are two main forms of activation of this utility that allow you to run chkdsk:

Check the required boxes and click “Ok”
  • If the disk is not a system one, then the check will be carried out immediately, but if the disk is a system one, then the computer will schedule a scan of this disk, and upon subsequent reboot, your disk will be checked with the CHKDSK functionality;
  • Activation via command line. Run a command prompt as administrator and enter:

CHKDSK (volume name) / (flag)

For example, a commonly used form of activating CHKDKS is the command:

CHKDSK C: /F /R

where C: is the volume name, /F and /R are the flags used.

The command I gave runs CHKDSK, instructing the latter to check drive C for damaged sectors and restore the data on them ( flag /F forces CHKDSK to correct errors on the disk, /R flag forces CHDSK to search for damaged sectors on the disk and try to recover data on them).


Other CHKDSK flags (commands) are:

  • /V– while checking the FAT/FAT32 file system, shows the path to the files on the disk and their names;
  • /X– preliminary disabling of the volume (the /F flag must be enabled);
  • /I– disables thorough checking of indexes. Used only in the NTFS file system, it allows you to speed up disk scanning;
  • /C- disables checking cycles inside folders. Used only in NTFS, it also allows you to speed up scanning;
  • /L:(size in kilobytes)– changing the log file size to the specified size (NTFS only);
  • /B– re-checking damaged disk clusters (NTFS only, requires the /R key)

If you simply enter the command “CHKDSK” (without quotes) at the command line, then the “CHKDSK /F /R to repair file system corruption” utility will scan your disk for errors in “read only” mode, not at all correcting them.

Conclusion

Using the CHKDSK /F /R command at the command line as an administrator allows you to correct logical errors on the disk, as well as search for bad sectors on the disk and try to restore them. Use CHKDSK at the slightest suspicion of file system damage; its functionality, like the functionality of the SCANNOW system utility, is a useful tool in the hands of an experienced PC user.

On your local drive C:. After chkdsk completed, the results flashed on the screen for a few seconds, and then the computer booted. I couldn't read the results in time. Are the results saved in a text file?

4 Solutions collect form web for “Where are the chkdsk results located in Windows 7?”

As Randolph mentions, it's in the Event Viewer. More specifically, here:

Control Panel -> Administrative Tools -> Event Viewer -> Windows Logs -> Application -> Wininit

Wininit is in the column source .

To add to Paul's post:

Go to Start, then type “event viewer” (without quotes) in the search bar, and then select “Event Viewer.”

Since the Event Viewer can display tens of thousands or more events, it can be very difficult to find the "Wininit" event (chkdsk log).

To make it easier when in " Event Log" Windows Logs" Application" go to " Filter current log..." Filter "Event Sources" check "Wininit »:

This will force the Event Viewer to only display sources that are "Wininit" (for chkdsk logs only).

There are also chkdsk .log files that can be viewed in a text editor, located in :\System Volume Information\Chkdsk. You can only view it if Control Panel, Folder Options, Hidden Files and Folders, Show hidden files, folders, and drives are selected, Hide protected operating system files is not checked and you have the right to ownership of this folder.

Here's an alternative way to view the results (see here):

    Press Windows Key + R to open the Run dialog box, type powershell.exe and press Enter.

    In PowerShell, copy and paste the command below and press Enter. (See screenshot below). NOTE. To paste the copied command into PowerShell, you just need to right-click in PowerShell.

    Enter the command

    Get-winevent -FilterHashTable @(logname="Application"; id="1001")| ?($_.providername –match "wininit") | fl timecreated, message | out-file Desktop\CHKDSKResults.txt

    You will now have a CHKDSKResults.txt file created on your desktop, which is a log file of your chkdsk scan results from Event Viewer.

Event Viewer in System Application, but in some cases it doesn't show up at all.