Original post : The drive where Windows is installed is locked: Fix for Windows 8, 8.1, 10.
Refresh your PC The drive where Windows is installed is locked. Unlock the drive and try again. Cancel
If you don't have your original Windows 8 installation media, go to Fix #1: Use Easy Recovery Essentials
chkdsk
chkdsk /r
If you don't have the original install media, go to Fix #1: Use Easy Recovery Essentials
chkdsk C: /f /x /r
C:
D:
If you don't have the original disc, go to Fix #1: Use Easy Recovery Essentials
bootrec /FixMbr
bootrec /FixBoot
bootrec /ScanOs
bootrec /RebuildBcd
exit
bootrec
diskpart
sel disk 0
list vol
sel vol 2
2
c:
assign letter x:
x:
DiskPart successfully assigned the drive letter or mount point.
cd /d x:\EFI\Microsoft\Boot
bootrec /fixboot
ren BCD BCD.Backup
bcdboot c:\Windows /l en-us /s x: /f ALL