"The drive where Windows is installed is locked", is an error that you encounter when trying to restart your system. This usually happens when you try to restart your PC to try to fix another error.
Users find this error particularly burdensome as it denies them access to their system.
What is "The drive where Windows is installed is locked "error?
Unlike most errors, tit drives where Windows is installed is locked the error screen is not identified by an error code. This usually happens when you are trying to repair your Windows 8.1 or Windows 10 operating system via USB stick or DVD.
Causes of error
The main causes of this error are as follows: The Master Boot Record (MBR) file or the Boot Configuration Data (BCD) file may be damaged, Windows system files may be corrupted, there may be several errors on the hard drive, the Trusted Platform Module (TPM) could have been erased or reset or the bitlocker boot agent could have been disabled.
How to fix "The drive where Windows is installed is locked "error?
Although this error is quite annoying, it contains some simple fixes. The following five methods can be very helpful in helping you correct this error. They have been listed in descending order of popularity.
Method 1: perform automatic system repair
The automatic repair utility is available in Windows 8 and Windows 10. This utility could fix The drive where Windows is installed is locked Mistake. To do this, however, you need a real Windows boot DVD / USB.
- Insert the bootable media into the correct drives and reboot your system.
- When you enter the Windows installation window, click Repair your computer.
- After that go to Troubleshooting> Auto Repair.
- Continue with the wizard to complete the problem solving process.
NOTE: If you don't have bootable media and need to create one, do the following: (This shows how to create a bootable USB drive with Windows DiskPart utility
- Connect the USB key to the USB port on your computer.
- Press Windows key and R at the same time to open the run dialog, type cmd and press Enter.
- Select "Run as administrator" from the context menu. This opens a small window with white text on a black background.
- On the black screen that appears, type diskpart and press Enter. This starts the storage device manager
- Enter the command "list disk" to display all available storage devices.
- You can recognize your USB drive by its storage capacity, and it is usually listed as "disk 1". In the system partition, "disk 0" is generally your PC, therefore a hard disk or an SSD in your computer.
- Depending on the assumption, type the words sel disk and the corresponding number after a space (eg sel disk 1) and press enter
- Enter the "clean" command to delete all files from the USB.
- Type "create partition primary" to create a primary partition.
- Now type "list by" and select the newly created primary partition with "salt by 1".
- Activate the partition with the "active" command (press Enter after each command)
- Format the USB with the command "format fs = FAT32 label =" WINDOWSUSB "quick override". This will start formatting and it may take a while.
- As soon as the process is finished, enter the command "assign" to automatically assign a reader to your USB key.
- Enter "exit" to close DiskPart, then "exit" again to close the command prompt.
- To complete the process, simply copy the Windows ISO file to a bootable USB drive.
Method 2: Using the bootrec.exe tool
the bootrec.exe tool is a tool built into Windows. This step also required a real Windows boot DVD / USB. Follow the steps mentioned above if you want to create such a device. The main objective of using this tool is to reconstruct the boot configuration data (BCD) which controls the boot of Windows. As mentioned earlier, when this is faulty, it creates the The drive where Windows is installed is locked Mistake.
- Restart your computer
- Insert bootable media into the appropriate device
- Restart the computer and press any key if prompted.
- Select the language, time, currency, keyboard and click Next.
- Choose the operating system to repair and click Next.
- Now in the system recovery options select the command prompt.
- On the black screen that appears, type bootrec.exe and press enter. This will start to rebuild the BCD and your system will return to its normal state.
The utility starts automatically. If that doesn't work, try rebuilding it with a different set of commands, as shown below. Before you start, delete the previous BCD.
Alternative method:
- Restart your computer and insert the bootable media into the appropriate ports
- Restart the computer again and press R. Click on Troubleshoot and click on Command Prompt.
- Type the following commands and press enter after each
- bootrec / FixMbr
- bootrec / FixBoot
- bootrec / ScanOs
- bootrec / RebuildBcd
Again, the utility will automatically start to run. If that doesn't work, we have a few other methods that could potentially fix this problem.
Method 3: Check the disk for errors using the chkdsk command
CHKDSK is a command that you can run in the command prompt to check the logical integrity of the file system. The full name of CHKDSK is actually check the disc. As the name suggests, it is designed to check for errors on the disk and then fix it. One of the many reasons for this problem could be errors on the disc. This command will help us to get rid of these errors. This is yet another method that requires bootable media
- Insert the bootable media into the correct drives on your system and reboot your system.
- Select Repair your computer> Troubleshoot> Advanced options> Command Prompt.
- On the black screen that appears, type chkdsk C: / R or chkdsk C: / F and hit enter. Here, C is the drive on which Windows is installed. If installed on another drive (say D), change the command
-
Type exit and press Enter to exit the command prompt. After that restart your system.
This will remove any errors on the disk. After restarting your system, check if the error reappears. If this persists, see the solutions below to help you resolve your issue.
Method 4: Use System File Checker (SFC) to Repair Damaged Files
System File Checker (SFC) is a Windows utility that allows users to check for corruption in Windows system files and restore corrupted files.
- Open the command prompt window by typing cmd in the Windows search bar
- On the black screen that appears, type sfc / scannow and hit enter.
- Now this will start to search for corrupt or missing files in your system. He will also correct these errors.
- Once done, restart your system.
This will delete all damaged files and thus help to fix the problem. We have yet another method for you if that doesn't work.
Method 5: use diskpart
The drive where Windows is installed is locked an error can also occur if its primary hard drive partition is no longer configured as an active partition. In this case, set your primary hard drive partition as the active partition.
- Insert Windows installation disc or recovery media into your computer
- Restart your computer and boot it from the media
- Once you are in System Recovery Options (for Vista or 7 systems) or Troubleshooting (for Windows 8 and 8.1), click Command Prompt.
- In the command prompt, type diskpart without quotes and hit enter
- Type select list 0 and press Enter. 0 is the number of the disk on which Windows is installed. For a complete list of available disks on your computer, type list disk.
- Now type list partition and press enter. After this type, select partition 1, where 1 is your primary disk position. Type active and press enter.
- Restart your computer
This will set your primary active partition to one.
Conclusion
This error can be exasperating because it normally occurs when you try to correct another error. I hope the methods listed above have helped you to solve this problem.
<! –