Your question

Drive Where Windows is Installed is Locked

Tags:
  • Windows
  • Unlock
  • Windows 8
Last response: in Off-Topic / General Discussion
October 23, 2013 11:19:21 AM

I upgraded to Windows 8.1 yesterday and I have been having trouble so I am trying to do a Refresh.
It says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? What do I do?

More about : drive windows installed locked

December 1, 2013 6:31:29 PM

If you are using PCIE SSD, below can be found the data recovery solution, because no other solution works. Tried so many, too many actually.



1.) Insert a spare drive in your PC.

2.) Run the clean installation of win 8 on that drive.

3.) When logging into Win for the first time, install the PCIE SSD drivers.

4.) Run "chkdsk F: /f". F: denotes your PCIE SSD drive after its driver installation. It could be another drive letter.

5.) Now if you use Command Prompt you can see the files on the PCIE SSD. If you use Eplorer it will not be possible.

6.) Find a good recovery program to recover the data on the external drive. Or if you know DOS commands use those.

7.) Clean install win 8 on PCIE SSD and format the old spare drive.



Microsoft really did a "great" job. Yesterday my PC was working just fine. Today I turned it on I saw only the black screen with white cursor in the top left corner after the BIOS screen. F8 command did not work. Win 8 installation cd neither. It has lousy support for PCIE SSDs. Luckily I could get my data back, otherwise ...



What is worse they are trying to disguise it as virus when it was the Win Update which shabanged everything.
m
-2
l
Related resources
a c 436 * Windows 8
January 14, 2014 1:07:57 PM

you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem


m
5
l
January 18, 2014 11:23:48 AM

johnbl
i have attributes listed as readonly. in your response you say to clear the attributes, but i dont see where you indicate how to do that. howdo i change them form yes to no?
m
1
l
a c 436 * Windows 8
January 18, 2014 11:37:12 AM

http://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx
or
http://pario.no/2011/05/23/clear-read-only-flag-on-disk...

it has been a while but I think you will want to
select disk 0 (or the disk you want to change the attribute for)
list disk
attributes disk clear readonly
list disk <- to confirm you got the right setting
exit

(you use the set to turn on the readonly and clear to remove i)


sevans011 said:
johnbl
i have attributes listed as readonly. in your response you say to clear the attributes, but i dont see where you indicate how to do that. howdo i change them form yes to no?
m
0
l
January 21, 2014 5:20:35 PM

just run auto fix from windows usb repair and it is fixed
m
0
l
April 18, 2014 7:26:26 AM

I had the same problem. After working fine for months, Windows 8 (on an SSD) would not boot. I booted the machine from Win 8 CD; automatic repair and refresh did not work, diskpart and bootrec suggestions did not work. A simple solution that I did not expect to work actually worked: I put the SSD into an external USB sata disk cradle, and plugged that into another Windows 8 machine. The SSD and its volume was recognized and I was able to copy all of the data off of it.
m
0
l
May 2, 2014 6:17:52 AM

alexdale94 said:
upgraded to 8.1 yesterday and I have been having troubles so I am trying to do a Refresh.
Says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? what do I do?


my impasse was because, Under Bios, under Advanced, i had the CSM setting.
I switched it to UEFI and it was then that I didn't get the "Drive where windows is installed is locked"
m
1
l
September 26, 2014 10:09:47 PM

Hello! I have an Asus S46 running win8.1,and suddently I get the error "the boot configuration data file is missing". I can access to Windows setup options by pushing F9 button during starting up. From there,I tried to recover Windows but it said "drive is locked"...so I searched on the web and found your topic here. In fact I didnt try to unlock the disk,I directly tried your commands with bootrec (below). And it worked very well!! Thank you soooooo much! The 3 operations were successfull and then windows ran normally. Thank you so much! 5min needed!



all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem


said:


all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem



m
1
l
October 11, 2014 4:41:54 PM

I restarted in safe mode and It went normally. Now am running the repair feature
m
0
l
October 25, 2014 1:13:58 PM

