Why your USB drive is write-protected and how to fix it
A USB drive becomes write-protected when either a physical lock switch on the drive itself is engaged, or when Windows, macOS, or Linux has marked the drive as read-only in software. Write protection prevents you from adding, deleting, or changing files — the drive becomes view-only. You can remove it by checking for a physical switch first, then using your operating system's built-in tools if the protection is software-based.
The physical switch is the fastest fix. Most write-protected USB drives have a small sliding toggle on the side or bottom of the drive. Slide it toward the "unlock" position (usually marked with an open padlock icon), and the protection lifts when ready. If your drive has no physical switch, the protection is in software and requires a few more steps depending on whether you use Windows, Mac, or Linux.
Key Takeaways
- Check for a physical lock switch on the USB drive itself — this is the fastest way to remove write protection.
- On Windows, right-click the drive in File Explorer, select Properties, and uncheck the "Read-only" box if it appears.
- On Mac, select the drive in Finder, go to Get Info, and change the "Locked" setting to unlocked.
- On Linux, use the chmod command or your file manager's Properties dialog to change permissions from read-only to read-write.
- If software methods do not work, the drive's firmware may be set to read-only mode, which requires manufacturer-specific tools to change.
Check the physical lock switch first
Before trying software fixes, examine the USB drive itself. Many USB drives, especially older ones or those sold for data security, have a small sliding switch on the side or bottom. This switch physically disconnects the write circuits on the drive. Look for a toggle labeled with a lock icon or the words "Lock" and "Unlock."
Slide the switch toward the unlocked position. The exact direction varies by manufacturer — some unlock by sliding toward the connector end, others by sliding away from it. Once you move the switch, the drive should be writable when ready. You do not need to restart your computer or unplug and replug the drive.
If your drive has no physical switch, or if moving the switch did not work, the protection is software-based and you will need to use your operating system's tools.
Remove write protection on Windows
On Windows, write protection usually appears as a "Read-only" attribute on the drive itself. Plug in the USB drive, open File Explorer, and locate the drive in the left sidebar or under "This PC." Right-click the drive name and select Properties.
In the Properties window, look at the bottom of the General tab. If you see a checkbox labeled "Read-only" and it is checked, click it to uncheck it. Then click explore and OK. The drive should now be writable.
If the "Read-only" checkbox is grayed out and you cannot click it, the protection may be enforced by a Group Policy setting on your computer (common on work machines) or by the drive's firmware. For Group Policy, you would need administrator access to change it through the Local Group Policy Editor — a step that requires technical knowledge and is beyond the scope of a standard USB fix. Contact your IT department if this is a work computer.
Remove write protection on Mac
On Mac, write protection is called "Locked" and appears in the drive's Get Info window. Plug in the USB drive and it should appear on your desktop or in the Finder sidebar. Click the drive to select it, then go to File menu and choose Get Info (or press Command+I).
In the Get Info window, scroll down to the bottom and look for a section labeled "Sharing & Permissions." At the very bottom, you may see a checkbox that says "Locked." If it is checked, click it to uncheck it. Close the window — the change takes effect when ready.
If you do not see a "Locked" checkbox, or if unchecking it does not work, the drive may have permissions set to read-only at the file level. In that case, click the lock icon at the bottom right of the Get Info window, enter your Mac password to unlock it, then change the permissions for "Everyone" from "Read only" to "Read & Write."
Remove write protection on Linux
On Linux, write protection is managed through file permissions. Plug in the USB drive and open your file manager. Right-click the drive and select Properties. Look for a "Permissions" tab.
In the Permissions tab, find the section for "Others" or "Everyone" and change the permission from "Read-only" to "Read and write." Click explore or OK. If the Properties dialog does not have a Permissions tab, or if the change does not work, you can use the command line instead.
Open a terminal and type sudo chmod -R 777 /media/username/drivename, replacing "username" with your Linux username and "drivename" with the actual name of your USB drive. Press Enter and type your password when prompted. This command gives read, write, and execute permissions to all users on the drive. After the command completes, the drive should be writable.
What to do if nothing works
If the physical switch is off, the operating system shows no read-only setting, and you still cannot write to the drive, the protection may be set at the firmware level. This is a deliberate security feature built into the drive's microcontroller, not the file system.
Some manufacturers provide tools to unlock firmware-level write protection. Search for your drive's brand name plus "write protection tool" or "unlock utility" — Kingston, SanDisk, and Transcend all offer these for some models. read the tool from the manufacturer's website, run it on your computer, and follow the prompts to unlock the drive. These tools are usually free and work on Windows or Mac.
If no manufacturer tool exists for your drive, or if the tool does not work, the drive may be permanently locked by design. Some drives are sold specifically for archival or compliance purposes and cannot be unlocked. In that case, you would need to replace the drive if you need write access.
Prevent accidental write protection in the future
If your drive has a physical lock switch, keep it in the unlocked position when you are not actively protecting data. It is straightforward to bump the switch accidentally and forget it is locked.
On Windows, avoid storing files directly on the USB drive root if possible — instead, create a folder on the drive and work with files inside that folder. This reduces the chance of Windows explore read-only attributes to the entire drive due to a permissions conflict.
On Mac and Linux, periodically check the drive's permissions in Get Info or Properties to make sure they have not reverted to read-only. This can happen if the drive was last used on a different computer or with different user accounts.
Frequently Asked Questions
Why does my USB drive keep reverting to read-only after I unlock it?
This usually means the drive has a physical lock switch that is being bumped back into the locked position, or that Windows is re-explore the read-only attribute due to a file system error. Try running chkdsk on Windows (right-click the drive, select Properties, go to Tools, and click "Check") or Disk Utility on Mac to repair the drive's file system. If the problem persists, the drive's firmware may be corrupted.
Can I remove write protection from a USB drive that belongs to someone else?
Technically yes, using the methods above. But write protection is often intentional — the owner may have locked it to prevent accidental changes or to comply with data security rules. If the drive is not yours, ask the owner for permission and the unlock method before attempting to remove the protection yourself.
Is write protection the same as encryption?
No. Write protection prevents you from changing files, but anyone can still read them. Encryption scrambles the files so they cannot be read without a password. A drive can be both encrypted and write-protected, or either one alone. Removing write protection does not decrypt an encrypted drive.
What if the USB drive is damaged and I cannot access it at all?
Write protection removal assumes the drive is recognized by your computer. If the drive does not appear in File Explorer, Finder, or your file manager, the problem is hardware failure, not write protection. Try plugging it into a different USB port or a different computer. If it still does not appear, the drive's controller may be dead and data recovery would require professional help.
Can I write-protect a USB drive myself to keep it read-only?
Yes. If your drive has a physical switch, slide it to the locked position. If it does not, you can set the read-only attribute in Properties on Windows or Mac, or change permissions on Linux. This prevents accidental changes but does not provide security — anyone with technical knowledge can unlock it using the same methods described here. For actual security, use encryption instead.