How To Fix Corrupted Files And System Errors Using Windows 10 Command Prompt - FreeCodeBlog

Last updated: Sep 29, 2021

You need to open command prompt as a adminstration to fix corrupted files and system errors in windows 10. After opening cmd you need to run the below command to check corrupted system files.


sfc /scannow


Run chkdsk to checks and fix file system errors and the physical hard drive bad sectors.


chkdsk c: /f /r /x


This command may take few minutes to fix “C” Drive.


You may use this command for others drive like (D, E, F) to fixing corrupted files.


chkdsk D: /f /r /x (for D drive)


This command will fix all corrupted files from the selected drive and you will get below message if your hard disk health has good.


windows has scanned the file system and found no problems


If you get corrupted files and bad sectors after run this chkdsk command.


Windows has made corrections to the file system


4kb in bad sectors


Then your hard disk may corrupted.


Follow the next steps to ensure that your hard disk health good or bad.


Off your laptop or desktop and open again your laptop or desktop. Click “F2” (for HP) button while opening your laptop or desktop.


Next select “hard drive check” and test your hard drive as a “quick check” or "Extreme check".


If you got “passed” status after tested hard drive check then your hard drive health is good.


If you got “failed” status after tested hard drive check then your hard drive may corrupted by bad sectors.


To remove bad sectors you may disconnect your hard disk from your laptop or desktop and connect it to others laptop or desktop as a external hard disk to fix bad sectors using windows cmd or AOMEI partition assistance software.

Post Tags
Post Writer
Masum Biswas (@masum7323)

My name is Masum Biswas. I'm a full stack developer. I live in Bangladesh and I love to write tutorials and tools that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, MySQL, VueJS, Tailwind CSS and Bootstrap from the early stage.

Follow Me On
Related Posts
How To Install Composer In Windows 10

To using php, laravel and other framework or language install composer in windows 10. Do you know about the composer? Yes, A little bit.

&nbs... Read More

How To Solve Windows 10 Apps Not Opening Problem

Some times may apps not opening in windows 10. For that you need to follow next steps to slove windows 10 apps not opening problem. Restart your la... Read More

Make A Uefi Bootable Pendrive To Install Windows 10 On Gpt Disk Using Rufus

You can use Rufus software to make a UEFI bootable pendrive to install Windows 10 on GPT disk. You need a minimum 8GB pendrive to make a UEFI boota... Read More

How To Fix Start Menu Not Working In Windows 10

Fix start menu not working in windows 10 using many ways. If your laptop or computer start menu disable to click or close under 1-10 seconds after... Read More

Upload Code To Github Repository Using Git Bash

Do you have any code that needs to be uploaded to the GitHub repository? Yes! Do you want to upload the code for the first time to the GitHub repos... Read More