How to fix Windows installed drive is locked

Some times when you start your Windows 8 or 8.1 system, you may get a error message Your PC needs to be repaired. If you are getting this message then here is how to resolve this issue. If you are encountered this issue, then you need to boot into Advanced Boot options and try to refresh your computer. After doing this, you may receive the following message.

The drive where Windows is installed is locked. Unlock the drive and try again

Then if you try to reset your computer, then you will get the below message.

Unable to reset your PC. A required drive partition is missing

Reset-your-PC

This is due to the corrupt MBR or the BCD file. To resolve this problem, you need to try the following things.

How to fix Windows installed drive is locked

  • Navigate into the advanced boot options on your PC. One the WinRE screen, navigate to Troubleshoot > Advanced Options > Command Prompt and run chkdsk/r command.
  • If the system file which required to boot up has been corrupted, then you need to run system file checker, which can help you.
  • Then you need to change the active disk partition using diskpart. Active partition is the one which your BIOS detects is the one that starts your PC.
  • To do this, enter the below commands
diskpart
list disk

Now choose the disk, by default it will be Disk 0  and set it as the active disk. Assuming it as the disk 0, the command looks like

select disk 0

List the partitions using

list partition

As your partition number is o, then your partition will look like

select partition 0

To make this partition as the active one, type the following and press enter

active

That’s it, exit from the diskpart. Now repair the master boot record, which is an effective troubleshooting method to fix the boot problems and this might fix your problem.

You may also like...

  • Ashok

    getting error “The disk is not a fixed MBR disk” while active partition.

  • ‘Tis Moi

    “As your partition number is 0, then your partition will look like

    select partition 0

    To make this partition as the active one, type the following and press enter

    active”

    My result?

    “The specified partition is not valid.
    Please select a valid partition.
    There is no partition selected.”

    I should add that I did recover ALL data using a Knoppix CD & moved it w/o issue to an external HDD.

    I also ran chkdsk /f from a Win 10 DVD & it found NO errors. I then ran bootrec (rebuild/fix/mbr-boot, in the correct order).

    I’m back to “partition is not vaild”???

    Help?