> How to > Partition Master > How to fix Diskpart failed to clear disk attributes

How to fix Diskpart failed to clear disk attributes

Updated on Dec 11, 2018 by Brithny to Partition Master

Summary:
Get diskpart failed to clear disk attributes or Current Read-only State yes problem? Here, full solutions to fix the Diskpart clear readonly not working issue are offered.

Overview 

When your hard drive, USB pen drive or SD card is read-only, it is set to be write-protected, which will prevent you from making any changes on the device, for example, modify the old files on it or write new data to it. 

As a free partition tool built-in Windows system, Diskpart is usually the users' first choice to remove the Write protection and change the read-only to normal. To do it, just run the command "attributes disk clear read-only".  As you can see, now the "Current Read-only State" and "Read-only" attributes are set to No and the disk is now writeable. To exit Diskpart, just type the word "exit" and then press Enter. 

But the results vary for different users, some people successfully manage the job but others just get the error Dskpart attributes disk clear read-only failed. A similar problem is Current Read-only State yes. Some people find that they can successfully clear the read-only attribute but can not change the “Current Read-only State” attribute from Yes to No.  

How to fix Diskpart failed to clear disk attributes issue

No matter you encountered Diskpart clear read-only not working issue in which situation, here you can find full solutions to solve the problem.

Method 1. Turn off the physical Write protection switch 

When you suffered Diskpart failed to clear disk attributes issue while running Diskpart to clear read-only disk attributes, please first check if there is a physical Write protection switch on the hard drive, USB pen drive or SD card, if yes, turn off it. Then go to check if Diskpart clear read-only can work properly.

Fix Diskpart failed to clear disk attributes issue - turn off the physical Write protection switch

Method 2. Remove Write protection using Regedit.exe

1. Connect the read-only device to PC.

2. Press Windows + R keys simultaneously to open the Run box. Type regedit and click "OK".

3. Now, you've opened the Registry Editor. Find the path there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

4. Click the Write Protection icon, and set the Value data to 0. Click "OK".

Fix Diskpart failed to clear disk attributes issue using Regedit.exe

Usually, after all these steps, you will find that Diskpart failed to clear disk attributes issue have gone away. If not, it suggests that the storage media may contain corruptions or bad sectors. Just try EaseUS free partition software to check and repair the possible errors. 

Download Now

 Windows 10 is supported

Method 3. Check and repair the disk errors 

 

Step 1: Open EaseUS Partition Master on your computer. Then locate the disk, right-click the partition you want to check, and choose "Check File System".

Check Partition - Step 1

Step 2: In the Check File System window, keep the "Try to fix errors if found" option selected and click "Start".

Check Partition - Step 2

Step 3: The software will begin checking your partition file system on your disk. When it has completed, click "Finish".

Check Partition - Step 3

After repairing all the possible disk errors, go to Diskpart to clear read-only disk attributes again to check if the issue is fixed.