sodcalculator

10 Tech How-To

Fix Hard Disk Read Only in Windows

Guide 10-33053 · Updated · Step by step

If your hard disk suddenly shows as read-only in Windows, it means Windows has blocked writes to the drive, and you can fix it by clearing the read-only attribute, checking disk permissions, or updating driver settings. Below are the proven steps to restore full read/write access, plus explanations of why this happens and how to prevent it.

Why a Hard Disk Becomes Read-Only

A read-only drive is a protective state that prevents any new data from being written, modified, or deleted. Windows applies this state for several reasons:

  • File system errors – The drive may have corrupted sectors or a dirty bit set, prompting Windows to mount it as read-only to avoid further damage.
  • Disk attribute set – The read-only attribute can be manually or automatically set on the volume.
  • Permission issues – Your user account may lack write permissions on the drive, especially on external drives or drives formatted with NTFS permissions.
  • Driver or hardware issues – An outdated or faulty disk driver, or a failing USB connection, can cause Windows to mount the drive as read-only.
  • BitLocker or encryption – If the drive is encrypted and the key is not available, Windows may mount it read-only.
  • Third-party software – Some disk management tools or security software can set a drive to read-only as a safety measure.

Understanding the root cause is key to choosing the right fix. The steps below cover the most common scenarios, from the simplest to the more advanced.

How to Clear the Read-Only Attribute

The quickest fix is to use the diskpart command-line tool to clear the read-only attribute. This works for both internal and external drives.

  1. Press Windows + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Type diskpart and press Enter.
  3. Type list disk and press Enter to see all disks. Note the disk number of the read-only drive (e.g., Disk 1).
  4. Type select disk X (replace X with the disk number) and press Enter.
  5. Type attributes disk clear readonly and press Enter.
  6. If successful, you’ll see a message that the attributes were cleared. Type exit to close diskpart.

If the command fails with an “access denied” error, the drive may be physically locked (some SD cards and USB drives have a write-protect switch) or the disk is failing. Check for a small switch on the side of the drive and try again.

Check and Repair File System Errors

If the attribute is already clear but the drive is still read-only, the file system may be corrupted. Windows marks such volumes as read-only to prevent further damage. Run a disk check to repair errors:

  1. Open File Explorer, right-click the drive, and select Properties.
  2. Go to the Tools tab and click Check under Error checking.
  3. If Windows says no errors are found, you can still run a deeper scan by opening an elevated Command Prompt and typing chkdsk X: /f /r (replace X with the drive letter). You may need to dismount the volume or restart.

Alternatively, use the fsutil dirty query X: command to check if the volume has a dirty bit. If it says “Dirty”, run chkdsk X: /f to clean it.

Adjust Drive Permissions in Windows

Sometimes the issue is not the disk itself but the permissions applied to the drive. This is common on NTFS drives that were connected to another system or after a Windows reinstallation.

  1. Right-click the drive in File Explorer and select Properties.
  2. Go to the Security tab and click Advanced.
  3. Next to “Owner”, click Change.
  4. Type your username or “Everyone” and click Check Names, then OK.
  5. Check the box “Replace owner on subcontainers and objects” and click Apply.
  6. Back in the Advanced Security Settings, ensure your user account has Full control in the permission list. If not, click Add, select your account, and grant Full control.

For external drives formatted as exFAT or FAT32, permission issues are less common, but you can still try the attribute clearing method.

Update or Reinstall Disk Drivers

Outdated or corrupted storage drivers can cause a drive to mount read-only. To update:

  1. Press Windows + X and select Device Manager.
  2. Expand Disk drives, right-click your drive, and select Update driver.
  3. Choose “Search automatically for drivers”. If Windows finds none, right-click again and select Uninstall device, then restart your PC. Windows will reinstall the driver automatically.

Also check the Policies tab in the drive’s Properties (under the Hardware tab) – for external drives, ensure “Better performance” is selected instead of “Quick removal”, as the latter may disable write caching and cause issues.

Common Problems and Misconceptions

  • “My drive is not physically locked, but it still shows read-only.” – This is usually a file system or driver issue. Try the diskpart and chkdsk methods first.
  • “I cleared the attribute, but it comes back after reboot.” – This indicates a deeper issue, such as a failing drive or a persistent dirty bit. Run chkdsk and check the drive’s health with tools like CrystalDiskInfo (not affiliated).
  • “The drive is read-only on Windows, but works fine on Mac.” – This is often due to NTFS permissions or driver differences. Ensure the drive is properly ejected from the Mac and check permissions on Windows.
  • “I can’t format the drive because it’s read-only.” – Try using Disk Management (diskmgmt.msc) and right-click the volume – if “Format” is greyed out, you must clear the attribute first via diskpart.

When to Consider Data Recovery

If the drive remains read-only after all software fixes, it may be failing physically. Do not attempt to force writes, as this can cause more data loss. Instead:

  • Back up any accessible data immediately.
  • Use a USB adapter to connect the drive to another computer and see if it becomes writable there.
  • If the drive is still under warranty, contact the manufacturer for a replacement.
  • For critical data, consult a professional data recovery service – do not attempt to open the drive yourself.

Frequently Asked Questions

Why is my external hard drive suddenly read-only?

Common causes include a dirty bit set due to improper ejection, file system corruption, or a physical write-protect switch. Start by checking the switch, then use diskpart to clear the attribute, and run chkdsk if needed.

Can I fix a read-only SSD the same way?

Yes, the same diskpart and chkdsk methods apply to SSDs. However, if an SSD becomes read-only due to firmware issues or reaching its write limit, it may be permanent. Check the manufacturer’s tools for health status.

Will clearing the read-only attribute delete my files?

No, clearing the attribute only changes the drive’s write status. Your files remain untouched. However, running chkdsk with the /f flag may repair file system errors, which is safe but could move corrupted files to a recovery folder.

What if I get “Access Denied” when using diskpart?

Make sure you are running Command Prompt or Terminal as Administrator. If you still get the error, the drive may have a hardware write-protect switch, or the disk itself is failing. Check the switch and try a different USB port.

Is there a way to prevent this from happening again?

Always eject external drives safely, avoid unplugging during write operations, and regularly run chkdsk on drives that have been used heavily. Keeping your drivers updated also helps.

Does BitLocker cause read-only drives?

Yes, if a BitLocker-encrypted drive is locked (no password or recovery key), Windows mounts it as read-only. Unlock the drive from File Explorer or Control Panel to gain write access.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →