When repairing or recovering Windows 10 from the Recovery Environment, you may encounter an error stating the drive is locked. This article provides steps to resolve this issue and continue with the Windows 10 restore.
Hard drive locked during Windows 10 recovery
If you choose to refresh your personal computer from the Windows 10 Recovery Environment, then the following error may appear: "The drive where Windows is installed is locked. Unlock the drive and try again." To resolve the issue, follow the steps below.
- Press Cancel on the error message. The computer should boot to the Windows 10 Recovery Environment.
- Click Troubleshoot.
- Then click Advanced options from the Troubleshoot menu.
- On the Advanced options screen that appears, click the Command Prompt.
- At the command prompt, type bootrec /FixMbr and press Enter on the keyboard.
NOTE: A message should appear after each command that the process was completed successfully. The command prompt will then reappear, allowing you to type the next command in the list of steps below.
- Type bootrec /fixboot and press Enter.
- Type bootrec /ScanOs and press Enter.
- Type bootrec /RebuildBcd and press Enter.
NOTE: A prompt for Total identified Windows installations: may now appear with the choices of Add installation to boot list? Yes<y>/No<n>/All<a>:. Type Y for Yes to continue with the rebuild process.
- Finally, type Exit and press Enter.
- The computer should reboot and allow the refresh or repair of Windows 10 to complete.
If you get a 'Hard drive is locked' error while installing Windows 10 from recovery media, see the Dell article for a solution: Windows 10: Hard Drive Locked Error During Install.
If you still have an issue with the hard drive locked error after performing the steps above, contact Dell Technical Support at the following link: Contact Dell Technical Support.