Secure Erase / Wipe : Definition and Methods

Secure Erase / Wipe - and the Basic Methods
A secure erase or more commonly referred to as a wipe is a way to over-write all existing data on a Hard Disk Drive (HDD) / Solid State Drive (SSD) with at least one set of binary zeroes ( 0 ) or ones ( 1 ) so the data cannot be retrieved.

Contrary to popular belief, doing a full format with Windows 7 only over-writes the old disk format configuration data (the MBR) with the new and checks for sector errors, then marks the remaining space to be over-written as needed, it does not over-write (remove) any other data at all, it's all still there including code from previous Operating Systems and all of the old personal data.

It is also very useful before starting the Windows installation process to correct for disk format errors of many kinds, to include over-writing the Linux / Grub boot loader, that is known to cause serious issues when installing Windows to a HDD / SSD that has had Grub as a loader in the past; also to correct installation errors when clean installing Windows 7 to a space that originally contained Windows XP.

A wipe is very effective to 'remove' any previous malware infections and start fresh.
   Warning

All the methods outlined in this guide have the capability to over-write any and all data on an entire HDD / SSD so be completely sure you are using the correct method on the correct drive.

These first 2 methods below, to include the clean and the clean all command(s) will only do the entire HDD / SSD they will not do a single partition on a HDD / SSD, they will do the whole drive.
   Note

The HDD / SSD partition structure can be viewed in Windows disk management by typing diskmgmt.msc into the Windows start menu search box; it is always better to be safe than sorry, so if you have any doubts, make back-ups of anything you would not want to lose permanently, to external media before you start any of these procedures.

Method One

This is very useful while using Windows to do a wipe of a HDD / SSD that does not have the Windows partition on it as it will not allow a "System" partition to be done; if you just need to over-write the Master Boot Record or "disk format configuration data" use the clean command listed at #6, if you need to over-write the entire HDD / SSD use the clean all command listed at #7 in this tutorial.
Disk - Clean and Clean All with Diskpart Command


Method Two

If you need to do a secure erase / wipe to a HDD / SSD before you start a Windows installation, see Step One and then to use the command-line to create the partition(s) to do the installation to, see Step Two #2 or #3 of this tutorial.

Have a look here to view additional important information on this entire process.
SSD / HDD : Optimize for Windows Reinstallation


Method Three

This is similar to what is commonly known as a file shredder, making it no longer necessary to use third-party software to do a secure delete (secure erase) of files or any other data you need to over-write so they can't be recovered from your system without your knowledge.

This does not simply delete data it's pointed at, it completely over-writes it.
Permanently Delete - Add to Context Menu
If you are an adventurous sort and would like to use the command line instead, type sdelete in an elevated command window to secure delete files or data of any type you may need to wipe / over-write.


Method Four

If you don't want to wipe the entire HDD / SSD, you can do a partition-specific wipe of any single partition using the Partition Wizard free software, have a look at Option Two in the tutorial at this link below to get some ideas.
Partition Wizard : Use the Bootable CD
Enjoy! :)



 
Last edited:
Quality! I'm happy to see that METHOD 3 correctly states that a secure erase can be achieved easily without the need for 3rd party applications, or algorithms such as DoD or Gutmann etc.

Nicely done Sir!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Quality! I'm happy to see that METHOD 3 correctly states that a secure erase can be achieved easily without the need for 3rd party applications, or algorithms such as DoD or Gutmann etc.

Nicely done Sir!


Thank you sir, I appreciate the kind words!
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
  • Like
Reactions: whs
Thanks for a very useful addition to our arsenal of tools in the fight against the nasties in cyberland - my list of bookmarks gets ever bigger. :)
 

My Computer

