Diskpart Cannot/Fails to Clean Disk/USB/SD? Fix Now!

Tracy King updated on Sep 16, 2019 to Partition Master | How-to Articles

Diskpart fails to clean disk or USB drive, help!

"Hi there, do you know how to clean up a whole disk or USB drive when diskpart won't work with its 'clean' command in Windows 10? I was planning to use Diskpart command to erase my external hard drive and wipe out all data on it so to use it save new files and documents. 
But it won't work to clean up the drive with the 
diskpart clean command. Do you know any other new ways or repair solutions to clean up a storage device and repair diskpart to work again?"

Diskpart is a Windows built-in tool for users to clean up disk, format drive or convert disk for free. But when it stops working or won't work for formatting or cleaning disk, what will you do to get problems fixed and complete cleaning up disk or formatting drive? Here in this article, you'll find 2 reliable methods to clean up disk, USB or SD card etc storage devices for free and repair diskpart to work again. How? Continue reading and find the answers now:

Method 1. Clean disk/USB/SD with Diskpart alternative freeware

When Diskpart stops working, don't worry. And you can directly try diskpart alternative freeware to simply clean up target storage devices first.
Here we'd like to recommend you try EaseUS Partition Master Free which works as equivalently as diskpart for formatting devices, cleaning up and erasing data or changing file systems on your USB, SD or hard drive. EaseUS diskpart alternative freeware also supports you to resize partition, create a new partition, delete or even command partitions for free in Windows systems. You may free download this software and follow to cleanup your disk, USB or SD card now:

Download Now

 Windows 10 is supported

 

Step 1: Launch EaseUS Partition Master, right-click the partition you want to erase data from, and choose "Wipe Data".

Wipe Partition - Step 1

Step 2: In the new window, set the time for which you want to wipe your partition, then click "OK".

Wipe Partition - Step 2

Step 3: Click the "Execute Operation" button in the top-right corner, check the changes, then click "Apply" to wipe the data on your partition.

Wipe Partition - Step 3

After this, you can use your cleaned up disk or USB etc storage devices for storing new data again.

If you are trying to find a method or solution to repair diskpart fail to clean disk error, you can follow Method 2 to get the problem solved immediately.

Method 2. Fix and repair Diskpart to work again

To repair Diskpart and make it work again, you can simply follow 3 steps below to get jobs done now:

Step 1. Run Command Prompt as administrator

If you are not an administrator or don't sign in with your administrator account, you would not be able to use Diskpart to clean disk or format drive then. 
Therefore, your first move is to run diskpart as administrator:

  1. 1. Click "Start" > "All Programs" > "Accessories".
  2. 2. Right-click "Command Prompt" > "Run as Administrator".
  3. 3. Sign in your Administrator account if it asks you to log in.
  4. 4. If the User Account Control dialog appears, click "Continue" to confirm the action is what you want;
  5. 5. Run diskpart again to see if the problem fixed or not.

If not, continue with Step 2 and Step 3.

Step 2. Remove device write-protection that stops diskpart cleaning data

If a device is write-protected, diskpart may not be able to clean up data saved inside the devices. Therefore, removing write-protection is also necessary to make diskpart workable. 

# 1. Use Write-Protection removal tool

If you are not professional in computing management and not familiar with command lines, don't worry. EaseUS R&D team has promoted a fresh kit for helping you resolve the write-protection issue on your hard drive, external hard drive, USB or SD card, etc., devices.

EaseUS Tool M is a practical computer fixing tool that is safe and light-weighted. It's a perfect alternative to the command line. 

Use this one-click tool to solve the write-protection issues on your own:

Step 1: DOWDLOAD and install EaseUS Tool M for free.

Step 2: Run EaseUS Tool M on your PC, choose "Write Protection" mode.

Step 3: Select the device which is now "Write-Protected" and click "Disable" to remove the protection.

Remove Write Protection from storage devices.

# 2. Use Registry to remove device write protection

  1. 1. Click "Start" > Open "Run" dialog and type: regedit to bring up registry editor by hitting Enter;
  2. 2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies;
  3. 3. Double click "WriteProtect" key and change the value to 0;

After this, move to Step 3 to finally repair diskpart and make it work again for cleaning up disk.

Step 3. Run CHKDSK to repair bad sectors and perform System Restore to make diskpart work again

Finally, you shall repair and fix all bad sectors which stop diskpart working in system disk and then you can even perform a System Restore to make diskpart 100% working again:

  1. 1. Open Command Prompt > Type: diskpart and hit Enter;
  2. 2. Type:chkdsk h: /f (replace h with a drive letter of your hard drive or removable device) in diskpart and hit Enter.
  3. 3. Type: chkdsk h: /r (replace h with a drive letter of your hard drive or removable device) and hit Enter.
  4. 4. Type: exit and hit Enter to finish the process.
  5. 5. Click "Start" > "All Programs" > "Accessories".
  6. 6. Click "System Tools" > "System Restore".
  7. 7. Sign in your administrator password to confirm the system restore process;
  8. 8. Follow on-screen lines to finish the system restore process > reboot PC after the system restore process finishes.

Now that you can apply diskpart to format disk, clean up data in hard drive partition or change file system of USB/SD etc storage devices in your PC again.

 
 

100% of people found this article helpful.

 

Frequently Asked Questions

Why Choose EaseUS Partition Master?

"I've used Partition Master Professional many times to create, delete, format, move, rename, and resize partitions."PCWorld

"Partitioning tools have come a very long since the days of complicated command line utilities and EASEUS Partition Master is one of the most advanced programs available."TECH ADVISOR

"I love that the changes you make with EaseUS Partition Master Free aren't immediately applied to the disks. It makes it way easier to play out what will happen after you've made all the changes."Lifewire

Will the "Migrate OS" feature transfer the Windows system files only or the whole C drive?

To ensure that the migrated system will boot normally, the Migrate OS feature will transfer all the files in the system and the boot partitions. Generally, the boot partition is the C drive so the transfer will include all the files in C.

Does EaseUS Partition Master license apply to multiple computers?

The license of Partition Master Professional and Server editions can be used on 1 computer only, while that for for the Technician and Unlimited editions can be used on multiple machines.

What is the difference between EaseUS Partition Master Trial version and the Free version?

Free is for home users only, with most basic functions available such as partition resize and clone. While trial can help you understand how this product works and test what a full license can do on a business or server OS machine.

Will it cause any data loss after resizing the partition in EaseUS Partition Master?

Generally, it will not cause any data loss or boot issue by resizing a partition. However, in order to protect your data, we suggest that you backup the partition before resizing, in case of any unexpected situations such as power outages, computer hardware failures, etc. You can use EaseUS Todo Backup to backup the partition and its trial version is fully functioned for 30 days.

What should I prepare before resizing the partition?

On the partition that is going to be operated, there might be some files being occupied by other programs. To ensure a successful operation, we suggest that you close all the unnecessary software before resizing that partition. Otherwise, EaseUS Partition Master will detect the partition being locked by the other software and require a reboot to resize the partition under boot mode.

About EaseUS Partition Master

All-round disk & partition management software for personal and commercial use. Let it manage your storage drive: resize, format, delete, clone, convert, etc.