Windows 11 just popped up a message saying there’s a problem with your external drive, or File Explorer freezes every time you open a folder on your second disk. To repair it, copy off any files you can’t lose, then run the drive’s error check from Properties > Tools in File Explorer, or run chkdsk X: /f from an administrator Terminal (add /r for bad sectors).
These tools are built into Windows 11 and work on internal and external drives.
Check Whether the Drive Is Failing Before You Repair It
Repair tools fix the file system, which is the index Windows uses to find your files. They can’t fix worn-out hardware. Running a long repair on a dying drive puts extra strain on it, so take a minute to look for these signs first:
- A hard drive that clicks, grinds or keeps spinning up and down.
- The drive disappears and reappears while you’re using it.
- Copying a file stalls at the same point every time.
- Windows shows a critical warning for the drive in Settings.
- A previous repair reported bad sectors, and the number keeps growing.
If any of these apply, copy your most important files to another drive or to cloud storage before you run anything else. A repair can make a folder readable again, but on a failing drive the next one might not get the chance.
For an NVMe solid state drive, Windows 11 also tracks health. Go to Start > Settings > System > Storage > Advanced storage settings > Disks & volumes, then select Properties for the disk. You’ll see the estimated remaining life, available spare and temperature. Microsoft notes that Windows monitors only NVMe SSDs, not SATA SSDs or hard drives, so a missing health section on an older drive is normal and doesn’t mean it’s healthy or unhealthy. If you see a warning such as “Reliability is degraded” or “Drive is set to read-only,” back up right away and plan to replace the drive.

Repair a Drive From File Explorer
This is the easiest route and a good first try for a USB drive, SD card or second internal disk. You don’t have to type any commands, and Windows walks you through the repair.
- Open File Explorer (Windows key + E) and select This PC in the left pane.
- Right-click the drive you want to fix and choose Properties.
- Open the Tools tab.
- Under Error checking, select Check. If Windows asks for permission, approve it with an administrator account.

- Choose the scan option. If Windows says it found no errors, you can still scan to be sure.
- If errors turn up, choose the option to repair the drive. For the drive Windows runs from (usually C:), Windows may ask you to restart so it can repair the drive before Windows loads.
Close any files or apps that are using the drive first. If something holds it open, the repair has to wait for a restart or ask to dismount the drive. If Windows shows a notification offering to scan and fix a removable drive you just plugged in, selecting it starts a similar check.
Repair a Drive With Chkdsk in Terminal
The command line gives you more control and a readable report. You need an account in the Administrators group.
- Right-click the Start button and choose Terminal (Admin) (on some PCs the menu shows Windows PowerShell (Admin) or Command Prompt (Admin) instead; either works). Select Yes at the prompt.
- Find the drive letter in File Explorer. In this example, a backup disk called “Photos” is drive E.
- Type
chkdsk E: /scanand press Enter. This online scan looks for problems on an NTFS drive while it stays in use, and it changes nothing. - If the scan reports problems, run
chkdsk E: /fto fix them. Chkdsk needs to lock the drive for this, so close anything using it. - If you suspect bad sectors (files that won’t copy, read errors), run
chkdsk E: /rinstead. It does everything /f does and also finds bad sectors and recovers what it can read from them.

Running chkdsk with no switches only reports the drive’s status. It never fixes anything, which is why people sometimes think it “did nothing.” The switches that matter for a repair are:
| Switch | What it does | When to use it |
|---|---|---|
| /scan | Online scan of an NTFS volume; no changes | First look, drive stays usable |
| /spotfix | Fixes problems found by an earlier scan, with a brief offline moment (NTFS) | After /scan finds issues |
| /scan /forceofflinefix | Scans online but queues every problem it finds for an offline repair instead of fixing it now (NTFS) | When you want all fixes done in one offline pass later |
| /f | Fixes file system errors; needs to lock the drive | Standard repair |
| /r | Includes /f, finds bad sectors and recovers readable data | Read errors or suspected damage |
| /x | Forces the drive to dismount first; includes /f | An app keeps the drive busy |
| /offlinescanandfix | Runs an offline scan and fix | Problems /spotfix can’t clear |
Microsoft warns that /r can take a very long time on a large hard drive. Start it when you can leave the PC alone, and keep a laptop plugged in. For every other switch and option, see this chkdsk command reference for Windows 11 or Microsoft’s chkdsk documentation.
Repairing the C: drive
Windows is always using C:, so chkdsk can’t lock it. When you run chkdsk C: /f, you’ll see a message that the volume is in use and a question asking whether to check it the next time the system restarts. Type Y, press Enter and restart. The check runs before Windows loads, and the PC restarts on its own when it finishes. Don’t switch the PC off during that screen. Microsoft says stopping chkdsk shouldn’t leave the drive more damaged than before, but you’ll have to start the repair again.
Repair a Drive With PowerShell Repair-Volume
If you prefer PowerShell, the Repair-Volume command does the same jobs with clearer names. Open Terminal (Admin) as above; it normally opens a PowerShell tab; if it opens Command Prompt, type powershell and press Enter first.
Repair-Volume -DriveLetter E -Scanscans and logs problems (like chkdsk /scan).Repair-Volume -DriveLetter E -SpotFixtakes the drive offline briefly and fixes the logged problems (like chkdsk /spotfix).Repair-Volume -DriveLetter E -OfflineScanAndFixtakes the drive offline, scans and fixes it (like chkdsk /f).
A good order is Scan, then SpotFix if problems were found. The parameters are listed on Microsoft’s Repair-Volume page.
Read the Results
Chkdsk prints a summary at the end. Look for lines saying it found no problems, or that it made corrections to the file system. If it lists bad sectors or “KB in bad sectors,” the hardware has damage, even if the files now open.
When chkdsk runs at restart, the summary flashes past before Windows loads. To read it afterward:
- Right-click Start and choose Event Viewer.
- Expand Windows Logs and select Application.
- Select Filter Current Log in the right pane.
- Choose the event sources Chkdsk and Wininit, then select OK.
- Open the newest entry to read the full report.

