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   #119
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
.

05 Mar 2012   #120
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Sfeg, and welcome to Seven Forums.

Yes, either "clean" or "clean all" command will completely wipe everything from a disk. If you are unable to use it from within Windows 7 because of the virus, then you should be able to at boot.

Hope this helps,
Shawn

My System SpecsSystem Spec
.

05 Mar 2012   #121
sfeg

Win7 Pro x64
 
 

Thank you for the welcome, Shawn.

Is the MBR automatically part of the DiskPart wipe, or do I have to specify/alter instructions?

Does this info from Microsoft say otherwise?
A Description of the Diskpart Command-Line Utility
"Diskpart permits certain partition deletion operations that are blocked by the snap-in. For example, you can use Diskpart to delete MBR OEM partitions. However, these partitions often contain files that are important to the platform operation. Diskpart blocks the deletion of the current system, boot, or paging volumes and partitions. Also, Diskpart blocks deletion of the partitions that underlie dynamic disks."
Thanks.
My System SpecsSystem Spec
05 Mar 2012   #122
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Using the "Clean" command at boot on the disk will wipe the disk completely.
My System SpecsSystem Spec
05 Mar 2012   #123
sfeg

Win7 Pro x64
 
 

Can anyone help on my related Q:
If both a HD and the motherboard firmware are infected by a trojan virus, does a Bios flash with updates take care of the Mobo?

But which one to do first? It seems that upon format/reinstall, the HD could get infected immediately again by the Mobo, and vice versa for the Mobo.

I'm thinking HD wipe, then Mobo flash, then HD format/reinstall... still not completely foolproof, but does that make sense or not?
This Tom's article, especially the last comment on 2/4/12, are disheartening!
Webroot Discovers BIOS Rootkit
My System SpecsSystem Spec
05 Mar 2012   #124
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

sfeg,

That will need to be posted as a new thread in the System Security forum area since it's not related to this tutorial. This way you will get the best help for that issue there.
My System SpecsSystem Spec
05 Mar 2012   #125
sfeg

Win7 Pro x64
 
 

I actually did post it there. Thanks. Here's a wipe/format question, though:

If I use Diskpart or another utility (such as KillDisk or DBAN), is it possible to wipe the HD first but don't format it yet? (Or do all wipes also format?)

Then I would do the format to NTFS later, after flashing Mobo.

While still unformatted, will the HD be un-writable, and thus un-infectable?
My System SpecsSystem Spec
05 Mar 2012   #126
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Sfeg,

Yes, when you use the "Clean" command, it will leave the Disk as blank "unallocated space" and unusable until formated.
My System SpecsSystem Spec
20 Mar 2012   #127
ICit2lol

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

Great stuff again I have heap of old drives I thought a format would suffice but then found I could recover stuff now this is just what I wanted.

Thanks so much

I meant to add is there a way of doing this so that I am left with just the OS intact? - handy when one hasn't got the installation disk?
My System SpecsSystem Spec
20 Mar 2012   #128
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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.
My System SpecsSystem Spec
20 Mar 2012   #129
mjf

Windows 7x64 Home Premium SP1
 
 

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.
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 07:17 AM.
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