If you're facing the 'The drive where Windows is installed is locked' error, it means the system cannot access your drive due to security or configuration issues. This troubleshooting guide will provide several solutions to unlock the drive and restore your access.
If you've encountered the error message "The drive where Windows is installed is locked. Unlock the drive and try again", you are not alone. This error often appears when users attempt to access their system, perform a System Restore, or run Windows recovery. It typically occurs when the system cannot access or unlock the drive where the operating system is installed, often due to file system corruption, security settings, or other configuration issues.
It can prevent you from booting into Windows, accessing important files, or performing system repairs. In some cases, it might even block attempts to recover or reset the system. The drive might be locked due to security measures, corrupted system files, or improper shutdowns that resulted in the disk being in a read-only state.
When you encounter the "drive where Windows is installed is locked" error, it's crucial to understand the root causes to effectively address the issue. This error typically arises due to several reasons related to file system corruption, security measures, or misconfigured settings. Here are the most common causes:
📂 File System Corruption:
Sudden system shutdowns, improper restarts, or malware can cause corruption in the system files or partitions. This corruption can prevent the system from properly accessing the drive, locking it in a read-only state.
🔒 BitLocker Encryption:
If your system is using BitLocker encryption for data protection, and the encryption key is missing or unavailable, the drive might be locked. This typically happens after a system upgrade or when the drive is accessed from another device without proper authorization.
🛡️ Security Settings or Permissions:
Sometimes, changes to security settings or user permissions can result in the drive being locked. This can occur after a Windows update, or when an administrator restricts access to specific files or drives.
🔇 Improper System Shutdowns:
If Windows crashes or shuts down improperly, it may leave the drive in an inconsistent state. As a result, the system may flag the drive as locked to prevent further damage or data loss.
💾 Disk Errors or Bad Sectors:
Physical disk issues such as bad sectors or disk damage can lead to the system being unable to access certain parts of the drive. This can trigger the locked drive error message.
Now, you can proceed to fix "The drive where Windows is installed is locked" error. Here are several methods to unlock the drive and regain access to your system. These solutions will start with simpler methods and progressively move to more in-depth solutions. Let's explore them one by one.
The CHKDSK (Check Disk) command is a simple yet effective way to scan and repair disk errors that could be preventing Windows from accessing your drive. This process checks for file system corruption and repairs it, potentially unlocking the drive.
Step 1. Boot your computer using Windows installation media (USB or DVD).
Step 2. Choose your language preferences and click "Next."
Step 3. Select "Repair your computer" instead of installing Windows.
Step 4. Go to "Troubleshoot" > "Advanced options" > "Command Prompt."
Step 5. In the Command Prompt window, type "chkdsk C: /f /r /x" and press "Enter" (replace C: with your actual system drive letter).
Step 6. Wait for the process to finish and then restart your computer to check if the error is still here. (You may want to check: CHKDSK cannot lock current drive.)
The System File Checker (SFC) command scans and repairs corrupted system files that could be causing the "drive is where Windows is installed is locked" issue. Running it can fix a wide range of problems, including locked drives due to file system corruption.
Step 1. Open Command Prompt from Windows installation media as described above.
Step 2. Type "sfc /scannow" and press "Enter".
Step 3. Wait for the process to complete. If any issues are found, SFC will attempt to fix them.
Step 4. Once the scan finishes, restart your computer to check if the drive is unlocked.
If your boot configuration is corrupted, rebuilding the Boot Configuration Data (BCD) might fix the locked drive error. The BCD is crucial for loading the operating system, and fixing it may restore access to your drive.
Step 1. Boot into Command Prompt using Windows installation media.
Step 2. Type the following command and press "Enter" after each one:
Step 3. If prompted, select "Yes" to add the installation to the boot list.
Step 4. Restart your computer to check if the issue is resolved.
If you are using the MBR partition scheme and Legacy BIOS boot mode, "The drive where Windows is installed is locked" error may occur due to confused boot paths. Manually marking the system partition as active can help Windows locate the correct boot path and remove the error.
Step 1. Open Command Prompt from Windows installation media.
Step 2. Type the following commands and press "Enter" after each one.
Restart your computer and check if you can boot into Windows normally.
If your drive is locked due to boot issues, using the Startup Repair tool can help. It automatically detects and fixes common problems that prevent Windows from starting up correctly. Here is how to do:
Step 1. Boot your computer from Windows installation media.
Step 2. Select "Repair your computer" > "Troubleshoot" > "Advanced options."
Step 3. Click on "Startup Repair" and let Windows diagnose and repair the boot issues.
Step 4. After the repair is complete, restart your computer.
If the locked drive issue occurred after a recent change like Windows update and you have previously created a restore point, you may be able to revert your PC to a previous working state using System Restore. This method will not affect your personal data, but it will remove all programs installed after the restore point.
Step 1. Boot into Windows Recovery Environment.
Step 2. Select "Troubleshoot" > "Advanced options" > "System Restore."
Step 3. Choose a restore point before the error occurred and click "Next" to continue the process.
Step 4. Confirm the restore point and click "Finish" to start the process. You can check the affected programs by clicking on the "Scan for affected programs".
Step 5. Restart your computer once the restoration is complete.
If none of the above solutions work to fix the "Drive where Windows is installed is locked" error, resetting your computer is the last resort. This will reinstall Windows and remove all system errors that may be causing the locked drive issue. Follow these steps:
Step 1. Boot from Windows installation media and select "Repair your computer."
Step 2. Go to "Troubleshoot" > "Reset this PC".
Step 3. Choose "Keep my files" to reserve all of your personal files in user profile or "Remove everything" to delete all applications and files.
Step 4. Select "Cloud download" or "Local reinstall" based on your needs.
Step 5. Confirm the reset settings and click "Reset" to start the process.
Step 6. After the reset, your system should be restored, and the drive will no longer be locked.
With the methods above, you should be able to fix this error. However, some solutions may lead to data loss, such as choosing to remove everything during a system reset. In this case, check for missing files after resolving the issue. If any data is lost, take timely measures to recover it.
The professional data recovery tools can help recover files from a locked or inaccessible drive. One such tool is MyRecover, a highly efficient and reliable software designed to recover lost or deleted files from various storage devices, including SD cards, USB drives, HDDs, SSDs.
Step 1. Download and install MyRecover on your computer from Microsoft Store or its official website.
Step 2. Launch the programs and select the drive with lost files to scan, then click "Scan" to search for recoverable files.
Step 3. Browse the results and locate the files you want to recover from the list using the "Filter" function. Select the target files and click "Recover".
Step 4. Choose a safe location (different from the original drive) to save the recovered files.
Once the process is done, you'll get a message "Files have been recovered successfully". Then, you can access and verify the recovered files by clicking on the "Browse" button.
"The Drive Where Windows is Installed is Locked" error is not unsolvable. With the methods mentioned above, you can easily fix it without worrying about data loss. If you're concerned about lost files, MyRecover offers an easy-to-use solution. The tool's intuitive interface allows even non-technical users to recover their files swiftly.
Upgrading to the Professional Edition of MyRecover, you can enjoy unlimited data recovery quality and file content preview before restoration. It even allows you to recover data from unbootable computer.
Q1: What does it mean when a hard drive is locked?
A locked hard drive typically means the system cannot access the drive due to security measures, file system corruption, or configuration issues. This can be caused by encryption (e.g., BitLocker), improper shutdowns, or disk errors, preventing you from reading or writing to the drive.
Q2: How to fix a locked drive in Windows 10?
To fix a locked drive in Windows 10, you can try the following methods: run the CHKDSK command to check and repair file system errors, use BitLocker Recovery if encryption is enabled, repair system files with SFC or DISM commands, rebuild the Boot Configuration Data (BCD) if it’s a boot drive issue.
Q3: How to unlock a locked Windows PC?
To unlock a locked Windows PC: if using a password, reset it via another administrator account or use Windows recovery options; if BitLocker is enabled, unlock using the recovery key. For other security issues, boot into Safe Mode and troubleshoot.
Q4: How do I unlock my PC when I forgot my password in Windows?
To unlock your PC when you've forgotten your password, you can use the Password Reset Disk if previously created, sign in with another administrator account to change the password, use Windows Recovery options to reset or restore the password, or consider using third-party password recovery tools.
Q5: How do I get a drive out of read-only mode?
To remove a drive from read-only mode with following steps: open Command Prompt as administrator, type diskpart, then list disk and select the disk. Type attributes disk clear readonly to remove the read-only attribute. Restart the PC and check if the issue is resolved.
Q6: How to unlock the drive where Windows is installed?
If encrypted, enter the BitLocker recovery key to unlock it. If not, run CHKDSK to repair file system errors, use System Restore or boot into Safe Mode to fix any configuration or boot-related issues. If it's a physical issue, you may need to perform disk diagnostics or replace the drive.
Q7: How to repair locked Windows boot drive without losing data?
To repair a locked Windows boot drive without losing data, you can use Startup Repair from the Windows installation media, run CHKDSK or SFC to fix file system or system file corruption, rebuild the BCD using Command Prompt. If these methods don’t work, use data recovery software like MyRecover to recover important files before attempting a system reset or reinstall.