Chkdsk f r where the report is located. Checking disk integrity

The integrity of files on the 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 leads to incorrect operation PC, system malfunctions, 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 integrity file system, 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)- This system tool, designed to check the 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. If there are bad sectors that appear in two main forms - “soft” (appear when the data was written incorrectly) and “hard” ( bad sectors caused by physical damage to the disk), CHKDKS usually repairs the “soft” bad sectors, and marks the “hard” ones so that they can no longer be 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 scan will be carried out immediately, but if the disk is a system one, then the computer will add a scan to its schedule of this disk, and upon subsequent reboot, your disk will be checked by the CHKDSK functionality;
  • Activation using 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 file NTFS system, allows you to speed up disk checking;
  • /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 damage to the file system, its functionality, as well as functionality system utility SCANNOW is a useful tool in the hands of an experienced PC user.

Check Disk Utility (Chkdsk.exe) used to check the disk for errors and bad sectors. This command utility Windows strings checks 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 that 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 mistakenly marked as in use, and if so, recommends fixing 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, checking disk chkdsk started 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 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.

Click right click mouse over “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.

In the event that booting Windows 10, disks are automatically checked for errors (using the chkdsk utility), the user does not see the results of this check. How can you access the log with the disk scan results?

On Windows 7 and earlier Windows versions, detailed information the actions performed by the chkdsk utility were displayed directly on the boot screen. In Windows 10 and Windows 8, developers, as part of the task of “simplifying” the OS for the end user, removed the detailed log, leaving only the overall percentage of completion displayed. An experienced user or administrator may sometimes want to know what bugs have been fixed and what changes have been made to the file system. View automatic scan results hard drives performed when booting the computer into Windows 10/8 - can only be done using Windows Event Log (Event Viewer).

Open Windows Event Viewer by typing in the search event and selecting the application found in the list Event Viewer.

In the window that opens, go to the section Windows Logs -> Application.

Right-click on a section Application and select menu item Find. In the search bar, enter chkdsk and press Findnext.

The search should go to the first event found with Event ID 1001 and source Wininit. On the tab General will contain a detailed log with data from the last disk scan.

Checking file system on C:
The type of the file system is NTFS.
A disk check has been scheduled.
Windows will now check the disk.
Stage 1: Examining basic file system structure...
129280 file records processed. File verification completed.
4917 large file records processed. 0 bad file records processed.
Stage 2: Examining file name linkage...
184834 index entries processed. Index verification completed.
0 unindexed files scanned. 0 unindexed files recovered to lost and found.
Stage 3: Examining security descriptors...
Cleaning up 799 unused index entries from index $SII of file 0x9.
Cleaning up 799 unused index entries from index $SDH of file 0x9.
Cleaning up 799 unused security descriptors.
Security descriptor verification completed.
27778 data files processed. CHKDSK is verifying Usn Journal...
36727760 USN bytes processed. Usn Journal verification completed.
Stage 4: Looking for bad clusters in user file data ...
129264 files processed. File data verification completed.
Stage 5: Looking for bad, free clusters...
6493921 free clusters processed. Free space verification is complete.
CHKDSK discovered free space marked as allocated in the volume bitmap.
Windows has made corrections to the file system.
No further action is required.
41428991 KB total disk space.
15154156 KB in 90362 files.
75308 KB in 27779 indexes.
0 KB in bad sectors.
223839 KB in use by the system.
55376 KB occupied by the log file.
25975688 KB available on disk.
4096 bytes in each allocation unit.
10357247 total allocation units on disk.
6493922 allocation units available on disk.
Internal Information:
00 f9 01 00 88 cd 01 00 a9 dd 03 00 00 00 00 00 ............
ad 00 00 00 66 00 00 00 00 00 00 00 00 00 00 00 ....f.........
Windows has finished checking your disk.
Please wait while your computer restarts.

A similar file can be generated using PowerShell commands, which exports data from the event log and stores it in text file CHKDSK_SCAN.txt.

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

The resulting file can be opened in any text editor.

So, we received a log of the disk check performed when the system booted. If the system runs a scan at every boot or the scan freezes, it may be worth it temporarily.

CHKDSK- standard application for check hard drive for errors, detecting bad sectors on the hard drive, correcting file system errors. The CHKDSK application (short for Check Disk) is built into the operating system Windows system.

The Chkdsk.exe program finds file system errors, bad sectors on the hard drive, and eliminates detected problems. If checking the disk for file system errors reveals problems, the CHKDSK check runs when the computer is turned on.

When using Chkdsk.exe in different versions Windows, there are some differences:

  • In Windows XP, the chkdsk utility finds file system errors and repairs bad sectors on the disk.
  • In Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista With default settings, CHKDSK finds file system errors but does not fix them. To correct file system errors and check disk sectors, you must manually set certain parameters.

Problems with the Windows operating system affect its performance. File system errors occur in the following situations:

  • Due to a power outage - if the computer suddenly turns off, an unexpected system failure may occur (to prevent such situations, use a UPS - uninterruptible power supply).
  • If the system is infected with malware.
  • Due to a computer hardware malfunction.

Bad sectors may appear on the surface of the hard drive. When checking a disk with using chkdsk, bad bad sectors of the hard disk are marked as damaged, the system no longer reads or writes information from bad sectors of the disk. The system will try to recover data from damaged sectors (clusters, directories), if possible.

