Start your computer using a Windows 10 DVD or a USB drive.
If you don’t have any Windows 10 media available,
visit this page and follow
the steps to create one using the Media Creation Tool.
Once starting using a DVD or USB device, select the “Repair your
computer” option located at the lower-left corner.
Choose “Command prompt“.
At the command prompt, type the following, then press “Enter“:
chkdsk /r c:
If your bootable drive is a letter other than “C”, replace “c:”
with the bootable drive letter you use.
Select “Y” for yes on the question regarding checking the disk the next time the
Restart the system. Be patient while chkdsk checks your drive
for errors. It could take a really long time.
CMD in automatic repair will not run chkdsk. Error is
"Windows cannot run chkdsk on this volume because it is write protected."
It needs to be elevated to administrator.
Try restarting in Safe Mode
Press [Shift] If you can access any of the Power options
described above, you can also restart in Safe Mode by holding down the
[Shift] key on the keyboard when you click Restart.