USB write protection stops you from saving, deleting, or modifying files on the drive

A USB drive with write protection enabled will let you read files but block any changes. When you try to save a file to the drive, copy something onto it, or delete anything, you'll see an error message saying the disk is write-protected or read-only. The protection can come from a physical switch on the drive itself, settings in your operating system, or the drive's firmware.

Removing write protection usually takes one of three approaches: flipping a physical switch if your drive has one, changing settings in Windows or macOS, or using manufacturer software to reset the drive. Which method works depends on why the drive is protected in the first place.

Key Takeaways

  • Many USB drives have a small physical switch on the side that toggles write protection on and off — check for this first before trying software fixes.
  • Windows shows write-protected drives in Disk Management, where you can right-click the drive and remove the read-only attribute.
  • macOS requires Terminal commands to change permissions on a write-protected drive, or you can erase and reformat the drive entirely.
  • Some drives use manufacturer-specific software or firmware tools that you download from the maker's website to unlock protection.
  • If none of these methods work, the drive's firmware may be locked, and you may need to contact the manufacturer or replace the drive.

Check for a physical write-protection switch

Many USB drives, especially older models and some Kingston, SanDisk, and Verbatim drives, have a small sliding switch on the side or end of the drive. This switch physically disconnects the write circuits when moved to the "lock" position. Look along the edges of your drive for a tiny switch or toggle — it's often labeled with a lock icon or the words "lock" and "unlock."

If you find a switch, slide it toward the "unlock" position. The switch position may be marked on the drive itself, or you may need to try both directions. Once you've moved it, plug the drive back into your computer and test whether you can now save files to it. If the switch is stuck or won't move, do not force it — you may damage the drive.

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

Remove write protection in Windows using Disk Management

Windows Disk Management is a built-in tool that shows you all connected storage devices and lets you change their properties. To open it, right-click the Start button, select "Disk Management," or press Windows key + X and choose "Disk Management" from the menu.

In the Disk Management window, find your USB drive in the list of drives shown at the bottom. Right-click on the drive's partition and select "Properties." Go to the "General" tab, and at the bottom of the window, look for a checkbox labeled "Read-only." If it is checked, uncheck it, click "Apply," then "OK." Restart your computer and test the drive again.

If the read-only checkbox is grayed out and you cannot uncheck it, the protection is likely set at the firmware level, and you'll need to use the manufacturer's software or try the command-line method described below.

Use the command line to unlock a drive in Windows

If Disk Management does not show a read-only option, you can try using the command-line tool diskpart to remove the protection. Open Command Prompt as an administrator by right-clicking the Command Prompt app and selecting "Run as administrator."

Type the following commands in order, pressing Enter after each one:

  1. diskpart — starts the disk partition tool
  2. list disk — shows all connected drives; note the number of your USB drive
  3. select disk X — replace X with your drive's number
  4. attributes disk clear readonly — removes the read-only flag

After the last command completes, type exit to close diskpart. Unplug and reconnect your USB drive, then test whether you can now write to it. Be careful to select the correct disk number — selecting the wrong one could affect your main hard drive.

Remove write protection on macOS

On a Mac, write-protected USB drives often need to be reformatted or have their permissions changed through Terminal. First, try the simpler approach: open Finder, locate your USB drive, right-click it, and select "Get Info." Look for a "Locked" checkbox at the bottom of the window. If it is checked, uncheck it and close the window.

If that does not work, you can erase and reformat the drive, which will remove all protection but also delete everything on it. Open Disk Utility (in Applications > Utilities), select your USB drive from the left sidebar, click "Erase," choose a format (Mac OS Extended or APFS for Mac use, or exFAT for cross-platform use), give it a name, and click "Erase." This will remove the write protection and prepare the drive for use again.

For a command-line approach that does not erase the drive, open Terminal and use diskutil secureErase freespace 0 /Volumes/DriveName, replacing DriveName with your drive's actual name. This securely clears free space without erasing files, though it may take time on larger drives.

Use manufacturer software to unlock the drive

Some USB drive makers, including Kingston, SanDisk, and Transcend, provide their own software tools to manage write protection and other drive settings. Visit the manufacturer's support website, search for your specific drive model, and download the management or recovery software they offer.

Kingston drives often use Kingston Format Utility, SanDisk drives may use SanDisk RescuePRO or SanDisk SecureAccess, and Transcend drives may use Transcend Elite. Install the software on your computer, plug in the USB drive, open the manufacturer's tool, and look for an option to remove protection, unlock the drive, or reset it to factory settings. The exact steps vary by manufacturer, so follow the instructions provided with the software.

What to do if nothing works

If the physical switch is not present, Disk Management shows no read-only option, command-line tools do not remove the protection, and manufacturer software is unavailable or does not work, the drive's firmware may be permanently locked. This sometimes happens if the drive was used in a corporate or educational setting with security policies that cannot be reversed without the original administrator password.

In this case, you have two options: contact the drive's manufacturer with proof of ownership to ask whether they can unlock it, or replace the drive. Most consumer USB drives are inexpensive enough that replacement is the faster choice. If the drive contains important data you cannot access, a data recovery service may be able to help, though this is typically more expensive than buying a new drive.

Frequently Asked Questions

Why did my USB drive suddenly become write-protected?

Write protection can be triggered by a physical switch being moved accidentally, Windows or macOS marking the drive as read-only after a file system error, or the drive reaching the end of its write cycle if it is a very old or heavily used drive. Malware or security software can also set protection as a precaution. Try the physical switch first, then the software methods above.

Will removing write protection erase my files?

Using Disk Management or command-line tools to remove write protection will not erase your files. Reformatting the drive in Disk Utility on macOS or using the manufacturer's erase function will erase everything, so only do that if you have backed up the files or do not need them.

Can I remove write protection from a drive that belongs to someone else?

Technically yes, but you should not. If the drive is protected by its owner or organization, removing the protection without permission may violate their security policies or local laws. If you need access to a protected drive, ask the owner or administrator to unlock it for you.

Is write protection the same as encryption?

No. Write protection prevents you from making changes to files; encryption scrambles the files so they cannot be read without a password. A drive can be both encrypted and write-protected, or have either one alone. Removing write protection does not decrypt an encrypted drive.