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

19 Dec 2013   #200
ICIT2LOL

Desk1 8 Pro / Desk2 7 Home Prem / Main lap Asus ROG 7 Pro
 
 

As Brink says mate and it depends on the machine too I found my laptop with dual cores a lot slower than the quad cores of the desktops. That is not to mention what clock speed they run at too.


My System SpecsSystem Spec
25 Feb 2014   #201
Scoop

Windows 7 Home Premium 64 bit
 
 

Shawn,

My Win 7 HDD contains the automatic Windows 7 install with 2 partitions, System Reserved and a "C" partition.

After reading the thread (great stuff ), I have a couple of questions about the "clean" and "clean all" commands:

- Does the "clean" command accomplish the same thing as deleting both partitions from the Disk Management Console, with the addition of deleting the MBR when using the "clean" command? I'm guessing that partition-deletes from the Console won't delete the MBR since it's located prior to the beginning of the first partition, the System Reserved partition.

- Does the "clean all" command unhide and overwrite any "Host Protected Area" sectors, more known as the HPA? Those are typically located after the last user partition on a HDD, for those HDD's the contain a HPA.

After reading some articles about HPA's, it would appear that one would need to "unhide" the HPA before most disk-wipe tools can access that area to overwrite any data located within the HPA.

Seatools (Dos) and "HDDErase" will unhide the HPA but "DBAN" doesn't access that area according to the DBAN's site FAQ section.

I think there is a Linux command that will unhide the HPA but I don't recall that command at present.
My System SpecsSystem Spec
25 Feb 2014   #202
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

Hey Scoop,

"Clean" and "Clean all" both will completely wipe the hard drive of all partitions hidden or not.

The only difference between them is that "Clean all" includes a 1 pass override secure erase, and "Clean" doesn't.
My System SpecsSystem Spec
25 Feb 2014   #203
Scoop

Windows 7 Home Premium 64 bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Hey Scoop,

"Clean" and "Clean all" both will completely wipe the hard drive of all partitions hidden or not.

The only difference between them is that "Clean all" includes a 1 pass override secure erase, and "Clean" doesn't.
10-4, thanks . You just saved me a couple of steps during my periodic "pre-cloning" routine .
My System SpecsSystem Spec
.


25 Feb 2014   #204
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

You're welcome. Yeah, unless you just need to do a secure erase, I would use "clean" to save time.
My System SpecsSystem Spec
25 Feb 2014   #205
Scoop

Windows 7 Home Premium 64 bit
 
 

Quote   Quote: Originally Posted by Brink View Post
You're welcome. Yeah, unless you just need to do a secure erase, I would use "clean" to save time.
Yes. I usually do a "pre-cloning" delete of partitions, only to make it easier for me to identify the Target HDD within cloning software since it will appear as unallocated. This command saves me some "clicks" and steps
My System SpecsSystem Spec
28 Mar 2014   #206
Mac The Steve

Windows 7 Ultimate x64
 
 
Clean all, clean, etc doesn't work. Prompt says Clean not allowed.

Thank you Shawn - I followed the excellent directions but get the following errors (snip below)

"Virtual Disk Service Error: Clean is not allowed on the disk containing the current boot, system, pagefile, crashdump or hibernation volume." note that I am not trying to format the OS drive, just a HDD that was originally in a raid configuration with another identical drive that I formatted & accidentally made Virtual. Now I just want to get it back to mirroring it's twin again. Can anyone help?

Thank you!


Attached Images
Disk - Clean and Clean All with Diskpart Command-error-snip.png 
My System SpecsSystem Spec
28 Mar 2014   #207
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

Hello Mac, and welcome to Seven Forums.

See if running the "clean" command at boot instead may allow you to do so.
My System SpecsSystem Spec
09 Jun 2014   #208
tinhdx

64
 
 

I'm use to clean command when install window. Pls help me recover data. Thank all very much (
My System SpecsSystem Spec
09 Jun 2014   #209
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

Hello tinhdx, and welcome to Seven Forums.

Unfortunately, there is no recovery when you use the clean command to wipe a hard drive unless you have a backup or system image saved at another location.
My System SpecsSystem Spec
Comment

 Disk - Clean and Clean All with Diskpart Command




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
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
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
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 http://www.sevenforums.com/tutorials/52129-disk-clean-clean-all-diskpart-command.html but got this error: http://imageshack.com/a/img38/6739/tafk.jpg 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 15:29.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App