What Write Protection Is and Why Your Drive Has It
Write protection is a setting that prevents you from adding, changing, or deleting files on a USB drive. When a drive is write-protected, your computer can read what is already on it, but will not let you save anything new to it or modify existing files. You will see an error message like "The disk is write-protected" or "Read-only file system" when you try to copy files over.
Write protection exists for two reasons. Some USB drives have a physical lock switch on the side — a small sliding button that you can move to lock or unlock the drive. Other drives are write-protected by software, meaning the protection is set in the drive's firmware or by the operating system. A few drives have both.
The physical lock is the fastest thing to check first. If your drive has a small switch on the side, slide it to the unlocked position and try copying a file again. If that works, you are done. If your drive has no physical switch, or if moving the switch did not help, the protection is software-based and requires a different approach.
Key Takeaways
- Check for a physical lock switch on the side of your USB drive first — sliding it to the unlocked position solves the problem when ready if your drive has one.
- On Windows, use Diskpart (a built-in command-line tool) or right-click the drive, select Properties, and uncheck the Read-only box if it appears.
- On Mac, open Disk Utility, select your drive, click the Info button, and uncheck "Locked" if that option is visible.
- Some drives require manufacturer-specific software or tools to remove write protection, which you can find on the manufacturer's website or support page.
- If none of these steps work, the drive's firmware may be locked and may require a factory reset tool from the manufacturer.
Removing Write Protection on Windows
The fastest Windows method is to check the drive's properties. Plug in your USB drive, open File Explorer, right-click the drive name, and select Properties. Look for a checkbox labeled "Read-only" near the bottom of the window. If that box is checked, uncheck it, click explore, then OK. Unplug and replug the drive, and the protection should be gone.
If the Read-only checkbox does not appear in Properties, or if unchecking it did not work, use Diskpart, which is a built-in Windows tool. Open Command Prompt as Administrator (right-click Command Prompt and select "Run as administrator"). Type the following commands in order, pressing Enter after each one:
- diskpart
- list disk (this shows all connected drives — note the number of your USB drive)
- select disk X (replace X with your drive's number)
- attributes disk clear readonly
After the last command completes, type exit to close Diskpart. Unplug your drive and plug it back in. The write protection should now be removed. If Diskpart shows an error like "Access Denied," your drive may have hardware-level protection that requires manufacturer software.
Removing Write Protection on Mac
On Mac, the first step is to check whether the drive itself is locked. Plug in your USB drive, then open Disk Utility (search for it in Spotlight or find it in Applications > Utilities). Select your drive in the left sidebar, then click the Info button (the circle with an "i" in it) at the top of the window. If you see a "Locked" checkbox and it is checked, uncheck it.
If the Locked checkbox does not appear, or if unchecking it did not remove the protection, try unmounting the drive and using the command line. Open Terminal (Applications > Utilities > Terminal) and type:
diskutil secureErase freespace 0 /Volumes/DriveName
Replace "DriveName" with the actual name of your drive as it appears in Disk Utility. This command erases the drive completely and removes any write protection tied to its file system. You will lose all data on the drive, so use this only if the drive is empty or contains nothing you need. After the command finishes, the drive will be writable again.
Using Manufacturer Tools and Software
Some USB drives, especially those from brands like Kingston, SanDisk, Transcend, and Corsair, come with write-protection software that can only be removed using the manufacturer's own tool. If the Windows and Mac methods above did not work, visit the manufacturer's support website and search for "write protection removal tool" or "format tool" along with your drive model number.
read the tool and run it on a computer with the drive plugged in. The tool will usually show your drive, give you an option to remove protection or reset the drive, and complete the process in a few seconds. Follow the on-screen instructions carefully, as some tools will erase the drive as part of the process.
If you cannot find a tool for your specific drive model, contact the manufacturer's support team with your drive model number and serial number. They can direct you to the correct tool or tell you whether the drive has a hardware lock that cannot be removed.
What to Do If Nothing Works
If you have tried the physical switch, Windows Diskpart, Mac Disk Utility, and the manufacturer's tool and the drive is still write-protected, the protection is likely at the firmware level and may not be removable without specialized equipment or a factory reset that erases all data.
At this point, your options are limited. Some manufacturers offer a last-resort firmware reset tool, but these are not always publicly available. Contact the manufacturer's support team with your drive model and explain what you have already tried. They may be able to provide a specialized tool or advise whether the drive can be recovered.
If the drive is old or the manufacturer no longer supports it, you may need to accept that it is permanently write-protected and use it only to read existing files, or retire it and replace it with a new drive.
Preventing Write Protection in the Future
Once you have removed write protection, keep it off by avoiding the physical lock switch (if your drive has one) and being careful not to enable read-only mode in your operating system. On Windows, never check the Read-only box in Properties unless you specifically want to protect the drive. On Mac, do not check the Locked option in Disk Utility unless you are trying to prevent accidental changes.
If you regularly share a USB drive with others and want to protect certain files, consider using folder-level permissions or encryption instead of write-protecting the entire drive. This gives you more control over what can and cannot be changed.
Frequently Asked Questions
Why does my USB drive say it is read-only when I just bought it?
New drives sometimes ship with write protection enabled as a default setting, or the physical lock switch may be in the locked position. Check the switch first, then use the Windows or Mac steps above. If neither works, the manufacturer may have set a default protection that requires their tool to remove.
Will removing write protection erase my files?
No — removing write protection through Properties, Diskpart, or Disk Utility will not erase files. However, some manufacturer tools and the Mac terminal command mentioned above will erase the drive as part of the process, so read the tool's instructions before running it.
Can I write-protect just one folder on my USB drive instead of the whole drive?
Not through the built-in write-protection feature. However, you can right-click a folder, select Properties (Windows) or Get Info (Mac), and check the Read-only box for that folder alone. This prevents changes to files inside it without protecting the entire drive.
My drive is write-protected but I do not remember enabling it — how did this happen?
Write protection can be turned on accidentally by moving a physical lock switch, or it can be set by antivirus software, backup programs, or Windows itself if the drive was previously used as a recovery or system drive. Check the physical switch first, then use Diskpart or Disk Utility to clear the software protection.
Is it safe to use Diskpart to remove write protection?
Yes, the attributes disk clear readonly command is safe and will not erase data. It only removes the read-only flag from the drive. Always make sure you have selected the correct disk number before running the command, because other Diskpart commands can erase drives.
