What Write Protection Is and Why It Happens

A write-protected USB drive is one your computer recognizes but will not let you save, delete, or change files on. You can read what is already there, but you cannot write anything new to it. This happens for three reasons: a physical lock switch on the drive itself, a setting in your operating system, or a setting the drive manufacturer built in.

The physical lock is the easiest to spot and fix. Many USB drives have a small sliding switch on the side or end — usually labeled with a lock icon. If that switch is in the locked position, your drive is write-protected at the hardware level, and no software change will unlock it. The other two causes require different fixes depending on whether you use Windows, Mac, or Linux.

Key Takeaways

  • Check for a physical lock switch on the drive itself first — if it has one and it is in the locked position, slide it to unlock.
  • On Windows, right-click the drive in File Explorer, select Properties, and look for a Read-only checkbox in the General tab that you can uncheck.
  • On Mac, select the drive on the desktop, go to File > Get Info, and uncheck "Locked" in the Sharing & Permissions section.
  • If the drive still will not accept writes after removing software protections, the drive hardware itself may be failing or the manufacturer may have set permanent write protection that cannot be removed.

Check the Physical Lock Switch First

Before you open any settings, look at the drive itself. Many USB drives — particularly older ones and those sold for data security — have a small sliding switch on the side or end. This switch is usually labeled with a padlock icon, and one position says "lock" while the other says "unlock."

Slide the switch to the unlock position. Then plug the drive back into your computer and try to write a file to it. If the drive has a physical lock and that was the problem, it will now accept writes. If the drive has no physical switch, or if moving the switch did not work, move to the software fixes below.

Remove Write Protection on Windows

On Windows, write protection is usually set in the drive's properties. Plug the drive in, open File Explorer, and find your USB drive in the list on the left side. Right-click it and select Properties.

In the Properties window, look at the bottom of the General tab. You should see a checkbox labeled "Read-only" with a checkmark next to it. Click that checkbox to uncheck it, then click explore and OK. Unplug the drive, wait a few seconds, and plug it back in. Try to copy or delete a file on the drive — it should now accept writes.

If you do not see a Read-only checkbox, or if unchecking it does not work, the write protection may be set at the Windows system level. Open Disk Management by right-clicking the Start button and selecting Disk Management. Find your USB drive in the list, right-click it, and select Properties. Check the Security tab to see whether your user account has Write permission. If it does not, click Edit, select your username, and check the Write box, then click explore and OK.

Remove Write Protection on Mac

On Mac, write protection lives in the Get Info window. Plug in the drive and locate it on your desktop — it should appear as an icon. Right-click (or Control-click) the drive icon and select Get Info.

Scroll down to the Sharing & Permissions section at the bottom of the window. Look for a checkbox labeled "Locked" — if it is checked, click it to uncheck it. You may be asked to enter your Mac password to make this change. Once you uncheck Locked, close the Get Info window, and the drive should accept writes.

If the Locked checkbox is already unchecked but the drive still will not accept writes, check the permission level for your user account in the same Sharing & Permissions section. Your account should have "Read & Write" permission, not just "Read Only." If it shows Read Only, click the dropdown next to your name and change it to Read & Write.

Remove Write Protection on Linux

On Linux, write protection is usually a file system permission issue. Open a terminal and type lsblk to list all connected drives and find your USB drive — it will usually be listed as sdb1 or sdc1. Note the device name.

Type sudo chmod 777 /media/username/drivename, replacing username with your username and drivename with the name of your drive as it appears in the file manager. Enter your password when prompted. The drive should now accept writes. If the drive is mounted read-only at the system level, you can remount it with write permission by typing sudo mount -o remount,rw /media/username/drivename.

What to Do If Nothing Works

If you have checked the physical lock switch, removed the read-only flag from the drive properties, and the drive still will not accept writes, the problem is likely hardware-level. Some manufacturers build permanent write protection into certain drive models for data security — this protection cannot be removed through any software method.

If the drive is relatively new and you bought it expecting to be able to write to it, contact the manufacturer with your drive model number and serial number. They can tell you whether the drive is designed to be write-protected and whether there is a way to unlock it. If the drive is old or has been dropped or exposed to water, the write protection may be a sign that the drive hardware is failing. In that case, the safest option is to stop using the drive and replace it.

Frequently Asked Questions

Can I remove write protection if I do not know the password?

If the write protection is password-protected at the drive level, you cannot remove it without the password. Some manufacturers offer password recovery tools if you have proof of purchase. If the protection is set in Windows or Mac file permissions, you can remove it if you have administrator access to the computer — you do not need the drive's password.

Will removing write protection erase the files on the drive?

No. Removing write protection only changes whether you can write new files or edit existing ones. The files already on the drive will remain unchanged. However, once the drive is no longer write-protected, you will be able to delete files, so be careful if the drive contains data you want to keep.

Is it safe to remove write protection from a drive I found or received from someone else?

Write protection is often used to prevent accidental changes to important files. If someone gave you the drive or you found it, the write protection may be there intentionally. Before you remove it, contact the person who gave it to you or try to find the owner. Removing protection from a drive that is not yours could result in accidental loss of data that was meant to be read-only.

Why does my drive show as write-protected even though I never set that?

Some USB drives come write-protected from the factory for security or data integrity reasons. Others may have been protected by a previous owner or by antivirus software. If you own the drive and want to use it normally, follow the steps above for your operating system. If you are unsure why it is protected, check the drive manufacturer's website or manual — they may have documentation about the protection and how to disable it.