Computer 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(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
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
Thank you Andrew, I'm pleased it's finding a use.
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Great work, Ted :thumbsup: A perfect chapter of the textbook :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Assembled
OS
Microsoft Windows 10 Pro Insider Preview 64-bit
CPU
Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
Motherboard
Gigabyte Technology Co., Ltd. B85M-D3H
Memory
Corsair Vengence 4GB x2 (8.00GB Dual-Channel DDR3 @ 798MHz)
Graphics Card(s)
2047MB GeForce GTS 450 (ZOTAC International)
Sound Card
Onboard (Realtek High Definition Audio)
Monitor(s) Displays
LG Flatron E2040T
Screen Resolution
1600x900
Hard Drives
Western Digital 1 TB
Seagate 500 GB
PSU
Corsair VS550
Case
Cooler Master K380
Cooling
Cooler Master Seidon 120V Plus
Keyboard
Logitech MK260r
Mouse
Logitech MK260r
Internet Speed
PMPL Broadband
Antivirus
Windows Defender + MBAM
Browser
Firefox
Other Info
Dell Studio 15" Laptop
Thank you friend Archan! :)
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Another brilliant Tutorial Ted, well done, there's no better place than here to see a wealth of brilliantly written gems that help us all make the most of our systems.
:thumbsup:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer Aspire XC-704 x64 bit/ Asus K55A Notebook PC/HP Envy x360 Convertible 15-bq0xx
OS
Windows 10 64bit/Windows 10 64bit/Windows 10 64bit
CPU
Intel Pentium J3710 @ 60GHz/Intel B820,1.7GHz/AMD A9 Radeon
Motherboard
Acer Aspire XC-704 (SOCKET 0)/Asus/HP 8312 (Socket FP4)
Memory
8.00GB DDR3 @ 1599MHz/8GB 2 x 4GB DDR3/8.00GB Dual-Channel
Graphics Card(s)
Intel HD Graphics/Intel/512MB ATI AMD Radeon R5 Graphics (HP
Sound Card
Realtek High Definition Audio/Onboard/AMD High Definition Au
Monitor(s) Displays
Acer LCD K222HQL /Asus 15.6/Generic PnP Monitor (1920x1080@6
Screen Resolution
1920x1080@59Hz/1366 x 768/1920x1080@60Hz
Hard Drives
1863GBWesternn Digital WDC/Asus/119GB SanDisk SD8SN8U-128G-1006 (SSD)
931GB Hitachi HGST HTS721010A9E630 (SATA)
Keyboard
Microsoft Natural Ergonomic Keyboard 4000 (UK)/Inbuilt/Inbui
Mouse
Microsoft Optical Wheel Mouse/Same plus Touchpad/Same + Pad
Internet Speed
Infinity 2 up to 76 Mbps
Antivirus
MSE/MSE/MSE and all 3 have MalwareBytes Premium
Browser
Edge, Firefox/Edge, Firefox/Edge, Firefox, Chrome
Other Info
Seagate Expansion 500GB External Desktop Drive
Seagate Expansion Portable Drives 500GB and 1TB
Epson XP-332 Wireless Printer
Thank you for the kind words Miss Joan! :)
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Actually, full format may wipe the data?

I've heard on the web that in Windows Vista and newer, a full format actually does wipe all data on the volume, not just the file system records. It doesn't just do a read surface scan?
Can anyone confirm?
 

My Computer

OS
windows 7
I've heard on the web that in Windows Vista and newer, a full format actually does wipe all data on the volume, not just the file system records. It doesn't just do a read surface scan?
Can anyone confirm?
No, that information is incorrect. If that was the case, tools such as DISKPART CLEAN ALL etc. etc. would not exist.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Hi guys. I can't seem to find a forum post that I really need. Could anyone point me towards the thread explaining how to do a Secure Delete on a whole drive during (or I should say) right before doing a clean installation of Win7? I remember seeing a tutorial thread on that by Brink or some of the other big names around here, but can't seem to find it now. I think it was done via CMD and Diskpart while the user is in the OS installation environment of Win7. 10x in advance! :)