My laptop wasn't acting right so I decided to refresh it by booting the system and selecting recovery then refresh your laptop, so, right away after that, notification says my drive is locked and has to be unlocked before proceeding, after trying this a couple of times and Google it for a while I couldn't get it to work. BUT if you boot you system normally then go to control panel then type in the search box " recovery " it will give you options to perform the same task which is to refresh your system to almost the factory installation which will delete installed programs but will keep your docs, It will take a while either way you try, you can accomplish this just doing it from the control panel and I found no way to do it from the boot screen. So as long as you can boot your system to access the control panel this is working right now as I type.

Hope we all can accomplish this and can be helpful to all of us.
m
0
l
December 4, 2014 8:37:03 AM

bassem82 said:
just run auto fix from windows usb repair and it is fixed


It wont let you do an auto repair when the disk is locked, it wont let you repair anything you have to load into cmd.
m
-1
l
December 9, 2014 2:17:57 AM

If you can't to solve this problem by this solution :

I tried this solution and it worked on my computer for my specific failure...

1. get access to windows repair.

2. rename of c:\windows directory to something other name as "WindowsBak".

3. Restart + F9 (repair console).

4. Then choose -> "troubleshoot"

5. "Reset your computer" - "refresh" will not be work because it's depending on windows installation on your c:, but reset strongest.

Now your computer will be as new...
m
0
l
December 15, 2014 2:22:22 AM

johnbl said:
you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem




I just went through that last step you described. What should I be seeing it says succefully completed but nothing changes.
m
0
l
February 3, 2015 12:59:10 AM

johnbl said:
you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem





The DISKPART scenario worked fine. My initial SSD with Win8.1 was set to Read-Only. Now it's formatted.
Thanks.
m
0
l
March 21, 2015 5:52:24 AM

moshe3450 said:
If you can't to solve this problem by this solution :

I tried this solution and it worked on my computer for my specific failure...

1. get access to windows repair.

2. rename of c:\windows directory to something other name as "WindowsBak".

3. Restart + F9 (repair console).

4. Then choose -> "troubleshoot"

5. "Reset your computer" - "refresh" will not be work because it's depending on windows installation on your c:, but reset strongest.

Now your computer will be as new...


you are the man, this is awesome thanks in advance
m
0
l
April 9, 2015 12:39:08 PM

alexdale94 said:
I upgraded to Windows 8.1 yesterday and I have been having trouble so I am trying to do a Refresh.
It says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? What do I do?


If you are just getting started loading windows 8.1 from a cd and everything is locked. go to your system bios and tell it to boot from your cd drive only Boot your computer, do a repair and then turn your hard drive back on.
m
0
l
May 13, 2015 6:16:27 AM

I did a clean install of w8.1 in Feb. just now I fired it up and got the errors reported in this thread.

When I ran disk part and listed the disks my SSD PCIE drive is missing. I ran bootrec /scanos and it couldn't find an installation of windows.

Strange as the drive is listed in my Bios and I when I force post the bios I can see the drive is recognised and initialised.

Any ideas?

Thanks
m
0
l
May 24, 2015 12:21:08 PM

johnbl said:

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd



This was my fix, using the USB recovery disc. Nice and painless and thank you!!!
m
0
l
June 23, 2015 3:15:06 PM

Tonehenge said:
johnbl said:

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd



This was my fix, using the USB recovery disc. Nice and painless and thank you!!!


How long did it take you? I found this method to be the only one to do something. Just want to know how long it should take.
m
0
l
June 30, 2015 12:03:56 PM

Scatter121 said:
johnbl said:
you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem





The DISKPART scenario worked fine. My initial SSD with Win8.1 was set to Read-Only. Now it's formatted.
Thanks.


Hi, this is what I got..
Virtual disk service error:
the object is not found
m
0
l
August 12, 2015 8:46:01 AM

I had the same problem. What happened is that after a Windows Automatic Update, my hard drive got corrupted by the Update. The computer went into an automatic repair mode on the hard drive. After an hour I turned it off, which was a mistake. This process can take as much as six hours. I could do nothing with Refresh and Restore and was completely locked out of Windows. If it happens again I will leave the automatic repair on until it completes, but I will never Automatically Update Windows again.
I could find nothing useful on the internet to help and local computer repair people wanted as much as $150 to "diagnose it". Fortunately, I looked at an old computer repair book and it advised using the chkdsk /f command at the command prompt, which is available from the trouble shooting screen. This worked: it deleted the corrupt files and redirected the files that had lost threads caused by the update. Be aware that the process took about an hour on my 500 gigabyte hard drive. After this I was successfully able to use the Restore option that put my computer back to factory state. Keep in mind that this took six hours to do, I had to leave it on overnight. When I got up I had Windows 8 again.
m
0
l
September 1, 2015 10:43:08 PM

