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:
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.
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).
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.
.. 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
(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
/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.
FAQ 74: Updated on: 26 August 2023 10:44