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

20 Mar 2012   #130
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by mjf View Post
It may have been mentioned earlier but you can run the tutorial from the command prompt of a system repair disk if you can't or don't want to boot into the OS.
Oh no, I posted the above so he would know that "clean" will wipe the entire HDD so he wouldn't wipe his OS partition by mistake thinking "clean" would only wipe selected drive letters on HDD.


My System SpecsSystem Spec
20 Mar 2012   #131
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello John,

Unless the OS is on a separate physical HDD than the one you wanted to use "clean" or "clean all" on, then no. They will wipe everything on a HDD including all partitions/volumes.
Thanks Shawn thought that might be the case so will just use the drive for clean installs

Pity there wasn't a way of "saving" the OS before doing the clean, as most of the stuff I get to tidy up for folks does not have an installation disk.
My System SpecsSystem Spec
21 Mar 2012   #132
bpelowski

Win 7 Ultimate 64 bit
 
 

Quote:
A) In the elevated command prompt, type clean all and press Enter. You will see the command prompt below as is until the "clean all" command is finished. (see screenshot below)
NOTE: This will take quite some time (several hours or more) to finish depending on how large the disk is since it is writing over each and every sector on it to zero. Think of it as being like a full or low level format.
Question - shouldn't my hard drive light be doing a lot of blinking after typing clean all? I followed the steps and typed clean all but now I just have a blinking cursor under the line DISPART> clean all.
My System SpecsSystem Spec
21 Mar 2012   #133
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello bpelowski,

Yep, it would be normal for there to be quite a bit of HDD activity for that drive as it's being secured erased by having 0 written over all of it sectors. It'll take a while for it to finish and until you see the "Diskpart succeeded...." message in the command prompt.
My System SpecsSystem Spec
.

21 Mar 2012   #134
mjf

Windows 7x64 Home Premium SP1
 
 

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by mjf View Post
It may have been mentioned earlier but you can run the tutorial from the command prompt of a system repair disk if you can't or don't want to boot into the OS.
Oh no, I posted the above so he would know that "clean" will wipe the entire HDD so he wouldn't wipe his OS partition by mistake thinking "clean" would only wipe selected drive letters on HDD.
Ok I just meant that understanding what "clean" , "clean all" does to the "selected disk", you can use the system repair disk to perform the function.
Sorry if it confused your advice to the OP.
My System SpecsSystem Spec
21 Mar 2012   #135
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

No problemo mate.
My System SpecsSystem Spec
20 Apr 2012   #136
dMuse

Windows XP (on this machine)
 
 
Windows 7 DISKPART> clean all

[This is my first post here, just registered]

I have executed this 3 times already. It's hard to determine if anything is happening. There is no message, just a blinking cursor. Is the process going on or not? Is there a way to tell? The HD is a 640GB Samsung HM640jj. I ran "clean" and it terminated almost immediately and it said successfully, but I don't know a lot about this stuff. I'm doing all this because I inadvisedly let a party run some code on my computer with logmein123, and now I'm paying the price, spending my day (and on into tomorrow, etc.) reinstalling everything.

I could run DBAN, but if "clean all" terminates successfully, I obviously won't have to. The concern, for the most part, seems to be that there was a rootkit placed on the system, and I want to be sure that going forward my computer will be secure.

Is it normal for DISKPART> clean all to be followed by a blinking cursor for hours, no indication of progress, nothing??? Thanks for help.
My System SpecsSystem Spec
20 Apr 2012   #137
dMuse

Windows XP (on this machine)
 
 

Quote   Quote: Originally Posted by bpelowski View Post
Quote:
A) In the elevated command prompt, type clean all and press Enter. You will see the command prompt below as is until the "clean all" command is finished. (see screenshot below)
NOTE: This will take quite some time (several hours or more) to finish depending on how large the disk is since it is writing over each and every sector on it to zero. Think of it as being like a full or low level format.
Question - shouldn't my hard drive light be doing a lot of blinking after typing clean all? I followed the steps and typed clean all but now I just have a blinking cursor under the line DISPART> clean all.
Ah, I guess that kind of answers my question. It may be 3 hours or more before I see a "succeeded" message. Well, I think I will do some other stuff while this is going on...

It's a hard for me to tell about notifications here. It says I'm subscribed to this thread, but how do I ensure that I will get an instant email notification? I'm not a noob to forums, but the mechanics of this one has me confused. I confess, I'm easily confused... at times.
My System SpecsSystem Spec
20 Apr 2012   #138
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello dMuse, and welcome to Seven Forums.

Yep, unless you wanted to include a secure erase, then using the clean instead of clean all command would have been finished within a few moments. Eventually you'll get a completed message in the command prompt letting you know it's finished. It can take a while to finish depending on how the size of the HDD.

You should get an instant email notifcation about my reply post, and any other reply to this thread other than yours for as long as you are subscribed to it.

Hope this helps,
Shawn
My System SpecsSystem Spec
22 Apr 2012   #139
dMuse

Windows XP (on this machine)
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello dMuse, and welcome to Seven Forums.

Yep, unless you wanted to include a secure erase, then using the clean instead of clean all command would have been finished within a few moments. Eventually you'll get a completed message in the command prompt letting you know it's finished. It can take a while to finish depending on how the size of the HDD.

You should get an instant email notifcation about my reply post, and any other reply to this thread other than yours for as long as you are subscribed to it.

Hope this helps,
Shawn
What is a "secure erase?" Is that part of the DISKPART command? I certainly wanted to ensure that no malware etc. remains on the HD. Did a "clean all" not ensure that? Yes, I got an instant email notification when you posted, thank you. My Clean All did execute successfully after 2-3 hours.
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 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 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 07:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App