You want to know how I fixed it, since I had to completely whip my hard drive? This is an answer Microsoft will not give you, but it does work and works well, even with creating a recovery drive, recreating the missing partition and unlocking the hard drive. Crazy how one simple missing file can screw up a computer, https://www.winhelp.us/create-a-recovery-drive-in-windo...

more specifically,

https://www.winhelp.us/restore-windows-re.html#recovery

It has to do with the Windows Recovery Environment.

Save you some time and money.

For the ISO depending on your software
Windows 8: http://www.microsoft.com/en-us/evalcenter/evaluate-wind...
Windows 8.1: http://www.microsoft.com/en-us/evalcenter/evaluate-wind...
Windows 10: http://www.microsoft.com/en-us/evalcenter/evaluate-wind...

Here you go! There's the answer! Get to unlocking your hard drive.

m
0
l
October 24, 2015 3:03:59 PM

I have the same problem I tried the steps given on command prompt ang I selected volume 2 and next I type attributes volume .it appears that virtual disk error:the object is not found.what should I do?
m
0
l
October 30, 2015 3:01:23 PM

johnjbl - thanks man! My son's laptop was in real problems not booting up, but ater trying your 3 bootrec fixes, and then doing chkdsk, it was fixed. Brilliant!
m
0
l
November 23, 2015 12:12:34 AM

Hi all,

I am having the same problem with locked disk.

Comp:

Lenoyo Y50
I7
16 GB
Crucial SSD mx100 256 GB
Preinstalled win8 upgraded to win 10



I have been trying with :

Recovery usb :