Scripts and support staff sometimes ask for chkdsk’s exit code. Microsoft documents four: 0 means no errors were found, 1 means errors were found and fixed, 2 means cleanup was done (or wasn’t done because /f was missing), and 3 means the disk couldn’t be checked, errors couldn’t be fixed, or errors weren’t fixed because /f wasn’t used. If you see 3 after a run with /f or /r, that’s a strong hint to back up and stop repairing; after a plain scan, run the repair with /f first.
When the Drive Shows as RAW, Won’t Open, or Is External
Start with the simple checks for an external drive: unplug it, try a different USB port directly on the PC (not a hub), and try another cable. Many “broken” external drives turn out to be a loose cable or an underpowered port.
If the drive doesn’t show in File Explorer at all, open Disk Management and look for it. A drive with no letter just needs one: right-click the volume, choose Change Drive Letter and Paths, then Add. A volume listed as RAW means Windows can’t read its file system.
Windows often offers to format a RAW or unreadable drive. Don’t accept if you need the files. Formatting writes a new, empty file system. Try chkdsk first. If it can’t repair the drive and the files matter, Microsoft’s Windows File Recovery app from the Microsoft Store can recover deleted files from local drives using its Regular and Extensive modes. Recover to a different drive than the one you’re recovering from, so you don’t overwrite what you’re trying to save.
Once your files are safe, formatting is a fair last step for a drive that keeps showing errors. Steps for picking the right file system are in this walkthrough on formatting a USB drive in Windows 11.
Repair Windows Files Instead With SFC and DISM
Sometimes the drive is fine and Windows itself is damaged: Settings won’t open, updates fail, or apps crash. Chkdsk won’t fix that. System File Checker checks protected Windows files and replaces damaged ones with a cached copy. Microsoft recommends running DISM first, in an administrator Terminal:
- Type
DISM.exe /Online /Cleanup-image /Restorehealthand press Enter. Wait for it to finish. - Type
sfc /scannowand press Enter. - Restart when it’s done.
Microsoft’s System File Checker article covers what the results mean. If the PC won’t start at all and keeps landing on a repair screen, follow these steps to get out of an automatic repair loop, which includes running chkdsk from the recovery environment.
When to Stop Repairing and Replace the Drive
Stop and replace the drive if chkdsk keeps finding new bad sectors each time, still exits with code 3 after a /f or /r repair, the NVMe health page shows a critical warning, or the drive makes mechanical noises. Running /r again and again on a failing hard drive won’t heal it, and each pass is another long read of a disk that may not survive many more.
You’ll see some guides call the DiskPart clean command a repair. It isn’t. It erases the partition information on the whole disk, which makes every file on it inaccessible. Use it only on a disk you’ve already backed up and intend to wipe, and double-check the disk number, because selecting the wrong disk wipes that one instead.
Questions about drive repair in Windows 11
Will repairing a drive delete my files?
Not on purpose, but it can change what you see. On FAT drives such as some USB sticks and SD cards, chkdsk may ask to convert lost chains to files and save each lost chain as a file named like File0000.chk in the drive’s root folder. Data in sectors that can’t be read is lost either way, which is why backing up first matters.
Does it matter if the drive is NTFS, FAT32 or exFAT?
Yes. /f and /r work on all of them, but /scan and /spotfix are NTFS features. Most internal Windows drives use NTFS, while many flash drives and memory cards use FAT32 or exFAT, so use /f on those.
Can I keep using the PC while chkdsk runs?
With /scan, yes, because it runs online. With /f or /r on a second drive, you can use the PC, but not that drive. A repair of C: runs at restart, so the PC is unavailable until it finishes.
Why does chkdsk run every time I start the PC?
Usually Windows has flagged the drive as needing a check, and it can keep scheduling one if the check can’t finish its repairs. Read the results in Event Viewer. If they mention bad sectors or failed repairs, treat it as a failing drive and back up.
If the repair worked, copy a few large files to and from the drive to make sure it behaves, and keep a current backup of anything on it from here on.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.