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

05 Mar 2012   #120
Brink

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

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

64-bit Windows 10 Pro
 
 

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
Reply

 Disk - Clean and Clean All with Diskpart Command




Thread Tools




Similar help and support threads
Thread Forum
Data Recovery after using diskpart clean command
Hello! I wanted to install a fresh windows and here's what happened in details: 1. I couldn't install windows 7 on C Drive because it was a GPT partition (the error message stated that). 2. I followd a tutorial and i used diskpart but i selected partition 1 and then issued the clean command. I...
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
Windows DISKPART Clean command used on Wrong Disk
Hi all... Yesterday, I was going about my drive management on my windows server machine, and I was cleaning two disks that I had just bought. I did not unplug the drives that I was not trying to clean from the PC, so something went horribly wrong. I accidentally cleaned one of the three of the...
Hardware & Devices
Used diskpart-clean command on sd card? Help
Hello all! Im in desperate need of some help!! Long story short, my micro SD card was in an adapter on my PC, working fine, and suddenly i got an error message, saying it needed to be reformatted. I STUPIDLY trusted a youtube video that brought me to command prompt-diskpart. From there i ended...
Music, Pictures & Video
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


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 14:45.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App