This safely kicks any background processes off the drive so CHKDSK can lock it. It is safe to do this if you have no files open from that drive. This depends on drive size and the scan type:
chkdsk E: /f /r /x Replace the letter E with the letter of your external drive. | Command | What it does | | :--- | :--- | | chkdsk E: | Runs CHKDSK on drive E: | | /f | Fixes errors on the disk. | | /r | Finds bad sectors and recovers readable data (implies /f ). | | /x | Forces the drive to dismount before scanning. (Essential for externals). |
External hard drives and USB flash drives are incredibly convenient, but they are also prone to corruption, especially if unplugged without warning. When your drive starts acting slow, throwing up error messages, or failing to copy files, Windows has a built-in repair tool: CHKDSK (Check Disk) .
Repair-Volume -DriveLetter E -OfflineScanAndFix Again, replace E with your drive letter. This is common with external drives. You will see a prompt asking if you want to force a dismount. Type Y (Yes) and press Enter.