Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Diskpart hangs running 'clean all'

19 Apr 2012   #11

win7 home premium family pack

Thank you very much for all the help and advice, I'm pleased to say following the advice it's now solved and the disk checks out fine.
I've no idea why it froze or whatever but its now clean re-formatted and seems to be working OK

My System SpecsSystem Spec
18 May 2012   #12

windows 7 home premium 64 bit

hi, i'm having the same issue with a larger drive- a 2tb g-drive- i'm using windows and i read from their site that this drive comes pre-formatted for macs.. so i followed the directions on selecting the drive and running diskpart/clean all. it is now about 20hours and it is not done.. should i also kill this and only do clean? i already see the drive on the Disk Management area showing all space unallocated- tried to initialize but it says it is being cleaned- even after I ended the Command from the task manager. Any sugestions? This is just an external drive on firewire and it is brand new.. now I'm wondering if i really had to do all this.- Now i can't even see the command window- thanks
My System SpecsSystem Spec
18 May 2012   #13
Microsoft MVP


There is no reason to run Clean All except making data unrecoverable by most methods. Any other reason like writing zeroes to the boot sector to overwrite bad or conflicting code can be accomplished by the Clean command. Reboot the computer and run Diskpart Clean Command .

Make sure you have the latest BIOS update as this is sometimes required to handle drives that large.

If you plan to install to the drive, unplug all others and use the booted installer Custom>Drive options to partition and format: Clean Install Windows 7

Otherwise partition in Disk mgmt. That may have been all you needed in the first place - to delete, Create and Format in Disk Mgmt. Partition or Volume - Create New. The Clean commands really are only needed for troubleshooting purposes otherwise.
My System SpecsSystem Spec

07 Oct 2015   #14

Windows 8 64 bit

Hi guys, I have a similar issue unsolved. Please help!

My 128 GB micro sdXC memory card corrupted while I was copying files into it. It asks to format before I can use it. I tried to recover data from many tools but couldn't retrieve them back and I tried to diskpart Clean this disk. According to the stats above, it should finish till now but it's been 2 days and Clean is still running.

In Disk Management and in diskpart list - my 128 GB memory card is shown as 12 MB I don't know why.

Please suggest what to do to get back the card running.

My System SpecsSystem Spec
23 Aug 2019   #15

Windows 7 Home x64,

How does one know if "clean all" has hung that or is still trundling along?

My old phone overheated and shut down part way through recording a video and this did bad things to the SD card. There is a "temp video" file that is corrupted. diskmgmt.msc and diskpart give the disk a number but my win7 does not give the card a drive letter, and when I attempt to format using diskpart, diskmgmt.msc, and the SD association's formatter I am told that the disk does not exist, and my phone can access files prior to the crash but can not format nor save new files (e.g. photos). So I thought I would clean all but perhaps nothing is happening. The cursor is flashing. It is a 64GB USB drive.

This thread is near the top of the Google search for "clean all" diskpart so it is still a relevant/important repository of information (that told me for instance that it could take a very long time) these four years later.
My System SpecsSystem Spec
23 Aug 2019   #16

Windows 7 Home x64,

I stopped "clean all", and am using a free utility for creating bootable drives called "RMPrepUSB" (with the non-bootable option selected) from "RM Education". This utility also failed to format my disk, either to NTFS or exFat (current formatting) complaining that it did not have a drive letter. I am now checking it using the "Quick Size Test" of the same utility, which will takes about 10 minutes.

And it turns out that my "64GB" SD Card, is a fake containing only 4 or 8GB. I had been using it for years without noticing but had gone over the real limit and it corrupted itself. I think I will buy a new non-fake card.

RM Education has quite a detailed page bout fake cards/memory drives
07 - All about 'Fake' SD cards and USB Flash drives - RMPrepUSB
My System SpecsSystem Spec

 Diskpart hangs running 'clean all'

Thread Tools

Similar help and support threads
Thread Forum
Disk - Clean and Clean All with Diskpart Command
How to "Clean" or "Clean All" a Disk with the Diskpart Command This will show you how to use the clean or clean all command on a selected disk to delete all of it's MBR or GPT partitions, volumes, and any hidden sector information on MBR disks is overwritten. The data on the HDD is not...
Diskpart "Clean All" Hangs
Hello everyone. I've recently received a Lenovo H405 series computer that is completely wiped and only can run BIOS. I have all of the repair disks, the Windows 7 installation disk, along with a disk to install all of the drivers. I've been unable to fully install Windows 7 thus far after trying...
Installation & Setup
Formating 3tb drive..diskpart clean or clean all
I am having to format a 3tb drive that I am installing Windows 7 on and I need to know do I need to do clean all or just clean in diskpart? What happened is I did not know about the GPT (first time dealing with a drive over 2tb) and I just went through the motions like you do with installing. Well...
Installation & Setup
Should I clean my HDD with Parted Magic or Diskpart clean all command?
Hi everyone i have a question about HDD Clean and also question about Win 7 64 bit :) I want to wiped out my all HDD data inside i want to delete all information like a brand new HDD. I heard that there is a program called Parted Magic can do this and also Diskpart clean all command too. ...
General Discussion
diskpart's "clean all" hangs, no signs of HD activity
I am following the instructions at to erase my entire HD before sending my laptop somewhere. In particular, I am issuing the diskpart command from a "command prompt at boot". I only have one HD on the laptop,...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:36.
Twitter Facebook