Learn how to remove write protection from your USB drives
Do you have a USB drive that's set to read-only mode, and you're not sure how to remove that? If so, this is the article for you. In this article we go over a number of ways to remove write protection from a USB drive on both Windows and Mac so you can get back to working with your files. Keep reading to learn more.
Ways to Remove USB Write Protection
- Use diskpart to remove the read-only attribute from your USB drive (Windows).
- Use the Registry Editor to change the WriteProtect value in your registry (Windows).
- Fix problems with the drive in Disk Utility on Mac.
- Make sure the USB drive's lock switch isn't set to "lock" or "read only."
Steps
-
1Plug the USB drive into your computer. Use an open USB port on your computer to plug in the drive.
- Make sure you have a backup of the drive before continuing.
-
2Press ⊞ Win + R . This will open the Run window.Advertisement
-
3Type diskpart into the text field. Press Enter to run the command, or click the OK button.
- If you get a confirmation window that asks if you're sure that you want to open diskpart, click the Yes button.
-
4Type list disk in the diskpart window. Press Enter to run the command.
-
5Find your USB drive in the list of disks. The list disk command shows all the drives connected to your computer, including your hard drive. The easiest way to find your USB drive is by looking at the size column. Your USB drive will likely be a much smaller size than your hard drive.
-
6Type select disk # in the diskpart window. Press Enter to run the command. Replace the # with the disk number you found in the previous step.
- For example, if your USB drive is disk 2, you'd write select disk 2 .
-
7Type attributes disk clear readonly . Press Enter to run the command. Once the command is run, you'll see a message stating that the read-only attribute was removed from your drive. [1] X Research source
- You can now exit the diskpart window. Remember to safely eject your USB drive when you're ready to remove it from your computer.
Advertisement
-
1Plug the USB drive into your computer. Use an open USB port on your computer to plug in the drive.
- Make sure you have a backup of the drive before continuing.
-
2Type regedit.exe in the taskbar search bar and open Registry Editor. If diskpart doesn't work, you can remove the read-only state from your USB drive using the Registry Editor. However, be aware that editing the registry incorrectly can cause a lot of issues with your computer, and can even render it unusable. Always make sure to back up your registry before editing it.
- To back up your registry, click HKEY_LOCAL_MACHINE in the sidebar, then click File > Export . Save that exported file in case you need to restore your registry. [2] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
-
3Navigate to the StorageDevicePolicies key. To get there, open these folders in the left-hand pane:
- HKEY_LOCAL_MACHINE
- SYSTEM
- CurrentControlSet
- Control
- StorageDevicePolicies
- If the StorageDevicePolicies key doesn't exist, you'll need to create it. While in the Control key, right-click in the empty right pane and click New > Key .
- Name the new folder "StorageDevicePolices."
- Click on the new StorageDevicePolicies key.
- Right-click in the empty right pane and click New > DWORD (32-bit) Value .
- Name the value "WriteProtect."
-
4Double-click the WriteProtect value. This will open a window where you can edit this value.
-
5Type the number 0 in the "Value data" field. Click OK to save the change. Restart your computer, then check the USB drive again to see if it's still write-protected.
Advertisement
-
1Plug the USB into your computer. Use an open USB port to plug in the drive.
- Make sure you have a backup of the drive before continuing.
-
2Run Disk Utility. You can launch Disk Utility from the Utilities folder inside your Applications folder, or by pulling up Spotlight and typing "Disk Utility" and selecting it.
-
3Click the View button at the top of the screen. It's next to the "Disk Utility" header, and it has an icon of a rectangle with a sidebar.
-
4Click Show All Devices . If you don't have this option available, skip to the next step.
-
5Click on your USB drive in the sidebar. It will be under the header that says "external." If you have other external drives plugged into your computer, make sure you're selecting the right one. The sidebar will have the drive's name, and if you click on it, you'll be able to see the amount of storage on the drive to narrow down which one is the right one.
-
6Click First Aid near the top of the screen. When prompted if you want to run First Aid, click Run . [3] X Research source
-
7Quit Disk Utility once the repair is done. Check the drive to see if it's still in read-only mode.
Advertisement
-
1Plug the USB into your computer. Use an open USB port to plug in the drive.
- Make sure you have a backup of the drive before continuing.
-
2OpenFinder. You can click on it in the Dock. The Finder icon looks like a square with a smiley face that is half blue and half white.
-
3Click on the USB drive in the sidebar. It should be under the "Locations" header. If you have multiple drives plugged into your computer, you'll need to narrow them down by name.
-
4Click File > Get Info in the top bar. This will open a new window with information about the drive.
-
5Click the arrow next to "Sharing & Permissions." If the lock in the bottom-right corner is locked, click it to unlock it before proceeding.
-
6Check the box next to "Ignore ownership on this volume." Now, check the drive to see if it is no longer in read-only mode. [4] X Research source
- If the USB drive was used to hold Time Machine backups, you won't be able to check this option.
Advertisement
Community Q&A
Search
-
QuestionMy flash drive is in a current read only state but not read only, how do I fix this?Community AnswerSolution 1. Check the physical switch. Solution 2. Open regedit and change registry key. Solution 3. Use the manufacturer's USB repair tool to restore read-only to normal.
-
QuestionOnly current read only state says yes and my flash drive doesn't have a lock switch, how do I fix this?Community AnswerSolution 1. Check the physical switch. Solution 2. Open regedit and change registry key. Solution 3. Use the manufacturer's USB repair tool to restore read-only to normal.
-
QuestionOnly the current read-only state is yes, and all the others are no, how do I remove that?Community AnswerUSB disk cannot be OFFLINED. Do the following; diskpart> sel disk, diskpart> attrib disk clear, Readonly, diskpart> attrib disk. Now try to write a file to this disk and let me know if it works.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
References
- ↑ https://answers.microsoft.com/en-us/windows/forum/all/this-disk-is-write-protected/039e7915-827e-4f84-be58-3d7e92fd7e98
- ↑ https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692
- ↑ https://support.apple.com/en-us/102611
- ↑ https://support.apple.com/en-ph/guide/mac-help/mchlp1204/mac
- ↑ https://superuser.com/questions/543067/why-is-my-usb-flash-drive-now-read-only
About This Article
Thanks to all authors for creating a page that has been read 288,002 times.
Advertisement