Updated: October 2026
A drive that opened fine yesterday now answers every double-click with "The parameter is incorrect." The message sounds like a typo in a form, but it usually means the drive, its cable or its file system stopped making sense to Windows. Here's how to read the error, check whether the hardware is dying, and run chkdsk and SFC in the order that keeps the data safe.
What "The Parameter Is Incorrect" Means
It's Windows error 87, ERROR_INVALID_PARAMETER. You'll also see it as 0x80070057. Windows sent a request to a driver or a volume, and the answer that came back didn't fit. The message is generic, so the fix depends on where it appears.
You'll meet it in three places. The first is a drive that won't open: "E:\ is not accessible. The parameter is incorrect." That's the common one, and it's almost always an external or secondary drive. The second is a file copy that stops halfway. The third is Windows itself, where apps, search or the Start menu throw it after a failed update or a system restore.
Each one has a different first move. A dead-looking drive needs a health check before any repair. A failed copy needs the file and the destination looked at. A Windows-wide error points at system files, not at your data.
Check the Hardware Before You Repair Anything
Every repair tool writes to the drive. On a healthy drive that's fine. On a failing one, each pass can cost you sectors you'll never read again. So the first question is whether the disk is dying.
Open Disk Management (diskmgmt.msc) and find the drive. If it shows the right size with a partition marked RAW, the file system is damaged but the hardware still answers. If it shows the wrong size, "Not Initialized," or takes a minute to appear at all, suspect the hardware.
Then ask the drive about itself in PowerShell:
codeGet-PhysicalDisk | Select FriendlyName, MediaType, HealthStatus, OperationalStatus Get-PhysicalDisk | Get-StorageReliabilityCounter | Select DeviceId, ReadErrorsUncorrected, Temperature, Wear
Some USB enclosures don't pass health data through, so a blank answer isn't a clean bill. The other signs are physical: clicking, a drive that sits at 100% active in Task Manager while doing nothing, or a recovery scan that counts bad blocks.
That thread is the textbook case. The scan was counting tens of thousands of bad blocks, and the replies said the same thing: stop scanning, check SMART, take a byte-for-byte copy first. If the data matters and the drive shows any of those signs, image it with a tool built for failing disks, or send it to a recovery lab. Repair the copy, never the original.
Before blaming the disk, rule out the cheap stuff. Try another cable and a rear USB port instead of a hub. Give a 3.5-inch drive its own power. Plug it into a second PC. Loose cables and underpowered ports throw this error too, and they cost nothing to rule out.
The Order to Run CHKDSK and SFC
These two get mentioned together, but they fix different things. chkdsk repairs a volume's file system: the tables that say where each file lives. sfc /scannow repairs protected Windows system files. Running SFC against a broken USB drive does nothing for it, and chkdsk won't fix a damaged Windows component.
For a drive that won't open, go from least invasive to most:
| Step | Command | What it does | Skip it when |
|---|---|---|---|
| 1 | fsutil dirty query E: | Says whether Windows already flagged the volume as inconsistent | Never, it's read-only |
| 2 | chkdsk E: | Scans and reports, fixes nothing | Never, it's read-only |
| 3 | chkdsk E: /f | Fixes file system errors, needs to lock the drive | The drive shows hardware signs and has no copy |
| 4 | chkdsk E: /r | Everything /f does, plus reads every sector | The data isn't backed up, or the drive is failing |
| 5 | sfc /scannow | Repairs protected Windows files | The error is only on a data drive |
| 6 | DISM /Online /Cleanup-Image /RestoreHealth | Repairs the component store SFC restores from | SFC came back clean |
PowerShell has the same tools under clearer names. Repair-Volume -DriveLetter E -Scan is chkdsk /scan, and Repair-Volume -DriveLetter E -OfflineScanAndFix is chkdsk /f. They're handy in scripts, and our list of PowerShell commands has more like them.
Why CHKDSK /R Can Wait
Step 4 in that table is where drives get hurt. Microsoft's own chkdsk reference says /r "locates bad sectors and recovers readable information," which means it reads the whole surface. On a large spinning disk that takes hours. On a disk that's already failing, it's the most wear you can put on it.
The owner ran chkdsk /r /f on a five-year-old external drive full of family files, and it crawled. The top advice was blunt: stop making the drive work, and get the data off first.
When a File Copy Throws It
A copy that dies halfway with this error has three usual suspects. The path, the name, or the destination.
Deep folder trees break Explorer first. The classic Windows path limit is 260 characters, and a copy from a long NAS path into another long path crosses it quickly. File names are the second suspect: a name that's legal on a Mac or a Linux share can carry characters Windows won't write. The destination volume is the third. If it's the drive that's been acting up, run chkdsk on it too. On a FAT32 stick, check the file size as well: nothing over 4 GB fits, as our FAT32 vs NTFS guide explains.
Use robocopy instead of Explorer to find the culprit. It keeps going past the bad file and logs the exact path and error code:
coderobocopy "\\nas\projects" "E:\projects" /E /R:1 /W:1 /LOG:C:\temp\copy.log
Open the log, search for "ERROR 87," and you have the file.
When Windows Itself Throws It
If the error shows up in apps, search or the Start menu, the drive isn't your problem. Windows files are. This is the pattern after a failed cumulative update or an interrupted system restore.
Run sfc /scannow from an elevated prompt first. If SFC reports files it couldn't fix, run DISM to repair the component store, then SFC again. Our DISM RestoreHealth guide covers the flags and the errors DISM throws back.
If both come back clean and the error stays, the next step is an in-place repair install. Run Windows Setup from the same version and keep files and apps. It replaces system files without touching user data.
Formatting Is the Last Step, Not the First
Formatting clears the error because it builds a new file system. It also leaves your files unreachable to anything short of recovery software. So format only after the data is off, or once you've accepted it's gone.
If a quick format fails too, the partition table may be damaged. diskpart, then select disk, clean and create partition primary rebuilds it from scratch. Check the disk number twice. clean doesn't ask.
A drive that throws this error again right after a format is telling you something. File systems don't keep breaking on healthy hardware. Retire it.
On a fleet, the cheapest fix is catching a dying disk before the ticket. Get-PhysicalDisk and fsutil dirty query both run fine as scripts, and OpenFrame can run them across a client's devices and collect the output in one place.
That's "The parameter is incorrect" in practice: check the hardware, copy the data, then repair from least invasive to most. A drive that's past saving is a backup question, and our guide to incremental vs differential backup covers which one to run on the replacement.
Dmytro Koval
Head of Product Engineering
Hi! My name is Dmytro, but everyone calls me Dima. I’m a Software Developer and together with the development team, I help bring Flamingo to life — putting it on its feet from a technical perspective. Originally from Lviv, Ukraine 🇺🇦, but currently based in Spain, where I’ve been enjoying the blend of great weather, culture, and nature. I’m passionate about the mountains and love traveling — exploring new places and cultures really inspires me. These experiences constantly recharge me and give me a fresh perspective, both personally and professionally.
