How to: Secure Erase your Solid State Drive (SSD) with Parted Magic - Overclock.net - An Overclocking Community

Forum Jump: 

How to: Secure Erase your Solid State Drive (SSD) with Parted Magic

Reply
 
Thread Tools
post #1 of 222 (permalink) Old 03-11-2012, 09:55 AM - Thread Starter
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)

How to: Secure Erase your Solid State Drive (SSD) with Parted Magic



First off:
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.

This does use 1 P/E cycle.

More info Below

Disk Drive Secure Erase for User Data: (link)
Secure Erase Q and A: (link)

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

Video Tut:


Textual Guide: Warning: Spoiler! (Click to show)
  1. Download parted magic and make a bootable CD or USB: Parted Magic
  2. Once bootable load it and select option 1 (default settings)
    340
  3. Once booted, at the main screen got to Start > System Tools > Erase Disk
    452
  4. Now select the "Internal:Secure Erase command writes zeroes to entire data area" option which will write zeroes to your entire data area" option
    451
  5. Select the disk that you want to secure erase
    373
  6. If you get a message stating that your SSD drive is "frozen," click the Sleep button to put your PC to sleep, then wake up your system and start over from Step 3. If you don't get this message, move on to Step 7.
    217
  7. Some drives indicate that they have a password requirement. Leave the password as "NULL" and click OK.
    312
  8. Now a verify window will pop up, select "Yes" to continue.
    Note: If it prompts you to use the "enhanced" or "advanced" method do not use it, click no, it can write random data, and there is also the possibility that it may access parts of the drive that it shouldn't! It is basically an experimental, non-regulated setting that is meant to be "more secure."
    234
  9. This shouldn't take long on your SSD, most likely only a few seconds. Now you are done.
    95

Freeze Locked:
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.

  1. 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
  2. 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.
  3. If that doesn't work try below on top of the other suggestions:
    1. Reboot
    2. Enable AHCI mode in the UEFI/BIOS and "hot swap" on the SATA ports
    3. Save & exit
    4. Turn off the computer
    5. Unplug EVERYTHING on your SATA ports except for your CD/DVD drive
    6. Turn on and boot to Parted Magic
    7. When in the main GUI plug your SSD into a normal SATA 2 port

Parted Magic Alternatives

HDDErase:
Alternatively you can use HDDErase to Secure Erase your SSD.
Quote:
Quote:
Originally Posted by meloj17 View Post

One question guys, does the loading take more than 15 minutes because all I see is black and a bunch of white letters and numbers?

If the #'s and letter freeze for a few minutes it means there is a hardware incompatibility and you should try to disconnect any excess hardware such as sound cards, PCI cards, etc.

Also you can try HDDErase instead of parted magic: http://forums.crucial.com/t5/Solid-State-Drives-SSD/Secure-Erase-Program/m-p/62531#M19287

hdparm:
This is another alternative to parted magic.

Info and guides here:

Manufacturer Programs:
SSD manufacturers often have a toolbox which has a secure erase utility built in to wipe their drive. Check the respective manufacturer of your SSD and see if they have something for ya.

Samsung Magician:
When you have a Samsung SSD as a secondary drive you can simply use Samsung Magician in the OS. Warning: Spoiler! (Click to show)
  1. Open Magician
  2. Go to the secure erase section
  3. Start the secure erase


  4. All done, that was easy right?
  5. Open disk management to format and assign a letter to your drive

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
Sponsored Links
Advertisement
 
post #3 of 222 (permalink) Old 03-11-2012, 10:02 AM - Thread Starter
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)
Quote:
Originally Posted by munaim1 View Post

Sean does it again!!!! tongue.gif +rep bud

Excellent work!!!

haha, thanks. I'm putting a bunch of guides up today. biggrin.gif

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
Sponsored Links
Advertisement
 
post #4 of 222 (permalink) Old 03-11-2012, 10:03 AM
New to Overclock.net
 
Emmanuel's Avatar
 
Join Date: Jan 2006
Location: Chicago
Posts: 6,707
Rep: 385 (Unique: 316)
Parted Magic is really great, I've used it on my M4s multiple times and it works flawlessly.

2nd Amendment supporter
Emmanuel is offline  
post #5 of 222 (permalink) Old 03-13-2012, 12:46 PM
New to Overclock.net
 
saiyanzzrage's Avatar
 
Join Date: May 2005
Location: Long Island/NYC
Posts: 2,322
Rep: 56 (Unique: 44)
probably a really dumb question, but this wipes your drive clean and you need to restore from an image after, right?



“I am what was, what is, what will be — the black angel, Chaos-Bringer! I AM POWER!” Dark Phoenix, Uncanny X-Men #136
saiyanzzrage is offline  
post #6 of 222 (permalink) Old 03-13-2012, 12:53 PM - Thread Starter
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)
Quote:
Originally Posted by saiyanzzrage View Post

probably a really dumb question, but this wipes your drive clean and you need to restore from an image after, right?