EDIT:
LOL - my bad. I think I found it myself! :) Must be this - SSD / HDD : Optimize for Windows Reinstallation If there are any other such tutorial threads please do mention them.
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP
OS
Win 7 x64

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Is this what you are looking for?

By Brink:

Disk - Clean and Clean All with Diskpart Command

Thank you, friend! That is a nice one as well, but I think I was looking particularly for the one I actually found - SSD / HDD : Optimize for Windows Reinstallation :)
10x for your input though :)

Basically needed to know how to do a secure delete just before I do a clean OS install! That's all. If there are any other tutorials than the one I mentioned, then by all means everybody is welcome to mention them :) though I do think the one I found (by Bare Foot Kid) is indeed extensive and thorough enough :)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP
OS
Win 7 x64
If Bare Foot Kid's tutorial meets your need, by all means use it.

My understanding was you were looking for options, so I posted one option.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
No, that information is incorrect. If that was the case, tools such as DISKPART CLEAN ALL etc. etc. would not exist.


Can you explain this a little better? I have been told that files may be recovered easily after quick format, yet after full format you cannot. I am not talking about some NSA theory that has really only practical application in research and forensics. (if you are worried about it in that case you should probably melt the drive down anyway)


In real world terms using sub $5k data recovery equipment and software, what exactly does clean all do that prevents recovery where full format would not be secure?
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate 64-bit
I have been told that files may be recovered easily after quick format, yet after full format you cannot.

...

In real world terms using sub $5k data recovery equipment and software, what exactly does clean all do that prevents recovery where full format would not be secure?

I've read that even after full format files can still be recovered. CCleaner for example offers 1,3,7, and 35 passes ... the idea being that the more passes the less likely it is to recover the data. But that means (by no means) that data is fully irrecoverable.

As to your 2nd statement - yes, I too want to know what clean all does to prevent recovery. Running the clean all command one time equates to just 1 pass. So if you wanna do it the CCleaner way then you have to run the command 35 times if you want 35 passes. I'm not saying that's necessary (and it'll take forever [CCleaner should be faster in that regard]) but for the sake of knowing I too am curious.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP
OS
Win 7 x64
I've read that even after full format files can still be recovered. CCleaner for example offers 1,3,7, and 35 passes ... the idea being that the more passes the less likely it is to recover the data. But that means (by no means) that data is fully irrecoverable.

As to your 2nd statement - yes, I too want to know what clean all does to prevent recovery. Running the clean all command one time equates to just 1 pass. So if you wanna do it the CCleaner way then you have to run the command 35 times if you want 35 passes. I'm not saying that's necessary (and it'll take forever [CCleaner should be faster in that regard]) but for the sake of knowing I too am curious.


I'm pretty sure the technique required to do that recovery is more theory than anything. I have not seen any consumer/prosumer level data recovery software that even mentions magnetic leftovers. (when a drive has been filled with zeros, there can be traces of the previous bit values at the surface level of the drive but it is my understanding that this requires very special equipment and microscopic analysis not just popping it on a SATA connector and running some windows software)
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate 64-bit
If you have a platter drive you want to use DBAN. If you have a SSD you want to use secure erase in Parted Magic. Never use DBAN with a SSD. Writes help destroy SSDs. Although, SSDs have been made better, but you just don't want thousands upon thousands of writes on a SSD.

As to Ccleaner's wipe methods, they suck. I used it once and then ran some recovery software and was still able to recover the data.

If you want to be absolutely sure, and it's a platter drive, you can encrypt the drive with Truecrypt or Veracrypt first. The run DBAN. With flash-based storage like SSDs encryption is a little different since the data may still be stored on other cells and thus encryption may be redundant. If you ever chose to use whole disk encryption with a SSD it is best to install the OS, then immediately encrypt the drive with Truecrypt or Veracrypt. But with Truecrypt you need to learn and understand about Evil maid.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Back
Top