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

How to fix Diskpart failed to clear disk attributes

Posted on Jan 08, 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 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 diskpart 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 

1. Launch EaseUS free partition tool and right-click the disk that you want to test and repair by clicking “Check partition”.

Fix Diskpart failed to clear disk attributes issue - choose Check partition option

2. Choose the way that you want to use to check the disk: Check Partition PropertiesCall Windows Chkdsk to fix errors, Surface Test. Click OK.

Fix Diskpart failed to clear disk attributes issue - choose the scan mode

3. Let the tool automatically scan hard disk partition and repair errors for you. Click OK to finish the process.

Fix Diskpart failed to clear disk attributes issue - check and repair disk error

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