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: Disk - Clean and Clean All with Diskpart Command

03 Feb 2015   #250

64-bit Windows 10 Pro

Sorry, the info at the top of the tutorials below can give you more information about GPT and MBR to help.Basically, you don't need to use GPT unless you are going to have partitions over 2TB in size on the drive.

My System SpecsSystem Spec
03 Feb 2015   #251

Win 7 x64

Thanks! And there is no difference which one of the 2 we use speed-wise, right?
My System SpecsSystem Spec
03 Feb 2015   #252

64-bit Windows 10 Pro

Correct. No difference for performance.
My System SpecsSystem Spec
19 Feb 2015   #253

Windows 7 Home Premium 64 bit
More advice required re Portable Hard Drives

Hi Brink, a very useful tutorial. However, I believe that it could do with just a little more advice on the end for what to do with a portable hard drive in order to make it usable again after doing a 'clean all'.

I followed your instructions in order to wipe a portable hard drive prior to possible sale. It worked fine although it did take a while. However, I struggled to get it to be recognised again in a computer afterwards. That may be down to my lack of knowledge of partitions and volumes but I'm sure that other readers may be in the same boat. As it was a portable hard drive, I suspected that I did not want a new partition as I thought that they were only used to separate areas on a single device. The "How to Create a New Partition or Volume in Windows 7" tutorial seemed, on glimpsing through, to concentrate on creating partitions. Perhaps a few wise words on having to create a new volume (or, at least, that is what I assume has to be done) may be in order?
My System SpecsSystem Spec

19 Feb 2015   #254

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit

Quote   Quote: Originally Posted by BorderReiver View Post
As it was a portable hard drive, I suspected that I did not want a new partition as I thought that they were only used to separate areas on a single device.
A hard drive, portable or not, has to have at least one partition to be usable.

If you purchase a new hard drive, it typically will not have ANY partitions. You'd need to create at least one. It would then have to be formatted in order to accept files.
My System SpecsSystem Spec
16 Mar 2015   #255


Does both Clean and Clean All rewrite the MBR section? Or just the Clean All?

I've done DOD 3 pass wipe on external HDD, and thought it would overwrite the ENTIRE disc. But looks like it doesn't touch the MBR as it doesn't ask you to set the MBR afterwards.

Whereas using the Clean or Clean will cause it to ask you to setup the MBR.

I have some spare hard drives that I put a cloned copy of the OS on. Use them to download questionable things in case they contain viruses or malware. So every so often I do a DOD 3 pass wipe to clean the drive. So I would also need to clean the MBR section as well in case a virus got in there.

Looking around I read of it being suggested to do something like a Clean or Clean All first, then do your wipe, then reformat it, then install the OS to do a clean wipe of any viruses that may be on there.
My System SpecsSystem Spec
16 Mar 2015   #256

64-bit Windows 10 Pro

Hello Jason,

Yes, both the "Clean" and "Clean All" commands will completely wipe the drive along with how it's formatted until it's just unallocated.

I would recommend to use the "Clean" command since it's faster. The only difference is that "Clean All" does a secure erase that takes much longer to finish.
My System SpecsSystem Spec
16 Mar 2015   #257


Does "Clean" write over the boot sector then rewrite the boot sector when you select "MBR"?

I'm guessing the software that lets you clean a drive, i.e. DOD 3 pass wipe don't touch the boot sector. As after doing that, it doesn't ask you to select MBR or GPT. I only got it to ask that after doing the Clean or Clean All.

So I guess what I'll do if I need to clean a drive for any viruses. Is first do a Clean and reset it to MBR. Which I guess rewrites the boot sector. Then do my DOD 3 pass wipe or single pass wipe. Then do the LONG format, then load the cloned image.
My System SpecsSystem Spec
16 Mar 2015   #258

64-bit Windows 10 Pro

Clean will only mark the entire drive as deleted to make it unallocated. This will wipe everything on the drive.

If this drive is for Windows, then you could just select the unallocated disk to install Windows on, and allow the installation to format and setup the disk with MBR.
My System SpecsSystem Spec
16 Mar 2015   #259


How would you recommend removing any traces of viruses from an external hard drive? Clean, then set to MBR. Then do say a full pass erase. Then install the cloned image or install from the factory disc.
My System SpecsSystem Spec

 Disk - Clean and Clean All with Diskpart Command

Thread Tools

Similar help and support threads
Thread Forum
Recover data from a diskpart > clean command
This must be my one time blunder but I did manage to clean my 2TB backup external HDD in an attempt to clean a pendrive to make a bootable pendrive for installing Windows 8. Now the help file for the diskpart > clean command says only the MBR partitioning information and hidden sector...
Backup and Restore
Recover Partitions from diskpart -> clean command
Hi Guys, I was trying to install windows 7 on my windows 8 laptop (UEFI) and when it didnt allow me to install win7 on partitioned drive I followed YouTube video foolishly and fired diskpart - clean command. everything gone after that. Luckily I didnt do anything after that and referred one of...
Backup and Restore
Diskpart error: Clean is not allowed on the disk...
Hi, I am doing a clean windows 7 install *again* and I want to completely wipe off the hard disk this time, I followed this tutorial but got this error: Now...
General Discussion
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 & HDD help - Clean All interrupted, disk no longer found.
I have a new WD (Caviar Black) 1.5TB HDD. It was was in the middle of the Clean All process in DISKPART when it was interrupted during the process. It was not stopped via ctrl+c and a follow up run of 'Clean', but exited out of DISKPART and machine reset instead. Going back into DISKPART, the...
General Discussion

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 14:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App