Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Repair bad sectors of hard drive with commands of the CMD on Windows 11, 10, ...!


Repairing the bad sectors of the hard drive (SSD, HD, ...) using Command Prompt / CMD.EXE commands on Windows 11, 10, ... and MS Server OS is easy!




Everyone is probably familiar with the disk scan on Windows 11, 10 , 8.1, ... If this disk scan utility doesn't work for you, you can go to the command line interface in Windows. The Check Disk (chkdsk C :) is used to run an error check on all your connected storage media, regardless of whether SSD or HDD !



Fix bad sectors of the hard disk with CHKDSK commands!



1. Start  the command prompt as administrator  

2. Now enter the following command in the command prompt and press Enter:


chkdsk C:



 that you can use: ► .. chkdsk has optional parameters 

Here is the sample output of chkdsk on Windows 11:




Microsoft Windows [Version 10.0.22000.120]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>chkdsk C:
The type of the file system is NTFS.

WARNING! /F parameter not specified.
Running CHKDSK in read-only mode.

Stage 1: Examining basic file system structure ...
239872 file records processed.
File verification completed.
Phase duration (File record verification): 2.69 seconds.
8060 large file records processed.
Phase duration (Orphan file record recovery): 5.48 milliseconds.
0 bad file records processed.
Phase duration (Bad file record checking): 0.20 milliseconds.

Stage 2: Examining file name linkage ...
1364 reparse records processed.
350304 index entries processed.
Index verification completed.
Phase duration (Index verification): 6.80 seconds.
0 unindexed files scanned.
Phase duration (Orphan reconnection): 469.34 milliseconds.
0 unindexed files recovered to lost and found.
Phase duration (Orphan recovery to lost and found): 0.32 milliseconds.
1364 reparse records processed.
Phase duration (Reparse point and Object ID verification): 4.87 milliseconds.

Stage 3: Examining security descriptors ...
Security descriptor verification completed.
Phase duration (Security descriptor verification): 23.23 milliseconds.
55217 data files processed.
Phase duration (Data attribute verification): 0.31 milliseconds.
CHKDSK is verifying Usn Journal...
39206296 USN bytes processed.
Usn Journal verification completed.
Phase duration (USN journal verification): 184.77 milliseconds.

Windows has scanned the file system and found no problems.
No further action is required.

51808255 KB total disk space.
29052056 KB in 171159 files.
122164 KB in 55218 indexes.
0 KB in bad sectors.
347391 KB in use by the system.
62512 KB occupied by the log file.
22286644 KB available on disk.

4096 bytes in each allocation unit.
12952063 total allocation units on disk.
5571661 allocation units available on disk.
Total duration: 10.18 seconds (10186 ms).

C:\Windows\system32>



Info:

This cmd program for checking the hard disk will now repair all soft bad sectors on your USB stick. When the repair process is complete, restart your computer. Here is a full list of all of the chkdsk options provided by Microsoft . The above methods also work for internal drives, SD cards or MicroSD cards (attached through an adapter), and external hard drives, so if there's anything you want to add, let us know in the comments below.


-
▲ Back to the top ▲





.. chkdsk has optional parameters 




Q: \> chkdsk /?
Checks a disk and displays a status report.


CHKDSK [volume [[path] filename]]] [/ F] [/ V] [/ R] [/ X] [/ I] [/ C] [/ L [: size]]
[/ B] [/ scan ] [/ spotfix]


volume Specifies the drive letter (followed by a, colon), mount
point, or volume.
Filename FAT / FAT32 only: Specifies the files to be
checked for fragmentation.

/F Corrects errors on the disk.

/V FAT / FAT32: Displays the full path and name of each
file on the disk.
NTFS: Displays cleanup messages, if any.

/R Finds bad sectors and makes readable ones
Recover information
(conditional / F if / scan is not specified).

/L : size NTFS only: Changes the size of the log file to the
specified number of KB. If the size is missing,
the current size is displayed.

/X Forces the volume to be dismounted first, if necessary
. All open handles to the
volume then become invalid. (conditional / F).

/I NTFS only: Carries out a relaxed check of the
index entries.

/C NTFS only: Skips checking cycles
within the folder structure.

/B NTFS only: Reevaluate bad clusters on the volume
(conditional / R).

/scan NTFS only: Performs an online scan of the volume.

/forceofeltafix NTFS only: (Must be used with "/ scan".)
Bypasses all online repairs. Any
errors found are queued for offline
repair (ie "chkdsk / spotfix").

/perf NTFS only: (Must be used with "/ scan".)
Uses more system resources to complete a scan as
quickly as possible. Doing so can adversely
affect the performance of other tasks running on the system
.

/spotfix NTFS only: Repairs damage to the volume.

/sdcleanup NTFS only: does not perform garbage collection
required safety description data from (conditional / F).
/offlinescanandfix Performs offline scan and repair on the volume.

/freeorphanedchains FAT / FAT32 / exFAT only: Releases orphaned cluster chains
instead of restoring their contents.