I type c:\ in cmd it says Acces denied, when i try it again it says The disc is write protected :( 

Tried Diskpart :


list volume :

Volume ### Ltr Label Fs Type Size Status
Volume 0 C RAW Partition 214 GB Healthy
Volume 1 RAW Partition 6174 MB Healthy
Volume 2 E RAW Partition 1000 MB Healthy Hidden
Volume 3 System drv FAT32 Partition 260 MB Healthy Hidden
Volume 4 F RAW Partition 15 GB Healthy Hidden
Volume 5 G OBNOVITEV FAT32 Removable 14 GB Healthy



All attibutes are : No. On disk and volume

Readonly : No
Bootdisk: no
Pagefile disk : No ...

Tried to clear readonly anyway : Diskpart failed to clear disk attributes.

Tried to set readonly just in case : Diskpart failed to set disk attributes.

Chkdsk Cannot write as disk is locked:

bootrec - cannot do anything as the disk is still locked.


Have been trying every solution, that I have found online, but the drive still appears locked.

Please help, as I have 14 hours of work - not backuped .

Thak you all.

Miha
m
-1
l
November 26, 2015 2:35:51 AM

I did try all the above, nothing worked.

Finally found my solution with TestDisk (running it from LMint live cd).

http://www.cgsecurity.org/wiki/TestDisk

My problem was that I did messed up the partition table. TestDisk can either fix it or help you to recover your important files.

Hope it helps.
Kike
m
0
l
December 19, 2015 4:53:59 PM

I had this problem, too. At first, I thought, oh no! Turns out my issue wasn't as serious some; and here's what I found. I followed some steps outlined in this thread, then stopped because nothing was helping. I gave some thought to this, and asked myself what could have changed in my system? Since the drive was "locked" and also being seen as RAW, this just made no sense whatsoever. I rebooted, immediately hit F12, checked my BIOS, and discovered that my RAID array was turned off! What? I checked the battery. Duh! It was dead, and the BIOS simply forgot the settings. I installed a new battery, I turned the RAID array back on, and BOOM! Everything works! The point of my response is to help remind everyone to stop and think things through before you panic and try a lot of potentially unnecessary steps. When in doubt, start with the basics! Hopefully, you too will experience a simple solution for your system!
m
0
l
December 26, 2015 4:08:32 PM

I had the same problem after what I think was a Microsoft forced update over night. This morning the screen showed something about an i/o error. When I tried to reboot it brought me to a screen with 10 or so options for rebooting. Interestingly the instructions at the beginning and end were in English but the description of each option was in Italian! Go figure.

Anyway, I tried a bunch of suggestion from various posts to no avail. I decided to check, again, that the machine was booting from the correct drive. There were two listed but the descriptions were cryptic. I looked them up using another computer and found that some how the bios had been changed to boot from a drive that is only used as storage. I switched them back so it would boot from the proper drive.

On restarting the computer went through some "updating: messages then booted correctly.

I have not idea how the drives got switched. Yesterday was Christmas and I was gone all day and no one was on the machine. The fact that the machine "updated" after starting makes me think it was a Microsoft update.

Hope this helps

Dan
m
0
l
February 23, 2016 5:55:19 AM

Hope someone can help me. Here is my issue with W8. I was going to use a bootable W7 flash drive but I wans't able to boot it. So, I went into the BIOS and just changed the UEFI to CSM boot and rebooted. Now it keeps saying PXE-M0F, please insert bookable media or dvd. It seems the flash drive image was corrupted. Now, I have pushed esc, f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,del to try and access the BIOS again, but neither key works. Also, neither key gives me the option to choose the boot order or access the advanced options. I am pulling my hair trying to revert it back to UEFI boot, but not working. It is a toshiba P855-S5321with W8. Any help would be appreciated, please!
m
0
l
March 1, 2016 9:02:50 AM

alexdale94 said:
I upgraded to Windows 8.1 yesterday and I have been having trouble so I am trying to do a Refresh.
It says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? What do I do?


hi have you tried taking hard drive out and starting laptop with any usb stick or dvd? It will say no os found put hard drive back and try starting it up. This worked for me after 3 days of messing around with bootrec etc.
m
0
l
March 1, 2016 9:03:37 AM

without any usb or dvd i meant
m
0
l
March 1, 2016 9:21:43 PM

Bobbin54 said:
I had the same problem. After working fine for months, Windows 8 (on an SSD) would not boot. I booted the machine from Win 8 CD; automatic repair and refresh did not work, diskpart and bootrec suggestions did not work. A simple solution that I did not expect to work actually worked: I put the SSD into an external USB sata disk cradle, and plugged that into another Windows 8 machine. The SSD and its volume was recognized and I was able to copy all of the data off of it.


MMiha said:
Hi all,

I am having the same problem with locked disk.

Comp:

Lenoyo Y50
I7
16 GB
Crucial SSD mx100 256 GB
Preinstalled win8 upgraded to win 10



I have been trying with :

Recovery usb :

I type c:\ in cmd it says Acces denied, when i try it again it says The disc is write protected :( 

Tried Diskpart :


list volume :

Volume ### Ltr Label Fs Type Size Status
Volume 0 C RAW Partition 214 GB Healthy
Volume 1 RAW Partition 6174 MB Healthy
Volume 2 E RAW Partition 1000 MB Healthy Hidden
Volume 3 System drv FAT32 Partition 260 MB Healthy Hidden
Volume 4 F RAW Partition 15 GB Healthy Hidden
Volume 5 G OBNOVITEV FAT32 Removable 14 GB Healthy



All attibutes are : No. On disk and volume

Readonly : No
Bootdisk: no
Pagefile disk : No ...

Tried to clear readonly anyway : Diskpart failed to clear disk attributes.

Tried to set readonly just in case : Diskpart failed to set disk attributes.

Chkdsk Cannot write as disk is locked:

bootrec - cannot do anything as the disk is still locked.


Have been trying every solution, that I have found online, but the drive still appears locked.

Please help, as I have 14 hours of work - not backuped .

Thak you all.

Miha


m
0
l
March 1, 2016 9:57:15 PM

try this solution for saving your data. From your recovery usb go into cmd prompt type notepad.exe it will open notepad. next press ctrl and O keys, a window should appear which says save as. Where it says file name make sure it is blank and where it says save as type make sure it says all files. you should be able to have option to send files( right click on selected file) to dvd or another usb drive or external device.
m
0
l
May 30, 2016 6:23:14 AM

I believe a big reason for "locked SSDs" is basically data corruption due to an unexpected power loss for the SSD.
All consumer-grade SSDs are subject to the risk of data loss when they suddenly lose power. The computer is supposed to send the SSD a signal "standby_immediate" to prevent that, but Windows 10 appears to not send that signal as often as it should.
Since I upgraded to Windows 10 I had frequent problems where the SSD had to run some kind of internal reconstruction routine when I booted it up - that happened for example every time I tried to put the PC into hibernation.
Just recently, after the battery on my laptop ran out, the drive got locked and I couldn't restore it, I was just able to pull all the important data from it using testdisk.

m
0
l
August 26, 2016 11:22:32 AM

godspunisher said:
Hope someone can help me. Here is my issue with W8. I was going to use a bootable W7 flash drive but I wans't able to boot it. So, I went into the BIOS and just changed the UEFI to CSM boot and rebooted. Now it keeps saying PXE-M0F, please insert bookable media or dvd. It seems the flash drive image was corrupted. Now, I have pushed esc, f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,del to try and access the BIOS again, but neither key works. Also, neither key gives me the option to choose the boot order or access the advanced options. I am pulling my hair trying to revert it back to UEFI boot, but not working. It is a toshiba P855-S5321with W8. Any help would be appreciated, please!


sometimes when taking the machine out of uefi mode, u stop all usb ports from functioning. you literally need to go to an old thrift shop or goodwill and buy the old key/mouse that have the old school green and purple ps/2 jacks. i just did this same thing myself. i have the same issue as the OP but i did the same thing you did this week and it messed me all up. ll luckily my dad is a pretty good go to person for these simple screw ups and i got back to where i was
m
0
l
August 26, 2016 11:43:41 AM

I had the same locked drive problem in windows 10. Using windows 10 install on a USB stick to boot the computer went into repair options and under advanced selected command prompt. I also found that 5 minutes doing the following worked. Note: my usb stick was x: and windows was identified on e: so when it came time to run bootrec.exe /RebuildBCD it found windows on e: and asked me to confirm that it was my windows partition, I selected 'Y' and on next boot windows 10 started up.



all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem


said:


all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem




m
0
l
September 18, 2016 3:00:22 AM

alexdale94 said:
I upgraded to Windows 8.1 yesterday and I have been having trouble so I am trying to do a Refresh.
It says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? What do I do?


m
0
l
September 18, 2016 3:24:23 AM

Using windows 8 recovery disc or usb stick you can run repair commands to fix the boot record.
With bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

as has been previously stated in this thread. I had to do it with a windows 10 install and it worked fine. Takes 5 minutes.




adelskyb said:
alexdale94 said:
I upgraded to Windows 8.1 yesterday and I have been having trouble so I am trying to do a Refresh.
It says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? What do I do?




m
0
l
September 21, 2016 10:14:06 AM

Nick92885 said:
I had this problem, too. At first, I thought, oh no! Turns out my issue wasn't as serious some; and here's what I found. I followed some steps outlined in this thread, then stopped because nothing was helping. I gave some thought to this, and asked myself what could have changed in my system? Since the drive was "locked" and also being seen as RAW, this just made no sense whatsoever. I rebooted, immediately hit F12, checked my BIOS, and discovered that my RAID array was turned off! What? I checked the battery. Duh! It was dead, and the BIOS simply forgot the settings. I installed a new battery, I turned the RAID array back on, and BOOM! Everything works! The point of my response is to help remind everyone to stop and think things through before you panic and try a lot of potentially unnecessary steps. When in doubt, start with the basics! Hopefully, you too will experience a simple solution for your system!


That was exactly what was wrong with my system. Battery needed replaced, had to switch RAID back on for each drive in the BIOS. Many thanks for the tip!

m
0
l
October 18, 2016 5:24:17 AM

aidanklenk said:
from my understanding, a lot of people have had this problem.
following the steps in this link should fix it, if not, let us know.

http://www.boyans.net/RepairWindows/The_drive_where_Win...

Looked good , but when I try to run chkdsk I get message "Windows cannot run disk checking on this volume because it is write protected". When I try scannow I get " Windows resource protection could not perform the requested operation." Any ideas?
m
0
l
October 31, 2016 11:48:59 PM

realAMDfreak said:
If you are using PCIE SSD, below can be found the data recovery solution, because no other solution works. Tried so many, too many actually.



1.) Insert a spare drive in your PC.

2.) Run the clean installation of win 8 on that drive.

