Don’t do this unless you NEED to. You don’t even need to secure erase your SSD when you reinstall. The only reasons to secure erase is if there is a drastic speed decrease from either a hard workload or a TRIMless environment which you need fix quickly or if your SSD is acting up. Otherwise TRIM and garbage collection will take care of everything automatically.
Erasing all the data on the SSD:
It is not safe to use DBAN Nuke or similar on SSDs. First, it’s not good for the drive, and second, it wouldn’t work properly anyway. Not good for the drive because it writes to the drive too many times. Wouldn’t work properly because just like the OS, DBAN and similar cannot control where it writes to on the drive. The SSD’s controller is responsible for that, and due to wear leveling algorithms, wouldn’t get you the intended results. DBAN in its current state, is not designed for SSDs. It is used for magnetic drives that have a tendency to retain “images” of previously stored magnetic data. It writes (and sometimes overwrites again) data to the drive, and what is called “secure erase” in DBAN, is different than a “secure erase” command issued by a program designed for SSDs. The secure erase command for an SSD is a command that tells the SSD’s controller to “flush” all of its stored electrons, that it has trapped, from the individual storage cells. It does not write to the drive in any fashion, like a DBAN secure erase does.With an SSD, all you need is to perform a “secure erase” with the proper software.
Secure Erase and NAND:
To learn about how NAND works at a technical level read this: (link)
Tunneling is used to alter the placement of electrons in the floating gate. An electrical charge is applied to the floating gate. The charge enters the floating gate and drains to a ground. This charge causes the floating-gate transistor to act like an electron gun. The excited electrons are pushed through and trapped on other side of the thin oxide layer, giving it a negative charge. These negatively charged electrons act as a barrier between the control gate and the floating gate. A special device called a cell sensor monitors the level of the charge passing through the floating gate.
NAND flash memory uses floating gate MOSFET transistors. Their default state is when the charge is over the 50%. If the flow through the gate is above the 50% threshold, it has a value of 1. When the charge passing through drops below the 50% threshold, the value changes to 0.
0’s are data, 1’s is erase….the fundamental laws of MLC NAND dictate this. You only write the 0’s when you write data to NAND.
So in an erased state the NAND has to report a 1.
Secure Erase issues the SSD controller firmware’s pre-programed ATA Securiy Erase Unit command. It applies a voltage spike at a specific voltage to all of the NAND simultaneously flushing the stored electrons from the flash memory cells, thus cleaning the NAND. Thus, when the Secure Erase command is ran and the voltage to all the NAND is over 50%, all the NAND is set to an erased to a unrecoverable state, speeds are reset to default, and it is in ready to be written to state.
Parted Magic Free download here: http://www.majorgeeks.com/files/details/parted_magic.html
To Secure Erase Your SSD you will need:
- To backup any information on the drive you are secure erasing if you want the data back after: (link)
- Download parted magic and make a bootable CD or USB: Parted Magic
Basically “Freeze Locking” your SSD will not let it be allowed to be Secure Erased. If the UEFI/BIOS recognizes the SSD as plugged in at boot up then it will lock it. If you plug in the SSD after the computer is on then it will not be locked and it should be able to be Secure Erased normally.
- If your SSD is being “Freeze Locked” or not showing up then try this:
You will get an option to put the PC to sleep, try that first then try to Secure Erase again
- If that still does not work:
When you put the PC into sleep mode make sure you have any USB devices unplugged from the system and the Parted Magic USB/Live CD as well.
- If that doesn’t work try below on top of the other suggestions:
- Enable AHCI mode in the UEFI/BIOS and “hot swap” on the SATA ports
- Save & exit
- Turn off the computer
- Unplug EVERYTHING on your SATA ports except for your CD/DVD drive
- Turn on and boot to Parted Magic
- When in the main GUI plug your SSD into a normal SATA 2 port