/markclean FAT / FAT32 / exFAT only: Marks the volume as healthy
if no damage is detected, even if
"/F" is not specified.

The / I or / C option reduces the time it takes to run
Chkdsk by skipping some checks on the volume.

F: \>




......



FAQ 74: Updated on: 26 August 2024 09:13 Windows
Windows-Console

Read / display the Windows license key via command line no hack!


It is easy to solve the problem with MS Windows OS to read / display license key via command line If you want to reinstall your Windows 10 or 11, it is
Windows-Console

Format external hard drive or USB stick via the command prompt!


It is easy to format an external hard drive or USB stick via the command prompt / cmd.exe for MS Windows 11, 10, etc. Everyone probably knows how
Windows-Console

Start two or more programs at the same time from the command prompt!


Starting two or more programs at the same time from the command prompt is pretty easy on Windows 11, 10, etc. Even if this function is not as advantageous
Windows-Console

Change the file attributes, hidden, protected via command line in Windows!


Almost like under Linux and MAC OS, you can simply change the file attributes on Windows via the command line The standard procedure is familiar to everyone,
Windows-Console

Synchronize the clock on your Windows 11, 10, ... etc. with a www time server!


Using the command line it is also easy to synchronize your MS Windows OS with a www time server The simplest method for synchronizing with a time server
Windows-Console

Group policy update on Windows 11, 10, ... command line!


After changing the group policy, you can force an immediate update via the Windows 11, 10, or MS Server OS command line If you make a change in group
Windows-Console

Resolve problems with wireless networks by resetting TCP / IP!


It is easy to fix any problems with wireless networks via the cmd.exe command line by resetting the TCP / IP on Windows 11, 10, and MS Server OS Case

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. What additional steps can I take if chkdsk doesn't fix all errors?
  2. What is the difference between the /f and /r parameters in chkdsk?
  3. Does the sfc command work on Windows 12 too?
  4. How to run chkdsk for a specific drive?
  5. What parameters does the chkdsk command need for sector repair?
  6. What to do if sfc /scannow fails to repair corrupted files?
  7. What are the most common chkdsk error messages and how to fix them?
  8. How can I run the sfc command on Windows 10?
  9. How do I open the command prompt for the sfc /scannow command?
  10. Can I run chkdsk on the system drive?
  11. How do I use dism if sfc /scannow doesn't work?
  12. How to check dism logs?
  13. How long does the chkdsk check for bad sectors take?
  14. How can I check dism results after repair?
  15. How can I optimize sfc and chkdsk performance?
  16. How long does dism /restorehealth take to run?
  17. How to run sfc /scannow without rebooting?
  18. How can I repair bad sectors on my hard drive using chkdsk?
  19. How can I check the status of sfc scan in Windows 10?
  20. How to check hard drive for bad sectors in Windows 7?
  21. How to repair Windows system files that sfc failed to fix?
  22. What does the chkdsk command do in Windows?
  23. What does it mean when dism says repairs are complete?
  24. What to do if the dism command encounters an error?
  25. How do I find bad sectors on my hard drive using chkdsk?
  26. How can I make sure chkdsk runs on the next reboot?
  27. How can I monitor the progress of the chkdsk scan?
  28. Can chkdsk also repair bad sectors on external drives?
  29. How can I find the exact cause of errors using chkdsk?
  30. What role does the dism /online /cleanup-image /restorehealth command play in system repair?
  31. How do I use the chkdsk command to repair bad sectors?
  32. What are the differences between chkdsk, sfc, and dism?
  33. What should I do if sfc /scannow finds errors?
  34. What should I do if dism fails to repair the system image?
  35. How to use chkdsk for a corrupted hard drive?
  36. How do I run the dism command to repair the system image?
  37. How do I check my hard drive for errors using chkdsk?
  38. How to analyze chkdsk reports?
  39. How do I repair corrupted system files using the sfc command?
  40. What does the sfc /scannow command check on my computer?
  41. How do I run the command prompt as administrator for chkdsk?
  42. How can I run chkdsk for a network drive?
  43. How do I repair the system image on Windows 11 using dism?
  44. What to do if chkdsk doesn't find errors but I still have problems?
  45. How to run sfc with a Windows update in progress?
  46. What files can sfc repair?
  47. How can I use chkdsk command for a specific directory?
  48. What does the /f parameter in the chkdsk command mean?
  49. How long should I wait for sfc to fix errors?
  50. What should I do if chkdsk won't complete on startup?
Keywords: windows, 11, console, repair, sectors, hard, drive, with, commands, command, prompt, disk, scan, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + IsMyLcdOK
  + DesktopDigitalClock
  + ClassicDesktopClock
  + PreventTurnOff
  + QuickMemoryTestOK
  + IsMyHdOK
  + AutoPowerOptionsOK
  + OneLoupe
  + TraceRouteOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► How does Dynamic Lock work on Windows 11? ◄
► Capital letter first word and capital letter all words? ◄
► How to change the search options in Windows 11 File Explorer? ◄
► Automatically expand directory structure in Windows 11 Explorer? ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....