How do I remove write protection and try again?

What is write protection?

Write protection is a feature that prevents files or entire storage devices from being modified, overwritten, or deleted. It acts as a safeguard against accidental or unauthorized changes to important data.

There are a few common scenarios where write protection gets enabled:

  • Removable storage devices like SD cards or USB flash drives may have a physical slide switch or tab that can be toggled to enable write protection.
  • Optical discs like CDs, DVDs, and Blu-rays are inherently write-protected. Special software is required to burn data onto them.
  • Hard drives and storage devices can be write-protected through software controls like file permissions and attributes.
  • Files and folders can be marked read-only to prevent changes.

Write protection is useful for protecting archived data, distributing media content, avoiding virus infections on public computers, and preventing accidental file deletion or formatting. However, sometimes you may need to remove write protection to modify or update data on a storage device.

How to remove write protection on physical media

For storage media with a physical write-protect switch like SD cards and USB drives, simply sliding the switch back to the original position disables write protection. This exposes the storage for full read/write capability again.

For example, on an SD card, a locked switch position enables write protection while an unlocked position disables it. Sliding it to the unlocked position lets you freely modify, add or delete files again.

Optical discs like CD-R, DVD-R, and BD-R are a special case. These have an inbuilt write-protect mechanism by design to prevent any kind of modification once data is written. Trying to force the disc writable again like using adhesive tapes or markers to block the protection holes will render the disc unusable rather than enabling writing.

In this case, the only option is to burn data onto a brand new rewriteable blank media if you need to modify content. Rewriteable discs like CD-RW, DVD-RW, BD-RE are reusable this way.

Removing software write protection

Unlike physical media, disk drives and storage devices today don’t have a hardware switch to toggle write protection. Instead, it’s enforced through software control.

Here are some common software write protection scenarios and how to remove them:

Disabling write protection on hard drives

Hard drives may be shipped with manufacturer enabled write protection for transit security. Trying to modify files results in “access denied” or “write protected” errors.

To remove drive write protection:

  1. Open Command Prompt as Administrator
  2. Run command diskpart to launch DiskPart utility
  3. Type list disk to list all connected drives
  4. Select the write protected drive with select disk X (replace X with the disk number)
  5. Disable write protection using attributes disk clear readonly
  6. Confirm the attribute change by typing attributes volume and checking if Read-only is No

Now the drive should allow read/write operations as normal.

Removing write protection from folders/files

Files and folders can be set to read-only to prevent modifying or deleting content. This acts as lightweight write protection without encrypting data.

To enable writing again:

  1. Right click the file/folder and select Properties
  2. Uncheck Read-only checkbox under General tab
  3. Click Apply and OK to confirm change

This removes the file/folder’s read-only status allowing edits to be made.

Disabling write protection on USB drives

USB drives may also be shipped with read-only access to protect data in transit. A quick format does not work on such devices.

To make the drive writable again:

  1. Open Command Prompt as Administrator
  2. Type diskpart
  3. Run list disk and note the drive number for the USB drive
  4. Select USB drive with select disk X (replace X)
  5. Type attributes disk clear readonly
  6. Now format the drive normally through File Explorer

This completely resets the USB drive and enables full read/write capability again.

Removing write protection from registry

The Windows registry contains configuration settings and data for installed software. It may be protected against changes through registry permissions.

Attempting to modify protected registry keys results in “Access denied” errors even for the administrator account.

To allow editing registry keys:

  1. Launch Registry Editor using regedit.exe
  2. Navigate to the protected registry key
  3. Right click key and select Permissions
  4. Allow Full Control access to administrators or your user account

This grants registry write access to make changes possible. Remember to exercise caution when editing the registry to avoid instability or boot issues.

Conclusion

Write protection is enabled through physical switches, software controls and permissions. Removing the specific write protection depends on understanding what’s restricting access in each unique case.

With physical media, toggle hardware locks to expose full read/write access. For drives and storage, change software attributes and permissions. Edit file/folder attributes to allow writing to contents. And enable registry permissions to modify protected keys.

Exercising caution before removing write protection is important though. Make sure you want to make the changes before enabling writes. And have backups ready in case accidental deletion or corruption occurs after removing safeguards.

Summary

Key points

  • Write protection prevents accidental modification of important data
  • Physical media like SD cards have hardware switches to control write access
  • Drives, storage and files/folders are write protected through software
  • Remove physical write protection by toggling the hardware switch
  • Change drive attributes through DiskPart to allow writing
  • Uncheck read-only checkbox to remove file/folder write protection
  • Allow registry key permissions for administrators to edit registry

Frequently asked questions

Why is my USB drive write protected?

USB drives may be shipped with read-only access enabled by manufacturers to protect data. Use DiskPart attributes command or reformatting to remove this protection.

How do I remove write protection from SD card?

SD cards have a physical lock switch to control write access. Slide the switch to the unlocked position to disable write protection.

Can I remove read-only from folders without permissions?

You need owner or administrator permissions to remove a folder’s read-only status and enable writing again.

What happens if I delete write protected files?

Write protected files cannot be deleted or modified normally. The protection has to be removed first before making any changes.

Media Write Protection Method How to Remove Protection
SD cards Physical lock switch Slide switch to unlocked position
USB drives Read-only attribute Use DiskPart to clear readonly flag
Hard drives Readonly setting Diskpart attributes command to remove
Files/folders Read-only checkbox Uncheck read-only in Properties
Registry Keys Restricted permissions Allow Full Control to Administrators

Additional resources