USB write protection blocks you from saving, deleting, or changing files on the drive

Write protection on a USB drive is a safety feature that prevents any changes to the files stored on it. When a drive is write-protected, your computer will refuse to save new files to it, delete existing files, or modify what is already there. You can read and copy files off the drive, but nothing goes back on.

The protection can come from a physical switch on the drive itself, from settings in Windows or macOS, or from the drive's firmware. Which one is blocking you determines how you remove it. Most USB drives with a physical switch are the easiest to fix — you just flip it. Software-level protection takes a few more steps but is still straightforward.

Key Takeaways

  • Many USB drives have a small physical switch or slider on the side that locks and unlocks write protection — check for it first before trying software fixes.
  • If there is no physical switch, Windows shows write-protected drives in Disk Management, where you can change the status through the drive's properties.
  • macOS users can right-click the drive, select Get Info, and uncheck the "Locked" box to remove protection.
  • Some drives require you to use the manufacturer's own software or command-line tools to disable protection at the firmware level.
  • If none of these methods work, the drive's firmware may be corrupted or the protection may be permanent, and the drive may need to be replaced.

Check for a physical write-protection switch first

Before you try anything in software, look at the USB drive itself. Many USB drives, especially older ones and some SD card readers, have a small physical switch or slider on the side or bottom. This switch is usually labeled with a lock icon or the words "Lock" and "Unlock."

Slide or flip the switch to the unlocked position. The exact position varies by manufacturer — sometimes the switch moves toward the connector, sometimes away from it. If you are not sure which way is unlocked, try both positions and test the drive after each change. Once you move the switch, the write protection should be gone immediately, and you can save files to the drive again.

If your drive has no physical switch, move on to the software methods below.

Remove write protection in Windows using Disk Management

In Windows, write-protected drives often appear in Disk Management with a status that prevents writing. To access this tool, right-click the Start button, select "Disk Management," or search for "Disk Management" in the Windows search box.

Find your USB drive in the list of drives. Right-click it and select "Properties." Look for a "General" tab or "Security" tab. If you see a checkbox labeled "Read-only" or similar, uncheck it. Click "Apply" and then "OK." Windows will remove the write protection, and you should be able to save files to the drive immediately.

If the Properties window does not show a read-only option, the protection may be set at the firmware level, and you will need to use the manufacturer's tool instead.

Remove write protection on macOS

On a Mac, write-protected drives often show a lock icon next to their name in Finder. To remove the protection, click the drive to select it, then press Command+I to open the Get Info window.

In the Get Info window, look for a "Locked" checkbox near the bottom. If it is checked, click it to uncheck it. Close the window, and the drive is no longer write-protected. You can now save, delete, and modify files on the drive.

If you do not see a Locked checkbox, the protection is at the firmware level, and you will need to use the drive manufacturer's software or tools.

Use the manufacturer's software for firmware-level protection

Some USB drives, particularly those designed for security or data protection, use firmware-level write protection that cannot be removed through Windows or macOS settings alone. These drives come with their own software utility to manage protection.

Visit the manufacturer's website and search for your specific drive model. Download the software tool they provide — it is usually called something like "Drive Manager," "Security Tool," or "Utility." Install it on your computer, plug in the USB drive, and run the tool. Look for an option to disable write protection or unlock the drive. Follow the on-screen instructions, which vary by manufacturer.

If you cannot find the manufacturer's website or tool, try searching for the drive model number plus "write protection removal" or "unlock tool." Some manufacturers also provide command-line tools for advanced users.

Use command-line tools for advanced removal

If the graphical methods above do not work, you can try command-line tools. On Windows, open Command Prompt as Administrator and use the diskpart utility. Type list disk to see all connected drives, identify your USB drive by its size, then type select disk X (where X is your drive number). Type attributes disk clear readonly to remove the read-only flag.

On macOS, open Terminal and use the diskutil command. Type diskutil list to find your drive, then type diskutil secureErase freespace 0 /Volumes/DriveName to securely erase and reset the drive. This method erases all data on the drive, so use it only if you have backed up everything you need.

Command-line tools are more powerful but also more risky if you select the wrong drive. Double-check the drive number or name before executing any command.

What to do if nothing works

If the physical switch is in the unlocked position, Windows and macOS both show no read-only settings, and the manufacturer's tool does not work, the drive's firmware may be corrupted or the protection may be permanent. Some drives are designed with permanent write protection that cannot be disabled.

At this point, the drive is likely not usable for saving new files. You can still read files from it if it contains data you need, but you cannot write to it. If the drive is under warranty, contact the manufacturer for a replacement. If it is out of warranty and you no longer need the data on it, the drive should be recycled or disposed of according to your local electronics waste guidelines.

Frequently Asked Questions

Why is my USB drive write-protected in the first place?

Write protection is usually turned on intentionally to prevent accidental deletion or modification of important files. Some drives come with it enabled by default for security. Physical switches are often used on drives meant to store sensitive data or backups that should not be changed.

Will removing write protection erase my files?

No. Removing write protection does not erase anything. It simply allows you to make changes to the drive again. All your existing files remain intact unless you deliberately delete them after removing the protection.

Can I re-enable write protection after I disable it?

Yes. If your drive has a physical switch, you can flip it back to the locked position anytime. If you used Windows or macOS settings, you can check the read-only box again to re-enable protection. This is useful if you want to protect the drive again after you finish working with it.

Is it safe to use command-line tools to remove write protection?

Command-line tools are safe if you identify the correct drive before running any command. The risk is selecting the wrong drive by mistake, which could affect your computer's main hard drive or another drive you did not intend to change. Always double-check the drive number or name before pressing Enter.

What if my drive shows as write-protected but I did not set it that way?

This can happen if the drive was previously protected and the setting was not removed, or if the drive was formatted on a computer with different security settings. Start with the physical switch check, then try the Windows or macOS methods. If the drive is very old, the firmware may have defaulted to write-protected mode.