3.) When logging into Win for the first time, install the PCIE SSD drivers.

4.) Run "chkdsk F: /f". F: denotes your PCIE SSD drive after its driver installation. It could be another drive letter.

5.) Now if you use Command Prompt you can see the files on the PCIE SSD. If you use Eplorer it will not be possible.

6.) Find a good recovery program to recover the data on the external drive. Or if you know DOS commands use those.

7.) Clean install win 8 on PCIE SSD and format the old spare drive.



Microsoft really did a "great" job. Yesterday my PC was working just fine. Today I turned it on I saw only the black screen with white cursor in the top left corner after the BIOS screen. F8 command did not work. Win 8 installation cd neither. It has lousy support for PCIE SSDs. Luckily I could get my data back, otherwise ...



What is worse they are trying to disguise it as virus when it was the Win Update which shabanged everything.


m
0
l
October 31, 2016 11:49:27 PM

where is the "spare drive ???
m
0
l
November 1, 2016 12:47:18 PM

Brilliant!
I had error code 0xd000000d on startup and the SSD was locked as described above, but when typing these three commands in the cmd (accessing it by using the windows 8.1 cd) it completely solved the problem! Thanks!! =)

Tonehenge said:
johnbl said:

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd



This was my fix, using the USB recovery disc. Nice and painless and thank you!!!


