Share this article

Improve this guide

Diskpart Failed to Clear Disk Attributes: 4 Ways to Fix

Format the RAW deive to FAT32 if you encounter this issue

4 min. read

Updated onOctober 4, 2023

updated onOctober 4, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Key notes

Users can run into the diskpart failed to clear disk attributes when using the Diskpart utility. The error means the disk is write-protected, and you cannot write any data on it. However, we’ll discuss the basic steps for fixing the error.

Likewise, we have a detailed guide onremoving write protection from your pen driveon Windows 11.

Why did diskpart failed to clear disk attributes?

Why did diskpart failed to clear disk attributes?

The Diskpart failed to clear disk attributes error can occur due to various reasons. Here are a few possible causes:

These causes may vary depending on the circumstances. Fortunately, we’ll take you through some effective fixes for the error in the next section of this article.

What can I do if diskpart failed to clear disk attributes?

What can I do if diskpart failed to clear disk attributes?

Observe the following preliminary checks before trying any advanced troubleshooting steps:

If the above checks can fix the issue, proceed with the solutions below:

1. Run diskpart as an administrator

The above steps will run Diskpart with administrative privileges and allow you to modify the disks and volumes.

2. Run the CHKDSK command

The CHKDSK (Check Disk) command will check the disk for errors causing the diskpart issues and attempt to fix them. Check our guide on what to do ifCommand Promptkeeps crashing on your PC.

3. Modifying WriteProtected key in Registry Editor

Tweaking the registry entry allows you to disable the WriteProtect key to modify the disk.

4. Change the drive format to FAT32

Formatting the drive to FAT32 can fix the issue.

Check our comprehensive article about how toformat USB drives to FAT32on Windows PCs for more steps.

In conclusion, you may be interested in our detailed guide about fixingUSB drive detected but not accessibleon Windows PCs.

If you have further questions or suggestions regarding this guide, kindly drop them in the comments section.

More about the topics:DiskPart

Henderson Jayden Harper

Windows Software Expert

Passionate about technology, Crypto, software, Windows, and everything computer-related, he spends most of his time developing new skills and learning more about the tech world.

He also enjoys gaming, writing, walking his dog, and reading and learning about new cultures. He also enjoys spending private time connecting with nature.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Henderson Jayden Harper

Windows Software Expert

Passionate about technology, Crypto, software, Windows, and everything computer-related, he spends most of his time developing new skills.