| Windows 7: Cleaning a virus laden hard drive - format vs diskpart/clean |
06 Dec 2011
|
#1 | | 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 Specs |
| OS Windows 7 Professional x64 |
06 Dec 2011
|
#2 | | Windows 7 Ultimate SP1 64-Bit Peterborough, England |
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
Last edited by seavixen32; 06 Dec 2011 at 06:01 PM..
Reason: Extra information
| My System Specs | | System Manufacturer/Model Number HP Pavilion Elite 495UK OS Windows 7 Ultimate SP1 64-Bit CPU Intel Core i7 870 @ 2.93GHz Motherboard MSI 2A9C (CPU1) Memory 8Gb Dual-Channel DDR3 @ 664MHz Graphics Card nVidia GeForce GTX 460 1024MB dedicated RAM Sound Card Realtek HD Audio Monitor(s) Displays HP2310i Screen Resolution 1920 x 1080 Keyboard Logitech K750 solar-powered keyboard Mouse Logitech Wireless M180 mouse PSU 460W Case HP Elite Cooling Air cooled Hard Drives 1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage Internet Speed 2Mb Other Info Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop |
06 Dec 2011
|
#3 | | Windows 7 Professional SP1 32-bit Fantasyland |
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 Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. |
07 Dec 2011
|
#4 | | Desk1 7 Home Prem / Desk2 7 Home Prem / Laptop 7 Pro all 64bit |
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?
Last edited by ICit2lol; 07 Dec 2011 at 08:39 PM..
Reason: Addition
| 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 |
07 Dec 2011
|
#5 | | 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 Specs | | OS Windows 7 Professional x64 |
07 Dec 2011
|
#6 | | Windows 7 Professional x64 |

Quote: Originally Posted by ICit2lol How about a factory default? This is a bare drive, no computer.
Thanks | My System Specs | | OS Windows 7 Professional x64 |
08 Dec 2011
|
#7 | | Windows 7 Ultimate SP1 (x64) South Australia |
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 Specs | | Computer type PC/Desktop System Manufacturer/Model Number Golden Mk. I.3 OS Windows 7 Ultimate SP1 (x64) CPU Intel i7 860 @ 2.80 GHz Motherboard Gigabyte P55A-UD3R Rev.1. Award BIOS F13 Memory 16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24) Graphics Card EVGA NVidia GTX 560 1024MB Sound Card Realtek Integrated Monitor(s) Displays Dual Samsung SyncMaster 2494HS Screen Resolution 1920*1080 and 1920*1080 Keyboard Logitech G110 Mouse Logitech MX518 PSU Thermaltake ToughPower QFan 750W Case Thermaltake Element S VK60001W2Z Cooling Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans Hard Drives 1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
3*Samsung F1 SpinPoint 1TB in RAID5;
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0 Internet Speed Not fast enough!!! Antivirus MSE and Malwarebytes Pro Browser Chrome Version 25 Other Info Laptop: ASUS X54C, Intel Core i3-2330M @ 2.0Ghz, 4GB RAM, Intel HD on-board graphics, Windows 7 Professional SP1 (x64), LinuxMint 14 (x64), PepperMint 3 (x86) |
08 Dec 2011
|
#8 | | Windows 7 Ultimate SP1 64-Bit Peterborough, England |

Quote: Originally Posted by Vincenzo 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 Specs | | System Manufacturer/Model Number HP Pavilion Elite 495UK OS Windows 7 Ultimate SP1 64-Bit CPU Intel Core i7 870 @ 2.93GHz Motherboard MSI 2A9C (CPU1) Memory 8Gb Dual-Channel DDR3 @ 664MHz Graphics Card nVidia GeForce GTX 460 1024MB dedicated RAM Sound Card Realtek HD Audio Monitor(s) Displays HP2310i Screen Resolution 1920 x 1080 Keyboard Logitech K750 solar-powered keyboard Mouse Logitech Wireless M180 mouse PSU 460W Case HP Elite Cooling Air cooled Hard Drives 1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage Internet Speed 2Mb Other Info Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop |
08 Dec 2011
|
#9 | | Windows 7 Professional x64 |

Quote: Originally Posted by Golden 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 Specs | | OS Windows 7 Professional x64 |
08 Dec 2011
|
#10 | | Windows 7 Professional SP1 32-bit Fantasyland |
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 Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. Cleaning a virus laden hard drive - format vs diskpart/clean problems? All times are GMT -5. The time now is 02:32 AM. | |