


How to solve the problem of unable to copy files due to disk write protection
What to do if the disk is write-protected and unable to copy things
The disk is write-protected means that the disk cannot be written to during use, which means that files and files on the disk cannot be copied, deleted, or modified. folder. This often happens with storage devices such as USB flash drives, SD cards, and hard drives. When encountering the problem that the disk is write-protected, we can try the following methods to solve it.
Method 1: Check the switch
Before starting other solutions, we must first check whether there is a hardware switch or lock switch on the storage device. Many USB flash drives and SD cards are equipped with a toggle button that can be used to protect data so that it cannot be written to. Make sure the switch is toggled on so data can be written.
Method 2: Use the command prompt
Open the command prompt and run it as an administrator. Search for "Command Prompt" in the Start menu and right-click "Run as administrator."
Enter the following command and press the Enter key: diskpart
Enter the following command and press the Enter key: list disk
This command will display a list of all disks on the computer. Find the disk number you want to repair. Then enter the following command and press the Enter key (assuming the disk number is 1): select disk 1
Enter the following command and press the Enter key: attributes disk clear readonly
This command will clear the read-only attribute of the disk so that it can write data. You should now be able to copy files to the disk.
Method 3: Use the Registry Editor
Open the Registry Editor. Press the Windows key R key, type "regedit" and press Enter.
Navigate to the following path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies
If the "Storage Device Policies" key does not exist, you will need to create it. Right-click the Control folder, select New > Key, and name it Storage Device Policy.
In the "Storage Device Policy" folder, right-click the blank area and select "New" > "DWORD Value (32-bit)". Name the new DWORD value "WriteProtect".
Double-click "WriteProtect" and change its numerical data to "0".
Close the Registry Editor and restart the computer. Now you should be able to copy the files to disk.
Method 4: Use professional tools
If the above method does not work, you can try to use some professional disk repair tools. There are many free and paid tools to choose from, such as DiskGenius, EaseUS Partition Master, etc. These tools often have functions to repair the disk, including removing write protection.
However, before using these tools, please make sure to back up your important data to prevent data loss.
Conclusion
Disk being write-protected is a common problem, but we can solve it by trying some simple methods. First, check whether the hardware switch or lock switch is turned on. Second, you can use Command Prompt or Registry Editor to clear the read-only attribute of the disk. Finally, if needed, you can use some professional disk repair tools. During operation, be careful to avoid data damage or loss caused by incorrect operation.
The above is the detailed content of How to solve the problem of unable to copy files due to disk write protection. For more information, please follow other related articles on the PHP Chinese website!

What’s the difference between Linux and Mac? Do you want to install Linux on Mac? This post from php.cn will show you all. You can refer to this guide to dual boot Linux and macOS.

What is MHTML? How to open or view it? What are the differences between it and HTML? How to convert MHTML to HTML? If you are looking for the answers to the above questions, you can refer to this post from php.cn.

This article focuses on the topic that deleted files keep reappearing in Windows 10, introducing the responsible reasons and feasible solutions.

This post teaches you how to deactivate Windows 10/11 by removing product key or license. You can use that product key to activate another computer later if you want. For more computer tips and tricks, you can visit php.cn Software official website.

Some Windows users report that they are prompted by the error 0164 memory size decreased screen every time they boot the computer. What’s wrong with it? If you are in the same boat, congratulations! You’ve come to the right place! In this post from p

This Page Isn’t Available Right Now is an error message you may encounter when you visit Facebook using your web browser. In this php.cn post, we will list some effective methods you can try to get rid of this error.

Windows 11 KB5010414, a new optional update for Windows 11, is available now. Do you know what’s new and fixes in it? php.cn Software will show you this information in this post. Besides, it also tells you how to download and install it on your compu

Want to pause Windows Update on your Windows 11 computer? Want to set active hours to arrange a computer restart to complete the update process? You need to know how to change Windows Update settings in Windows 11. This php.cn post will show you the


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
