{"id":1995,"date":"2017-01-10T01:04:00","date_gmt":"2017-01-10T00:04:00","guid":{"rendered":"http:\/\/borncity.com\/win\/?p=1995"},"modified":"2023-02-14T15:30:25","modified_gmt":"2023-02-14T14:30:25","slug":"how-to-fix-windows-setup-hard-disk-locked-error","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2017\/01\/10\/how-to-fix-windows-setup-hard-disk-locked-error\/","title":{"rendered":"How to fix Windows-Setup Hard Disk locked error"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline;\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2015\/01\/win102.jpg\" width=\"58\" height=\"58\" align=\"left\" \/>[<a href=\"http:\/\/www.borncity.com\/blog\/2013\/11\/08\/windows-88-1-setup-hard-disk-locked-fehler-beheben\/\" target=\"_blank\" rel=\"noopener noreferrer\">German<\/a>]Some users are facing a bad surprise during re-installing Windows 8.1 or Windows 10 on a machine. Setup fails and reports a \"locked hard disk\". Here are a few hints, how to solve this issue.<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ssl-vg03.met.vgwort.de\/na\/145254cc51474e6e8ca9818e857b03dd\" alt=\"\" width=\"1\" height=\"1\" \/>I've been confronted with this issue in Microsoft Answers since Windows 8. Users are receiving the Message (see <a href=\"https:\/\/web.archive.org\/web\/20220815162445\/https:\/\/windowsforum.com\/threads\/the-drive-where-windows-is-installed-is-locked-unlock-the-drive-and-try-again.110116\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> and <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_8-system\/windows-crash-refresh-hard-drive-locked-unlock\/a6bb04ff-5dba-4e10-a849-644cd0851bc6?page=1\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>):<\/p>\n<blockquote><p>\u201eThe drive where Windows is installed is locked. Unlock the drive and try again.\"<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/11\/Disk-Lock01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Disk-Lock01\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/11\/Disk-Lock01_thumb.jpg\" alt=\"Disk-Lock01\" width=\"617\" height=\"206\" border=\"0\" \/><\/a><\/p>\n<p>Installing Windows isn't possible at this time. I guess, some failed updates, third party tools or other incidents left the hard disk in a wrong state. So we need a cure to fix that issue.<\/p>\n<h3>Fix #1: Reset BIOS-\/CMOS to default<\/h3>\n<p>In some cases, wrong CMOS data prevents accessing a disk via BIOS (or UEFI) calls. So try to reset your UEFI \/ BIOS to factory defaults. Press a function key (F2, F8, F12 etc.) to enter BIOS- or UEFI setup and search the option to set the default values. Details may be found in the device's manual (see also this <a href=\"https:\/\/web.archive.org\/web\/20220815162445\/https:\/\/windowsforum.com\/threads\/the-drive-where-windows-is-installed-is-locked-unlock-the-drive-and-try-again.110116\/\">forum thread<\/a>).<\/p>\n<p>Also check your cables and disk configuration to avoid an improper setup. In case, that several disks are build in, remove all disks and use only the disk for the operating system install, to avoid conflicting hardware constellations.<\/p>\n<h3>Check your disk drive<\/h3>\n<p>A damaged file system can result in a locked disk (see<a href=\"https:\/\/web.archive.org\/web\/20140723003659\/http:\/\/www.eightforums.com\/installation-setup\/14698-can-t-boot-into-windows-8-hard-drive-locked-can-t-refresh-7.html\"> here<\/a>). Open an administrative command prompt (see <a href=\"https:\/\/web.archive.org\/web\/20210512202711\/https:\/\/borncity.com\/win\/2016\/07\/06\/windows10-open-command-prompt-window-as-administrator\/\">Windows 10: Open command prompt window as administrator<\/a>) and enter the command:<\/p>\n<p><em>chkdsk C: \/f \/r \/x<\/em><\/p>\n<p>In worst case, this command needs to be executed unter Windows PE (after booting from a recovery drive or system repair disk). Note that the drive with the Windows install has to be included within the obove command (I uses C: for instance).<\/p>\n<h3>Reset your hard disk's partitions<\/h3>\n<p>If a file system check doesn't fix the problem, try to unlock a logical volume on your hard disk. Boot Windows and got to an administrative command prompt window (see <a href=\"https:\/\/web.archive.org\/web\/20210512202711\/https:\/\/borncity.com\/win\/2016\/07\/06\/windows10-open-command-prompt-window-as-administrator\/\">Windows 10: Open command prompt window as administrator<\/a>). Enter the commands:<\/p>\n<p>diskpart<br \/>\nlist disk<br \/>\nselect disk x<\/p>\n<p>The letter x stands for the drive with Windows. After the disk has been selected in diskpart, list and check the logical partitions, using the commands below.<\/p>\n<p>list partition<\/p>\n<p>The command shall list the Windows install partition \u2013 otherwise the wrong disk has be selected in previous commands. Now you can check the drive's attributes:<\/p>\n<p>attribut disk<\/p>\n<p>The result shall show, whether the disk is write protect or not (see the following screen shot).<\/p>\n<p><a href=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/11\/Disk-Lock02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Disk-Lock02\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/11\/Disk-Lock02_thumb.jpg\" alt=\"Disk-Lock02\" width=\"660\" height=\"430\" border=\"0\" \/><\/a><\/p>\n<p>If a write protect is enlisted with \u201eYes\", try the following command to reset write protection:<\/p>\n<p>attributes disk clear readonly<\/p>\n<p>This command will work only within Windows PE. Afterward boot the machine and try to run setup again. If the issue is still present, check all logical volumes for a write protection using the following commands.<\/p>\n<p>select disk 0<br \/>\nlist volume<br \/>\nselect volume 2<\/p>\n<p>The commands given above selects disk 0 and logical volume 2 \u2013 I assumed, Windows has been installed on logical volume 2. The use the command:<\/p>\n<p>attributes volume clear readonly<\/p>\n<p>to reset a write protection on a volume. I've tested it, it also works in an administrative command prompt windows.<\/p>\n<p>It's also possible, that a missing active partition prevents Windows from booting. Use diskpart and the command <em>active <\/em>to set a partition as active.<\/p>\n<h3>Repair your boot configuration<\/h3>\n<p>Sometimes boot files or the BCD store is damaged and prevents installing Windows (<a href=\"https:\/\/web.archive.org\/web\/20161026163148\/http:\/\/www.eightforums.com:80\/installation-setup\/14698-cant-boot-into-windows-8-hard-drive-locked-cant-refresh-6.html\" target=\"_blank\" rel=\"noopener noreferrer\">see<\/a>). Try to boot into Windows RE and use startup repair to fix the boot environment (see my blog post <a href=\"https:\/\/borncity.com\/win\/2016\/09\/27\/windows-10-hangs-with-error-code-0xc0000034\/\">Windows 10 hangs with error code 0xc0000034<\/a>. If that doesn't work, opens an administrative command prompt window and enter the following commands:<\/p>\n<p>bootrec \/fixmbr<br \/>\nbootrec \/fixboot<br \/>\nbootrec \/scanos<br \/>\nbootrec \/rebuildbcd<\/p>\n<p>The 3rd command lists all installed Windows copies and the last command rebuild the BCD store (see <a href=\"https:\/\/web.archive.org\/web\/20190122160440\/http:\/\/www.tomshardware.co.uk:80\/forum\/id-1652375\/boot-error-drive-locked-unlocking-drive.html\" target=\"_blank\" rel=\"noopener noreferrer\">also<\/a>). In some cases, the command below, issued within a command prompt windows, the BCD store.<\/p>\n<p>bcdboot C:\\Windows \/s C:<\/p>\n<p>The command suppose that Windows is installed on logical drive C: \u2013 see this blog post (deleted) from Boyans.<\/p>\n<h3>Take care with Raid systems \u2026<\/h3>\n<p>I've read several times, that drivers for raid systems are the cause for the hard disk lock issue.<\/p>\n<h3>Recovery or reformat your disk<\/h3>\n<p>If the fixes give above doesn't helps, try to reset your machine to factory settings, using the vendor's recovery solution (see your device's manual). Or delete the \"system reserved\" partition in setup wizard and install Windows on a free, non partitioned disk space.<\/p>\n<p>Within the MS forum thread <a href=\"http:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_8-update\/windows-crash-refresh-hard-drive-locked-unlock\/a6bb04ff-5dba-4e10-a849-644cd0851bc6\" target=\"_blank\" rel=\"noopener noreferrer\">Windows crash \u2013 Refresh \u2013 Hard drive locked, unlock hard drive<\/a> a damaged BCD entry may be repaired using the following commands in command prompt window:<\/p>\n<p><em>BCDboot c:\\windows \/s c: \/l en-us i<\/em><\/p>\n<p>The options for BCDboot are discussed within <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/Dd744347(v=WS.10).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">this Technet article<\/a>.<\/p>\n<h3>Error code 0xC0000001<\/h3>\n<p>If an error code 0xC0000001 has been reported? This <a href=\"http:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows8_1-update\/unable-to-boot-error-code-0xc0000001-youll-need-to\/520d5a3f-1fbb-4a9a-98d1-03a8201f00ed\" target=\"_blank\" rel=\"noopener noreferrer\">MS Answers forum thread<\/a>, and the articles <a href=\"https:\/\/web.archive.org\/web\/20180917011003\/http:\/\/www.tomshardware.co.uk:80\/answers\/id-2306771\/windows-recovery-error-code-0xc0000001.html\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> and <a href=\"https:\/\/neosmart.net\/wiki\/0xc0000001\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> are discussing this issue. The proposal is to use the automatic Windows startup repair to fix that issue.<\/p>\n<p><strong>Similar articles<br \/>\n<\/strong><a href=\"https:\/\/borncity.com\/win\/win10-wiki\/\" target=\"_blank\" rel=\"noopener noreferrer\">Win10 Wiki<\/a><br \/>\n<a href=\"https:\/\/web.archive.org\/web\/20210512202711\/https:\/\/borncity.com\/win\/2016\/07\/06\/windows10-open-command-prompt-window-as-administrator\/\">Windows 10: Open command prompt window as administrator<br \/>\n<\/a><a href=\"https:\/\/borncity.com\/win\/2015\/08\/30\/trick-how-to-upgrade-to-windows-10-with-a-clean-install\/\">Trick: How to upgrade to Windows 10 using a clean install<br \/>\n<\/a><a href=\"https:\/\/borncity.com\/win\/2016\/06\/25\/microsoft-windows-and-office-iso-download-tool\/\">Microsoft Windows and Office ISO download tool<br \/>\n<\/a><a href=\"https:\/\/borncity.com\/win\/2015\/11\/25\/windows-10-version-1511-via-media-creation-tool-is-back\/\">Windows 10 Version 1511 via Media Creation Tool \"is back\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]Some users are facing a bad surprise during re-installing Windows 8.1 or Windows 10 on a machine. Setup fails and reports a \"locked hard disk\". Here are a few hints, how to solve this issue.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,2],"tags":[619,47,194],"class_list":["post-1995","post","type-post","status-publish","format-standard","hentry","category-issue","category-windows","tag-hard-disk-lock","tag-issue","tag-windows"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/1995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=1995"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/1995\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=1995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=1995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=1995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}