Run Chkdsk R Windows 10

Run Check Disk (CHKDSK) In Windows 10 to Scan for and Fix Errors. Check Disk in Windows 10 can scan a disk for errors and fix the errors. This is accomplished by combining /F /R and /X parameters as shown in the command below: CHKDSK /F /R and /X Conclusion. CHKDSK Command is a very useful Windows 10 command line tool for fixing common disk errors. Jun 14, 2019  The following are the two different ways you can use to run the CHKDSK utility on Windows 10: Method 1: Run the CHKDSK utility from Computer. First and foremost, you can run the CHKDSK utility directly from the Properties dialog belonging to the partition of your computer’s hard drive you want to scan for errors. To do so, all you need to do is.

Active1 month ago

I started a chkdsk /r /f C: on Windows 10, but now that it's running I want to cancel it. Just powering down the computer risks corruption, so how can I safely abort it?

Ctrl+C isn't an option: I'm running chkdsk /r /f on the drive that has Windows installed. This cannot be done while Windows is running, but only during startup (outside of CMD). This doesn't respond to ctrl+c.

Note: the linked duplicate question is NOT the same. That question is about running chkdskwithout parameters, and that is safe because it runs in read-only mode. The /r /f flags causes chkdsk to run in read-write mode, so then it's not generally safe to just kill the process. It needs to be terminated gracefully. Some implementations of fsck (linux equivalent) can be stopped gracefully - even in repair mode - so theoretically it should definitely be possible to safely stop a chkdsk procedure. The main question is: did the Windows devs actually implement a graceful cancellation procedure, and if so how do I trigger it?

Jan Doggen
3,2306 gold badges28 silver badges45 bronze badges
TiddoTiddo
1522 gold badges2 silver badges16 bronze badges

3 Answers

You can't stop chkdsk process once it started. The safe way is to wait until it completes. Stopping the computer during the check might lead to filesystem corruption.

AlexAlex
4761 gold badge4 silver badges13 bronze badges

Edit: as noted by @Tonny in the comments, there is no safe option (but you could use more or less riskier moments).

If it is running in the pre-startup and you are past Stage 3, meaning it is on 4 of 5 or 5 of 5, then you can just re-start your machine. I have done it on stage 5 of 5, which is the stage of checking the free space, and it started up just fine. If you re-start your machine during stages 1 to 3, you run the risk of loosing data.

Source: Norman Picard

Community
Z. KhullahZ. Khullah
Run

Don't know if safe, but I successfully stopped CHKDSK with the following line command on an elevated cmd window:
taskkill /F PID nnnn
Where nnnn is the Process ID for the running CHKDSK.
To obtain the PID, open the Task Manager and look at CHKDSK -> right click - Go to details
To run an elevated cmd window, go to taskbar, search -> cmd (or command prompt) - right click - Run as administrator.
I did it in the first stage, when searching for errors, so i hope it was pretty safe.
In a stage where it is writing fixes could be risky i think.
My unit already reported unspecified 'errors' before this in a previous read-only run, so I started with /F fix option, but then I decided to stop to try better techniques.

JavierJavier

Not the answer you're looking for? Browse other questions tagged windows-10chkdsk or ask your own question.

Personal computers (PCs) have changed enormously in the almost four decades since the first IBM PC rolled off an assembly line in 1981. That first machine, a bricklike slab of steel running an Intel 8088 microchip at a galloping 4.77 MHz, came with one or two floppy disk drives – and a handy disk utility called CHKDSK (pronounced “Check Disk”), created by Tim Paterson for a fledgling software company known as Microsoft.

Today it would be difficult for a casual observer to describe the evolutionary process that has occurred between that first IBM PC and today’s Windows 10 desktop machine. The case is about the same size and shape, and there’s still a keyboard, but other than that, everything is different. Today’s CPUs run a thousand times faster and are a million times as complex, Apple sells watches with a display more capable than that found in the monochrome monstrosity of 1981, today’s machines have memory cores at least a thousand times denser, and have long since replaced clunking, chunking floppy disk drives with ultrasleek, ultrafast, absolutely silent Solid State drives, any single one of which could store more information than every 1981 model ever built. There is one thing that remains, however, despite all the revolutions and evolutionary developments in hardware and software – CHKDSK remains a useful and vital tool for disk drive health, nearly 40 years after its invention.