The chkdsk disk scan runs in two modes:

If your computer does not boot due to a problem, check HDD possible using , installation DVD with Windows operating system. After booting from removable media, in the system recovery options, select the command line to run a disk error check.

In this tutorial, I will show you how to use the CHKDSK application using the Windows 10 operating system as an example.

CHKDSK check for file system troubleshooting in GUI

The easiest option for checking the file system for errors is to run the CHKDSK program in the graphical interface using system tools.

Follow these steps:

  1. Launch Explorer.
  2. Right-click on the local disk on which you want to scan.
  3. In the “Properties: Local disk (X:)” window, go to the “Tools” tab.
  4. In the “Check for errors” section, click on the “Check” button.
  1. In the “Checking errors (Local disk (X:))” window that opens, select “Check disk”, despite the fact that the operating system writes that no errors were found when checking the disk.

Available in Windows 7 additional options checks, to run them you need to check the boxes next to the following items:

  • Automatically fix system errors.
  • Check and repair bad sectors.
  1. The scanning process begins and will take some time. Checking time depends on size local disk and the amount of data on the disk.

When checking file system errors, the status is scanned:

  • The basic structure of the file system is checked.
  • File name connections are checked.
  • Security descriptors are checked.
  • The USN log is checked.
  1. After completing the verification process, information about its result will open. IN in this case, the disk was successfully checked, no errors were found. If errors are found, you will be asked to fix them.

For getting detailed information, click on the “Show details” link.

In the Event Viewer window, click Details.

In the “Event Properties” window, in the “General” and “Details” tabs, detailed information about the result of the disk scan is available.

The information obtained about checking the disk for file system errors can be copied to Notepad or another text editor for further study.

How to run CHKDSK (check disk) on the command line

chkdsk command for hard checks disk with the specified parameters is executed from the command line:

  1. Run Command Prompt as Administrator. Read How to Find the Command Prompt in Windows
  2. For check system partition (system disk) in the command line interpreter window, enter the command:
chkdsk c: /f
  1. Press the "Enter" key.
  2. A message appears in the Command Prompt window stating that the CHKDSK command cannot be run because the specified volume is in use system process. To start checking the system disk after rebooting the system, press the “Y” key and then press the “Enter” key.
  3. During the system reboot, the system disk will be checked and restored.

A sample command template looks like this: ["chkdsk" (application name)], space, [drive letter of the drive being checked followed by a colon ("c:", "d:", "f:", etc.), path, or filename], space, [command options].

Command parameters have the following meanings:

  • /F - checks the file system and automatically corrects errors found.
  • /R - search for bad sectors on the disk, restore the contents (the command requires the /F key, example: “chkdsk C: /F /R”).
  • /V - displays full file paths, displays file names on the disk, in the NTFS file system - displays cleaning messages.
  • /X - disable the disk before scanning, the descriptors of this disk will not be scanned (the mandatory /F key must be set, example command: “chkdsk C: /F /X”).
  • /I - Performs a less stringent check of index items; CHKDSK performs a faster but less thorough check.
  • /C - skips checking cycles within the folder structure.
  • /L: size - Changes the log size to a value specified in kilobytes.
  • /B - reset the scan results, re-check previously found damaged ones sectors of hard disk (the /R key is required, example command: “chkdsk C: /F /R /B”).

In most cases, to check the file system and eliminate bad sectors on the hard drive, it is enough to use the “F” and “R” flags.

How to disable disk check in CHKDSK when Windows boots

In some cases, disk check runs when you turn on the computer, before loading the Windows operating system. In most cases, you need to wait until the check is completed; a restart will not follow.

Constantly checking the disk every time the system starts, indicates the presence of problems and the need to eliminate them. You may need to consider replacing your hard drive. There are programs, for example, that constantly monitor the status of computer disks.

To disable Chkdsk from starting when Windows boots, you can use 2 methods: changing values ​​in the operating system registry, or using the command line.

Disabling disk check on the command line:

  1. Run Command Prompt as Administrator.
  2. In the command line interpreter window, enter the command (“C:” is the name of the drive on which you want to disable the startup of Check Disk when the system boots), and then press the “Enter” key:
chkntfs /x with:
  • If you need to disable scanning on several drives, add the corresponding drive letters to the command separated by spaces, for example, “chkntfs /x c: d:”.
  • Using the command “chkntfs /d” you can return the original settings.

You can disable automatic disk check when loading the operating system in the following way:

  1. Launch Registry Editor (type “regedit” in the search field, run the command).
  2. Follow the path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
  1. Click on the “Session Manager” option.
  2. Find the “BootExecute” parameter, left-click on it.
  3. The Edit Multiline window displays the default value.

  1. To disable disk check during Windows startup, before the asterisk add the parameter:
autocheck autochk /k:C *
  1. To disable scanning on multiple partitions, add drive letters separated by a space. Example for drives “C:” and “D:”:
autocheck autochk /k:C /k:D *

Conclusions of the article

The CHKDSK system application, built into the Windows operating system, is used to check the file system for errors and to detect bad sectors on the computer's hard drive. Using the utility, you can fix system errors and eliminate the negative impact (disable writing and reading) on ​​the system due to the presence of bad sectors of the hard drive.