| Windows 7: Disk - Clean and Clean All with Diskpart Command |
03 Jan 2010
|
| | |
Disk - Clean and Clean All with Diskpart Command How to "Clean" or "Clean All" a Disk with the Diskpart Command
Last edited by Brink; 7 Hours Ago at 11:38 AM..
| My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
20 Mar 2012
|
| | |

Quote: Originally Posted by mjf 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.
Last edited by Brink; 20 Mar 2012 at 10:41 PM..
Reason: added quote
| My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
20 Mar 2012
|
| | |

Quote: Originally Posted by Brink 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 Specs | | Computer type PC/Desktop System Manufacturer/Model Number Own build (new) Desk1 / Toshiba L550 / Desk2 1st build OS Desk1 7 Home Prem / Desk2 7 Home Prem / Laptop 7 Pro all 64bit CPU Desk1 i5 3750K / Laptop i5 430m / Desk2 i5 2500 Motherboard Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ? Memory Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3 Graphics Card Desk 1& 2NVidia GTX 650 & Laptops on board Intel Sound Card Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop Monitor(s) Displays Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5" Screen Resolution 1920x1080 D1 & D2 Keyboard Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4 Mouse Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless PSU Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650 Case Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster Cooling Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ? Hard Drives Desk1 Samsung 120GB 830 SSD
Toshiba Crucial 120GB SSD
Desk2 Samsung 120GB 830 SSD Internet Speed ADSL2+ Other Info One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2011 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK |
21 Mar 2012
|
| | |
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 Specs | | |
21 Mar 2012
|
| | |
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 Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
21 Mar 2012
|
| | |

Quote: Originally Posted by Brink 
Quote: Originally Posted by mjf 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 Specs | | System Manufacturer/Model Number Own build (+ Recased Acer Aspire x1800) OS Windows 7x64 Home Premium SP1 x 2 CPU Intel i7 2600k Motherboard ASUS P8Z68 Deluxe Memory G.Skill Ripjaws (DDR3-1600) 2x4GB Graphics Card Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+) Monitor(s) Displays Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350 Screen Resolution 1920x1080 Keyboard Logitech MK520 (wireless) Mouse Logitech MK520 PSU Seasonic M12II 520W Case Lian Li Lancool PC-K60 Cooling Case: 1x120mm, 3x140mm CPU: Hyper 212+ Hard Drives Crucial M4 128GB (000F), Seagates 1TB Barracuda ST31000528AS + Internet Speed 6-7 Mbps Antivirus Norton NIS, Malwarebytes on 2 (MSE on 3rd PC) Browser FireFox Other Info Audio: Logitech Z523 2.1 |
21 Mar 2012
|
| | |
No problemo mate. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
20 Apr 2012
|
| | |
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 Specs | | System Manufacturer/Model Number Homebuilt OS Windows XP (on this machine) CPU AMD Athlon 64 3200+ Motherboard Gigabyte GA-K8n Pro Memory 2 sticks Crucial 1GB PC3200 400MHz 184-pin DDR Memory Graphics Card BFG 6600 GTOC AGP video card Sound Card Hercules GTXP Monitor(s) Displays Planar PX191 19" LCD monitor PSU Corsair vx550w PSU Case generic Cooling custom Hard Drives Samsung H501LJ internal 500 GB SATA
3 IDE HDs: Seagate Barracuda: 120 (boot), 160, 200 GB |
20 Apr 2012
|
| | |

Quote: Originally Posted by bpelowski 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 Specs | | System Manufacturer/Model Number Homebuilt OS Windows XP (on this machine) CPU AMD Athlon 64 3200+ Motherboard Gigabyte GA-K8n Pro Memory 2 sticks Crucial 1GB PC3200 400MHz 184-pin DDR Memory Graphics Card BFG 6600 GTOC AGP video card Sound Card Hercules GTXP Monitor(s) Displays Planar PX191 19" LCD monitor PSU Corsair vx550w PSU Case generic Cooling custom Hard Drives Samsung H501LJ internal 500 GB SATA
3 IDE HDs: Seagate Barracuda: 120 (boot), 160, 200 GB |
20 Apr 2012
|
| | |
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 Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
22 Apr 2012
|
| | |

Quote: Originally Posted by Brink 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 Specs | | System Manufacturer/Model Number Homebuilt OS Windows XP (on this machine) CPU AMD Athlon 64 3200+ Motherboard Gigabyte GA-K8n Pro Memory 2 sticks Crucial 1GB PC3200 400MHz 184-pin DDR Memory Graphics Card BFG 6600 GTOC AGP video card Sound Card Hercules GTXP Monitor(s) Displays Planar PX191 19" LCD monitor PSU Corsair vx550w PSU Case generic Cooling custom Hard Drives Samsung H501LJ internal 500 GB SATA
3 IDE HDs: Seagate Barracuda: 120 (boot), 160, 200 GB Disk - Clean and Clean All with Diskpart Command problems? All times are GMT -5. The time now is 06:42 PM. | |