Run Chkdsk As Administrator

It should be acknowledged that it isn’t really the same CHKDSK. The first version of CHKDSK written by Tim Paterson, was a crude tool by today’s standards. With each upgrade and change to drive technologies and formats, CHKDSK has been written and rewritten again, with new functionality added and new techniques developed to deal with the exponentially-expanding hard drives of todays’ PCs. However, the same basic approach of a multipass scan of a drive to verify its soundness and functionality remains intact. In this article, I will describe to you how you can use CHKDSK to scan and fix hard drives under the Windows 10 operating system.

How CHKDSK Works

Although the details of how it does its job have changed from generation to generation, the same basic process takes place when CHKDSK is told to analyze a hard drive. CHKDSK starts by scanning the file system on the disk drive and analyzing the integrity of the files, file system, and file metadata on the drive. When CHKDSK finds logical file system errors, it fixes them in place, saving the data that is on the disk so that nothing is lost. Logical file system errors are things like corrupted entries in the drive’s master file table (MFT), a table that tells the drive how files are connected in the murky labyrinths of the drive’s hardware.

CHKDSK also fixes misaligned time stamps, file size data, and security flags on files on the drive. CHKDSK can then conduct a complete scan of the drive, accessing and testing every sector of the hardware. Hard drives are divided into logical sectors, defined areas of the drive where a certain defined quantity of data will be stored. Sectors can develop soft errors, in which case data has been written incorrectly to the magnetic medium, or hard errors, which are cases when the drive itself has an actual physical defect in the area designated as a sector. CHKDSK fixes soft errors by rewriting the faulty data, and resolves hard errors by marking that section of the disk as being damaged and ‘out of bounds’ for future use.

Because CHKDSK has been updated and upgraded repeatedly with each new generation of storage hardware, the program continues to work correctly to analyze and repair hard drives of any sort, even on the most modern OSes and using the most advanced drive technologies. The same process that used to be executed to analyze a floppy disk holding 160K, can today be executed to analyze a solid-state, all-electronic SSD holding 15 terabytes.

Running CHKDSK On Windows 10

Although there are several different ways that you can invoke CHKDSK on a Windows 10 machine, by far the most common and ordinary place to run the utility is via a command prompt known as the Windows PowerShell. However, because CHKDSK talks directly to drive hardware, it requires a special level of operating system permission known as administrative privileges. This just means that CHKDSK is allowed to run as though it was the account that is in charge of the computer.

To launch the Windows PowerShell, press the keyboard shortcut of the Windows Key + X. This brings up the power users menu in the start menu area, where you will see several options. You can release the Windows Key + X combination and type the A key (short for Admin) to launch the Windows PowerShell in administrative privilege mode. You can also simply move the mouse to the Windows PowerShell (Admin) line and click to launch the shell that way.

The next screen to appear is a User Account Control (UAC) window which will ask for permission to launch the Windows Command Processor and let it make changes to the PC. Select “Yes”.


The Windows PowerShell will now launch, a familiar black and white box with a text command-line interface. The most basic way to invoke CHKDSK is simply to type the name of the program “chkdsk”, followed by a space, then the letter of the drive you wish to examine or repair. In our case, it’s internal drive “C:”, so the command would be “chkdsk c:”


This basic invocation of CHKDSK will scan the disk and display status information, but it will not fix any errors that are encountered.

To run CHKDSK in a mode where it will actually fix problems that it encounters, you need to add several parameters. In a Windows PowerShell program, parameters are additional commands added to the end of the program name, with “/” characters before each parameter. In this case, to get CHKDSK to do a full scan and repair pass, we would want to type “chkdsk c: /f /r /x”.

The “/f” parameter instructs CHKDSK to fix any errors that it discovers during its scan. The “/r” parameter tells CHKDSK to locate any bad sectors and recover any readable information it finds there. The “/x” parameter tells CHKDSK to dismount the drive (take it offline from the operating system) before the process begins.

Additional CHKDSK Parameters

CHKDSK has a large library of optional parameters that you can use to modify the program’s behavior.

<Volume> – The Volume parameter allows you to specify a drive letter (with a colon) or volume name. You do not actually need the < and > characters.

