This gives you full control.
: Forces the drive to "dismount" (disconnect) so the tool can work without other programs interfering. Troubleshooting Common Issues CHKDSK /F /R /X Commands to Scan & Fix Hard Drives chkdsk on external drive fix
For more comprehensive troubleshooting, users often employ the switch. Running chkdsk X: /r performs the same functions as but adds a deeper layer of scrutiny: it attempts to locate physical bad sectors This gives you full control
Right-click "Command Prompt" and select . Type the CHKDSK Command: Running chkdsk X: /r performs the same functions
Running a repair scan can be stressful for a drive. If your hardware is physically failing, a deep scan might push it over the edge.
@echo off for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk where drivetype=2 get deviceid, volumename') do ( echo Checking %%i ... chkdsk %%i /f /r /x ) pause
If CHKDSK reports that it "cannot continue in read-only mode" or if it finds no errors but the drive still won't open, the might be corrupted. In these cases, you may need to use data recovery software or reformat the drive entirely via Disk Management .