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: Cleaning a virus laden hard drive - format vs diskpart/clean

06 Dec 2011   #1
Vincenzo

Windows 7 Professional x64
 
 
Cleaning a virus laden hard drive - format vs diskpart/clean

I'd like to make sure all malware is off an old hard drive before I re-use it. I want to make sure that all areas, including the boot sector are clean. Will using "format" in disk manager do that, or is Diskpart/Clean a more thorough cleaning?

Thanks


My System SpecsSystem Spec
06 Dec 2011   #2
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

If you want a thorough format you can use the Clean All command, but be aware it will take several hours or so depending on the size of your hard drive.

Gregrocker is of the opinion that the Clean command is enough and knowing how knowledgeable he is I'd say that's good enough.

Disk - Clean and Clean All with Diskpart Command
My System SpecsSystem Spec
06 Dec 2011   #3
Corazon

Windows 7 Professional SP1 32-bit
 
 

Definitely use the Diskpart method. Just formatting all existing partitions won't touch the MBR or any code stored in the first 63 sectors of the disk.

Diskpart's clean command wipes out the MBR and partition table completely, so for all intents and purposes the disk is returned to a virgin state. Everything else that still remains on it simply becomes inert, random data.
My System SpecsSystem Spec
07 Dec 2011   #4
ICIT2LOL

Desk1 8 Pro / Desk2 7 Home Prem / Main lap Asus ROG 7 Pro
 
 

How about a factory default - if it is a "bought" machine. It will clean everything and leave your OS intact.

Trouble is you have to clean the bloat and do all the updating again.

Menat to ad what do the others think of a an already cloned "clean' drive (I keep a couple spare) and just clone the the main drive from it? Or perhaps CCleaner drive wipe but you need the install disk eh?
My System SpecsSystem Spec
07 Dec 2011   #5
Vincenzo

Windows 7 Professional x64
 
 

Thanks Seavixen and Corazon. I used the Clean function and it worked very nicely. I was pleased to see that when it was done it had removed all the partitions and left the space unallocated.
My System SpecsSystem Spec
07 Dec 2011   #6
Vincenzo

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by ICit2lol View Post
How about a factory default?
This is a bare drive, no computer.

Thanks
My System SpecsSystem Spec
08 Dec 2011   #7
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Hi Vincenzo,

Can I offer a suggestion? Once you have your recently cleaned disk installed with everything you need, consider imaging your sytem using FREE Macrium Reflect - this way, if you run into trouble again, you could simple reinstall your entire system from the Macrium image. Its far quicker than doing a fresh install of everything.

This tutorial will be useful too :

Imaging with free Macrium

Regards,
Golden
My System SpecsSystem Spec
08 Dec 2011   #8
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Quote   Quote: Originally Posted by Vincenzo View Post
Thanks Seavixen and Corazon. I used the Clean function and it worked very nicely. I was pleased to see that when it was done it had removed all the partitions and left the space unallocated.
You're very welcome.

Thanks for the feedback.
My System SpecsSystem Spec
08 Dec 2011   #9
Vincenzo

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Golden View Post
Hi Vincenzo,

Can I offer a suggestion? Once you have your recently cleaned disk installed with everything you need, consider imaging your sytem using FREE Macrium Reflect - this way, if you run into trouble again, you could simple reinstall your entire system from the Macrium image. Its far quicker than doing a fresh install of everything.

This tutorial will be useful too :

Imaging with free Macrium

Regards,
Golden

Thanks Golden. Yes, I agree. I am a big fan of imaging. I use Ghost and Acronis. This drive was given to me by a friend.
My System SpecsSystem Spec
08 Dec 2011   #10
Corazon

Windows 7 Professional SP1 32-bit
 
 

Very welcome, thanks for letting us know you succeeded. I agree with Golden as well, nothing says "fresh start" like a pristine image of a newly-installed OS with all updates, drivers and core apps already installed.
My System SpecsSystem Spec
Reply

 Cleaning a virus laden hard drive - format vs diskpart/clean




Thread Tools





Similar help and support threads
Thread Forum
BIOS Cannot Detect Hard Drive After Exiting Diskpart Clean All. Help.
Hello everyone. So four years ago, I custom built a new computer which ran really well. However, I wanted to make several upgrades including a new Seagate Barracuda 250 gb hard drive (7200 rpm, SATA II, 8 mb cache) and Windows 7 64-bit on a USB. I know it's not flashy stuff but i'm on a budget...
Hardware & Devices
Format and clean Win7 install from hard drive?
I'm going to do a complete format and clean install of Windows 7 Starter on my ASUS EEE PC 1015-PEM. It's now running 7 Ultimate. I did not back up the recovery partition when I put Ultimate on it (completely spaced.. smh,) have no external optical drive handy, USB not recognizing any flash...
Installation & Setup
diskpart / clean, format by accident , need to recover data
Hello, I know it's stupid but i diskpart/clean and formatted while installing windows from cmd, it's a new laptop so i had no other data just (i don't remember exactly) 100GB not more. i installed windows on that formatted disk. I had all data on D Disk (500GB) and now i have only one disk which...
Backup and Restore
Can't format hard drive. Tried diskpart/disk management.
Hi guys, I recently bought an SSD and decided to install it on my machine, I've set it as the #1 boot option, and then I tried to format my previous hard drive so I can use it for data. Whenever I right click and do it in explorer, it says "Windows was unable to complete the format". If I do it via...
Hardware & Devices
Diskpart's clean all versus Full Format
As I understand it (I was reading this thread http://www.sevenforums.com/system-security/200321-need-hdderase-will-work-sata-2.html#post1687550), clean all writes all sectors to 0 on a disk. As I understand from post #13 by Brink, full format will set aside bad sectors so the disk uses only the...
General Discussion
Raw Hard drive. Format and diskpart fails.
Really long thread but please read it and help. Today i got sick of my hard drive always uselessly disappearing and thought i'd rather lose 150gbs of data then have it become useless all the time. I tried to fix my disappearing in this thread but had no success. After all that i tried formatting...
Hardware & Devices

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 19:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App