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 Jan 2010   #199
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Disk - Clean and Clean All with Diskpart Command

How to "Clean" or "Clean All" a Disk with the Diskpart Command


...

My System SpecsSystem Spec
19 Dec 2013   #200
ICit2lol

Desk1 8 Pro / Desk2 7 Home Prem / Laptop 8.1 Pro all 64bit
 
 

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 8.1 Enterprise
 
 

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 8.1 Enterprise
 
 

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
 
My System SpecsSystem Spec
28 Mar 2014   #207
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 8.1 Enterprise
 
 

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 for2: Disk - Clean and Clean All with Diskpart Command
Windows 7 Tutorial Category
Should I clean my HDD with Parted Magic or Diskpart clean all command? General Discussion
DISKPART & HDD help - Clean All interrupted, disk no longer found. General Discussion
Can "diskpart clean all" be performed after a "diskpart clean" ? Hardware & Devices
Solved Diskpart hangs running 'clean all' Installation & Setup
Solved A simple question about diskpart /clean all General Discussion
Do not see HDD after clean all using diskpart General Discussion
Solved Diskpart Clean All Error 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 01:25 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33