m
0
l
December 10, 2016 11:29:10 AM

These commands just fixed my Windows 10 system. Thanks!!!!

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd


johnbl said:
you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem




m
0
l
April 29, 2017 12:38:45 PM

imatari said:
alexdale94 said:
upgraded to 8.1 yesterday and I have been having troubles so I am trying to do a Refresh.
Says "the drive where windows is installed is locked. Unlock the drive and try again"
What is wrong? what do I do?


my impasse was because, Under Bios, under Advanced, i had the CSM setting.
I switched it to UEFI and it was then that I didn't get the "Drive where windows is installed is locked"




I can confirm that switching the BIOS setting to EUFI worked for me as well. It may or may not look exactly the way described above. Mine didn't. In my case, I switched from "Legacy" to "EUFI" and Windows 10 then booted perfectly.

SOLVED!
m
0
l
August 21, 2017 4:24:41 PM

johnbl said:
you might want to run diskpart.exe as a admin
and see if your disk or partition has been marked as read only.

start cmd.exe as a admin
diskpart.exe
list disk
select disk 0 <----------- from the output of the previous command
attributes disk <-------- displays the attributes of that drive

see if it is marked as readonly
here is what mine shows:
DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

if it is not marked readonly i would check the partition tables attrbutes

list volume
seclect volume 2 <-------- this is my windows drive
attributes volume <---------this will dump your volume info

here is what mine looks like:

DISKPART> attributes volume
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No

again you are looking for it being marked as readonly.

if they are marked readonly you can clear the attribute

all else fails you can run repair commands to fix the boot record

with bootrec.exe

bootrec /fixmbr
bootrec.exe /fixboot
bootrec.exe /RebuildBcd

sorry if this seems complex, it is just a shame to have to wipe a drive for this problem




I've done all of this but it reads back to me: Total identified Windows instalations: 0 The operation completed successfully.

I'm unable to perform a restart aside from powering it off and turning it back on, any suggestions? At this point if i habe to wipe it i would be okay with that but i am unable to do that as it says that the partition is missing.
m
0
l
Tom’s guide in the world
  • Germany
  • France
  • Italy
  • Ireland
  • UK
Follow Tom’s guide
Subscribe to our newsletter
  • add to twitter
  • add to facebook
  • ajouter un flux RSS