Jun 03, 2026 • Filed to: USB Recovery • Proven solutions
To remove write protection from a read-only USB drive, unlock its physical hardware switch, modify system registry settings on Windows, or reformat the drive to a cross-compatible file system if the error occurs on a Mac.
● On Windows, disable software-based write protection by changing the WriteProtect value to 0 under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies registry path, or by running the "attributes disk clear readonly" command via the Diskpart utility.
● Mac computers natively restrict NTFS-formatted drives to a read-only state; enabling write permissions on macOS requires using Disk Utility to erase and reformat the flash drive to either the MS-DOS File System or exFAT.
● If system registry edits, security permission changes to "Everyone", and CHKDSK command repairs fail to remove the protection, the drive may be locked due to a malware infection or permanent hardware failure.
Ask AI for a summary
Content Navigation
Once you get similar messages like the following ones when using the SanDisk flash drive, it means the pen drive becomes read-only and write-protected. You're unable to edit data, delete files, or save information on this drive, unless you find the fixes.

If your USB disk gets this error on Windows computer, you may think the USB drive is broken and unable to use. The flash drive becomes a read-only situation, and you cannot manage data on it, like copying, deleting or writing the files on the disk. How to remove the write protection from a read-only flash drive? On the next guide, we will show you how to disable write protection from flash drive, SD card or pen drive in Windows 11/10/8/7.
Some USB drives may have a switch on the side or button. You can turn it off or on to disable or enable the write protection. If there is a switch on your USB disk, try switching it to the unlock side.

After this, your USB flash drive should now work well. If it doesn't work, you can also follow the next steps to remove write protection from USB drive with Regedit.exe.
If you find that there is not a switch on your USB drive, you can remove the write protection from USB drive using Registry Key.



Your USB drive may contain some virus or malware that can make the USB device become read-only. In this case, you need to download an antivirus software to find and remove the malware.
Or you can use the Virus & threat protection utility on Windows computer:

If there is any disk error in your USB drive, it can cause the disk become read-only. In this case, you can fix the error using the Windows CHKDSK feature.

If the methods introduced above fail to remove write protection from the USB, now it’s time to try formatting since the USB device’s file system may have been corrupted. There are several ways to format the USB drive on Windows. Here we will show you the Diskpart Command way:

If you're working on a Mac computer, you also will receive the "Read Only" error on the external drive. On the following steps, we will show you how to disable write protection disk on Mac.
To disable the write-protected disk on Mac, you can follow the next steps to format the drive on macOS:

Check if the drive's permissions are corrupted or not. You can fix the error using Disk Utility. Follow the steps below to remove write protection from Read-only USB drive on Mac.

Formating the file system of the flash drive can cause the write protection. Usually, a pen drive uses the NTFS file system on a Windows computer. You can keep writing and reading data stored inside it. However, sometimes you might want to use it on a Mac computer. So you format the flash memory stick to make it compatible with the Mac computer. The file system is indeed readable and the stored data is accessible on a Mac computer due to the Mac feature. However, writing data is not available. The write protection is added on the USB flash drive by default.
How do I disable write protection on a flash drive? Here, we offer both Windows and Mac solutions to help you fix read only flash drives easily and quickly.
We hope those solutions could help you fix and remove write protection from USB drive on Windows and Mac. If it still fails to fix out the problem, you should buy a new USB flash drive. Also, if you need to get all USB data back, you can download Recoverit Data Recovery, powerful USB data recovery software, to help you out. Follow the guide to recover files from USB drive easily.
Why is my USB drive showing as read-only and write-protected?
How can I remove write protection from a read-only USB drive?
Sue Wayne
staff Editor