[<Path>]<FileName> – The Path and FileName parameters can be used only a drive using the FAT or FAT32 organizational models. With Path and FileName you can specify the location and name of a file or set of files that you want CHKDSK to check for fragmentation. You can use the ? and * wildcard characters to specify multiple files.

/f – The /f parameter instructs CHKDSK to actually fix errors on the disk. The disk must be locked. If CHKSDK cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.

/v – The /v parameter displays the name of each file in every directory as the disk is checked.

/r – The /r parameter locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.

/x – The /x parameter forces the volume to dismount first, if necessary. All open handles to the drive are invalidated. /x also includes the functionality of /f.

/i – The /i parameter can only be used with a drive formatted with the NTFS model. This speeds up CHKDSK by performing a less vigorous check of index entries, which reduces the amount of time required to run CHKDSK.

Chkdsk

/c – The /c parameter also is only usable on an NTFS disk. This tells CHKDSK not to check cycles within the folder structure, which reduces the amount of time required to run CHKDSK.

/l[:<Size>] – The /i parameter can only be used with NTFS. It changes the size of the resulting log file to the size you type. If you omit the size parameter, /l displays the current size.

/b – The /b parameter is usable only with NTFS. It clears the list of bad clusters on the volume and rescans all allocated and free clusters for errors. /b includes the functionality of /r. Use this parameter after imaging a volume to a new hard disk drive.

/? – The /? parameter displays a help file containing this list of parameters and other instructions for using CHKDSK.

To summarize, the full command that should be typed into the Command Prompt is:

In our example, it’s:

Using CHKDSK On a Boot Drive

A boot drive is the partition of your hard drive that the computer starts up from. Boot partitions are special in many ways, and one of those ways is that they require special handling for CHKDSK to be able to deal with them. CHKDSK needs to be able to lock any boot drive it scans, meaning that it cannot examine the system’s boot drive if the computer is in use. If your target drive is an external or non-boot internal disk, the CHKDSK process will begin as soon as we enter the command above. If, however, the target drive is a boot disk, the system will ask you if you’d like to run the command before the next boot. Type “yes” (or “y”), restart the computer, and the command will run before the operating system loads, allowing it to gain full access to the disk.

A CHKDSK command can take a long time to execute, especially when performed on larger drives. Once it’s done, however, it will present a summary of results including total disk space, byte allocation, and, most importantly, any errors that were found and corrected.

CHKDSK In Previous Editions of Windows

The CHKDSK command is available in all versions of Windows, so users running on Windows 7, 8, or XP can also perform the steps above to initiate a scan of their hard drive. In the case of older versions of Windows, users can get to the Command Prompt by going to Start > Run and typing “cmd”. Once the Command Prompt result is displayed, right-click on it and select “Run as Administrator” to grant the program the necessary privileges to execute CHKDSK successfully.

One warning note: if you use CHKDSK on an older hard drive, you may find that your hard drive space was significantly reduced after running the command. This result is due to a failing hard drive, as one of the crucial functions that CHKDSK performs is to identify and block bad sectors on the drive. A few bad sectors on an old drive will typically go unnoticed to the user, but if the drive is failing or has serious problems, you could have huge numbers of bad sectors that, when mapped and blocked by CHKDSK, appear to “steal” significant portions of your hard drive’s capacity.

Other Ways to Launch CHKDSK

If you dislike using the command prompt, there are other ways to invoke CHKDSK on your system. Perhaps the easiest is directly through the Windows Explorer.

Open a Windows File Explorer window and navigate to the drive you wish to check.

Run Chkdsk On Restart Windows 10

Right-click on the icon for your hard drive and select Properties.

Select the Tools tab and click on “Check” to launch CHKDSK with standard parameters.

CHKDSK remains a powerful and useful tool even 40 years after its original invention.

Do you have other Windows 10 questions? We’ve got the resources that you need!

Here’s our guide to troubleshooting problems with Windows 10 search not working.

Run Chkdsk /r Windows 10

Use your machine for fun? Check out tutorial on optimizing your Windows 10 machine for games.

Database users will want to understand the process of turning on Active Directory for Windows 10.

Power users will definitely need to read our walkthrough of how to keep a specific window on top in Windows 10.

Chkdsk F R Windows 10

If it’s performance you want, then examine our complete guide to Windows 10 performance.