Why your USB drive is write protected and how to fix it

A write-protected USB drive will not let you delete, edit, or add files — Windows or Mac will show an error saying the disk is read-only. This happens for three reasons: a physical lock switch on the drive itself, a setting in your operating system, or corrupted firmware on the drive. The fix depends on which one is causing the problem, and you can test each one in order.

Start by checking the drive itself. Many USB drives have a small sliding switch near the connector — if it is in the locked position, slide it to unlock. This solves the problem when ready for about half of all write-protection cases. If your drive has no switch, or moving it did not work, move to the operating system settings.

Key Takeaways

  • Check for a physical lock switch on the USB drive first — a small slider near the connector that controls write protection directly on the hardware.
  • On Windows, right-click the drive in File Explorer, select Properties, and look for a Read-only checkbox under the General tab that you can uncheck.
  • On Mac, select the drive on the desktop, go to File > Get Info, and uncheck "Locked" under the Sharing & Permissions section.
  • If the drive still will not accept writes after checking both the switch and the operating system settings, the drive's firmware may be corrupted and you may need to use manufacturer recovery tools or replace the drive.

Removing write protection on Windows

Open File Explorer and locate your USB drive in the left sidebar. Right-click on the drive name and select Properties from the menu. In the General tab, look for a checkbox labeled "Read-only" — if it is checked, click it to uncheck it, then click explore and OK.

If you do not see a Read-only checkbox in Properties, the protection is set at the registry level. Press Windows key + R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If the StorageDevicePolicies folder does not exist, you will need to create it: right-click on Control, select New > Key, and name it StorageDevicePolicies.

Inside StorageDevicePolicies, look for a value called WriteProtect. If it exists and is set to 1, double-click it and change the value to 0. If WriteProtect does not exist, right-click in the empty space, select New > DWORD (32-bit) Value, name it WriteProtect, and set the value to 0. Restart your computer for the change to take effect.

Removing write protection on Mac

Plug in your USB drive and it will appear on the desktop. Click once to select it, then go to File in the menu bar and select Get Info. A window will open showing the drive's details. Scroll down to the Sharing & Permissions section at the bottom.

Look for a checkbox labeled "Locked" — if it is checked, click the lock icon in the bottom right corner of the window to unlock it, then check the Locked checkbox to uncheck it. Close the Get Info window. Your drive should now accept writes. If the lock icon does not respond to clicking, you may need to enter your Mac password when prompted.

Testing the drive after removing protection

After making changes, test whether the drive is writable by trying to create a new file on it. Right-click in an empty area of the drive (on Windows) or double-click to open it (on Mac), then create a new text file or folder. If the drive accepts the action without an error, the write protection has been removed.

If you still see a read-only error after checking the physical switch, the Properties settings on Windows, and the Get Info settings on Mac, the problem is likely in the drive's firmware. At this point, contact the drive manufacturer — most provide recovery or formatting tools on their support website that can reset the drive to factory settings. Be aware that using these tools will erase all data on the drive.

When write protection is intentional

Some USB drives come with write protection built in as a security feature — they are designed to hold files you want to read but never change. If you own the drive and want to use it normally, the steps above will remove that protection. If someone else owns the drive and set the protection, removing it may not be possible without the owner's password or recovery key, depending on the drive model.

If you are trying to remove protection from a drive that belongs to your workplace, school, or another organization, ask the IT department or administrator first. Many organizations lock drives intentionally to prevent accidental deletion or malware infection.

Preventing write protection problems in the future

Once your drive is working, avoid the physical lock switch unless you specifically want to protect the drive from changes. Keep the switch in the unlocked position during normal use. If you use the drive on multiple computers, check the read-only setting on each one — sometimes a drive will be locked on one system but not another.

Eject your drive properly before unplugging it: on Windows, right-click the drive and select Eject; on Mac, drag the drive to the Trash or press Command+E. Improper ejection can sometimes trigger write-protection as a safety measure to prevent data corruption.

Frequently Asked Questions

Can I remove write protection if I forgot the password?

If the drive has password protection set by software, you will need the password to remove it — there is no bypass. If the protection is from the physical switch or the operating system settings, the steps above will work regardless of password. Contact the drive manufacturer if you cannot remember a password and the drive is yours.

Will removing write protection erase my files?

No. Removing write protection does not touch your data. It only changes whether the drive will accept new writes, edits, or deletions. Your existing files remain untouched unless you delete them yourself after the protection is removed.

Why does my drive show as read-only on one computer but not another?

Different computers can have different settings for the same drive. Check the read-only setting in Properties or Get Info on each computer separately. The physical lock switch, if present, will affect all computers equally.

What if the physical switch is stuck and will not move?

Do not force it — you may break the switch or damage the drive. Try gently working it back and forth with a small amount of lubricant like WD-40 on a cloth. If it remains stuck, the drive may need replacement, or you can try the operating system settings as a workaround.

Is it safe to use manufacturer recovery tools to reset the drive?

Yes, manufacturer tools are safe, but they will erase all data on the drive. Back up any files you want to keep before running a recovery tool. read the tool only from the official manufacturer website, not from third-party sources.