Correct.

I will add that it does that exactly b/c I was just wondering if someone would ask that question lol.

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
post #7 of 222 (permalink) Old 03-13-2012, 12:56 PM
New to Overclock.net
 
saiyanzzrage's Avatar
 
Join Date: May 2005
Location: Long Island/NYC
Posts: 2,322
Rep: 56 (Unique: 44)
Quote:
Originally Posted by Sean Webster View Post

Correct.
I will add that it does that exactly b/c I was just wondering if someone would ask that question lol.

hah, thanks..i assumed it was the case, but since it never actually said it anywhere, I wanted to make sure

the stock windows 7 imaging program with the boot disk works for the restore, right?


“I am what was, what is, what will be — the black angel, Chaos-Bringer! I AM POWER!” Dark Phoenix, Uncanny X-Men #136
saiyanzzrage is offline  
post #8 of 222 (permalink) Old 03-13-2012, 01:01 PM - Thread Starter
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)
Quote:
Originally Posted by saiyanzzrage View Post

Quote:
Originally Posted by Sean Webster View Post

Correct.
I will add that it does that exactly b/c I was just wondering if someone would ask that question lol.

hah, thanks..i assumed it was the case, but since it never actually said it anywhere, I wanted to make sure

the stock windows 7 imaging program with the boot disk works for the restore, right?

Yep works fine.

I however like using easeus todo backup now.
https://www.overclock.net/t/1227835/how-to-disk-and-partition-cloning-backup-restoration-migration

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
post #9 of 222 (permalink) Old 03-14-2012, 06:49 AM
New to Overclock.net
 
saiyanzzrage's Avatar
 
Join Date: May 2005
Location: Long Island/NYC
Posts: 2,322
Rep: 56 (Unique: 44)
Quote:
Originally Posted by Sean Webster View Post

Yep works fine.
I however like using easeus todo backup now.
https://www.overclock.net/t/1227835/how-to-disk-and-partition-cloning-backup-restoration-migration

Thanks so much for this guide, I just did it last night on my c300 without a hitch!
I also used you windows ssd tweak guide when I did my fresh install...thanks so much for all these guides, you are truly an asset to the community thumb.gif


“I am what was, what is, what will be — the black angel, Chaos-Bringer! I AM POWER!” Dark Phoenix, Uncanny X-Men #136
saiyanzzrage is offline  
post #10 of 222 (permalink) Old 03-14-2012, 07:38 AM - Thread Starter
Storage Nut
 
Sean Webster's Avatar
 
Join Date: Nov 2010
Location: Boca Raton, FL
Posts: 21,076
Rep: 1660 (Unique: 967)
No problem. If you have any requests to I'll try to make a guide for almost whatever question you like. lol biggrin.gif

I AM THE SSD BENCHMARK GURU
Storage Essentials | My Build Logs | My Server Build Log | flickr | Steam | Depression and I
Some say he once took a backup of the entire NSA database. Others say he lays SSDs like chickens lay eggs. All we know is, it's Sean Webster!
Le Main Rig
(15 items)
Terrorbyte V2
(16 items)
Test Bench
(8 items)
CPU
i7-6700K
Motherboard
ASRock Z170 OC Formula
GPU
Gigabyte GTX 960 WindForce 2X OC
RAM
G.SKILL Ripjaws V
Hard Drive
480GB ADATA SX8200
Hard Drive
1TB Samsung 960 EVO
Hard Drive
2TB HP EX950
Power Supply
Corsair RM650
Cooling
Noctua NH-U12S
Case
Fractal Design R5
Operating System
Windows 10 Pro 64-Bit
Monitor
BenQ GW2765HT
Monitor
BenQ GW2765HT
Keyboard
Patriot Viper V760
Mouse
Patriot Viper V560
CPU
Intel i7 4790K
Motherboard
ASUS Maximux IV Extreme
RAM
Corsair Vengeance Pro
Hard Drive
128GB Samsung 830
Hard Drive
480GB SanDisk Extreme II
Hard Drive
2TB WD Red
Hard Drive
2TB Samung Spinpoint F4
Hard Drive
2TB Hitachi Deskstar 7K3000
Hard Drive
1TB Samsung Spinpoint F3
Hard Drive
3TB Toshiba DT01ACA300
Hard Drive
Seagate Barracuda 7200.14
Power Supply
Corsair 650TX
Case
Norco RPC 4224
Operating System
Windows 10 Pro
Other
LSI 9261-8i
Other
Intel RES2CV240
CPU
i5-4670k
Motherboard
Asrock Z97 Extreme6
RAM
32GB Kingston HyperX Beast 2400MHz
Hard Drive
128GB Samsung 850 Pro
Power Supply
850W Be Quiet! Dark Power Pro 10
Cooling
Thermaltake Water 3.0 Ultimate
Case
Thermaltake Urban T81
Operating System
Windows 8.1 Pro
▲ hide details ▲


Sean Webster is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off