Author Topic: SSD Secure Erase  (Read 2876 times)

0 Members and 1 Guest are viewing this topic.

Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
SSD Secure Erase
« on: Sat, 25 May 2019, 20:48:26 »
Make sure y'all run it every ~30-50 Terabyte (writes).


Just ran it on my cheapo SSD after 78 TB,   It's sooo much faster now.

Before it was crawling at 100MB/s linear , now back to 600MB/s


Restored to factory fresh performance








Offline SpAmRaY

  • NOT a Moderator
  • * Certified Spammer
  • Posts: 14667
  • Location: ¯\(°_o)/¯
  • because reasons.......
Re: SSD Secure Erase
« Reply #1 on: Sat, 25 May 2019, 21:52:45 »
What does it do to overall lifespan?? Any degradation in that regard??

Sent from my SM-G930V using Tapatalk


Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: SSD Secure Erase
« Reply #2 on: Sat, 25 May 2019, 22:15:29 »
What does it do to overall lifespan?? Any degradation in that regard??


it uses 1 full program/erase cycle,  but this isn't a weekly thing, so there won't be any meaning reduction in total lifespan.

The other kewl thing is it only takes less than a minute, full disk refresh.


Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #3 on: Sun, 26 May 2019, 06:31:11 »
translation: dd if=/dev/zero of=/dev/sdXXX bs=1M

Offline Leslieann

  • * Elevated Elder
  • Posts: 4519
Re: SSD Secure Erase
« Reply #4 on: Sun, 26 May 2019, 06:31:28 »
Unless your drive and/or os lacks or has terrible trim/gargage collection you shouldn't need to do that.

Win7 did not have trim on by default (has to be done with command prompt), 8 does or will if an ssd is detected, same for win10. XP relies entirely on the drive to do it and early ssds did not have it at all. I would say most newer SSDs should do it automatically as well, however the market has been hit by some pretty crappy ssds lately so they may not.


With as much torrenting data shuffling as TP does, I can imagine he just overloads it.
Novelkeys NK65AE w/62g Zilents/39g springs
More
62g Zilents/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 magnetic cable, pic
| Filco MJ2 L.E. Vortex Case, Jailhouse Blues, heavily customized
More
Vortex case squared up/blasted finish removed/custom feet/paint/winkey blockoff plate, HID Liberator, stainless steel universal plate, 3d printed adapters, Type C, Netdot Gen10 magnetic cable, foam sound dampened, HK Gaming Thick PBT caps (o-ringed), Cherry Jailhouse Blues w/lubed/clipped Cherry light springs, 40g actuation
| GMMK TKL
More
w/ Kailh Purple Pros/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 Magnetic cable
| PF65 3d printed 65% w/LCD and hot swap
More
Box Jades, Interchangeable trim, mini lcd, QMK, underglow, HK Gaming Thick PBT caps, O-rings, Netdot Gen10 magnetic cable, in progress link
| Magicforce 68
More
MF68 pcb, Outemu Blues, in progress
| YMDK75 Jail Housed Gateron Blues
More
J-spacers, YMDK Thick PBT, O-rings, SIP sockets
| KBT Race S L.E.
More
Ergo Clears, custom WASD caps
| Das Pro
More
Costar model with browns
| GH60
More
Cherry Blacks, custom 3d printed case
| Logitech Illumininated | IBM Model M (x2)
Definitive Omron Guide. | 3d printed Keyboard FAQ/Discussion

Offline Leslieann

  • * Elevated Elder
  • Posts: 4519
Re: SSD Secure Erase
« Reply #5 on: Sun, 26 May 2019, 06:37:37 »
translation: dd if=/dev/zero of=/dev/sdXXX bs=1M

Do not do this!
Same for trying to defrag an ssd.

The trim/garbage collection system in an SSD can cause it to just keep formatting (or moving if defragged) the same cells over and over until it reaches the same wear level as the others, then slowly expands until all cells have the same wear level. It's a great way to use a ton of write cycles and destroy an ssd. Most major ssd manufacturers offer tools specifically designed for the job for this very reason.
Novelkeys NK65AE w/62g Zilents/39g springs
More
62g Zilents/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 magnetic cable, pic
| Filco MJ2 L.E. Vortex Case, Jailhouse Blues, heavily customized
More
Vortex case squared up/blasted finish removed/custom feet/paint/winkey blockoff plate, HID Liberator, stainless steel universal plate, 3d printed adapters, Type C, Netdot Gen10 magnetic cable, foam sound dampened, HK Gaming Thick PBT caps (o-ringed), Cherry Jailhouse Blues w/lubed/clipped Cherry light springs, 40g actuation
| GMMK TKL
More
w/ Kailh Purple Pros/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 Magnetic cable
| PF65 3d printed 65% w/LCD and hot swap
More
Box Jades, Interchangeable trim, mini lcd, QMK, underglow, HK Gaming Thick PBT caps, O-rings, Netdot Gen10 magnetic cable, in progress link
| Magicforce 68
More
MF68 pcb, Outemu Blues, in progress
| YMDK75 Jail Housed Gateron Blues
More
J-spacers, YMDK Thick PBT, O-rings, SIP sockets
| KBT Race S L.E.
More
Ergo Clears, custom WASD caps
| Das Pro
More
Costar model with browns
| GH60
More
Cherry Blacks, custom 3d printed case
| Logitech Illumininated | IBM Model M (x2)
Definitive Omron Guide. | 3d printed Keyboard FAQ/Discussion

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #6 on: Sun, 26 May 2019, 06:48:40 »
translation: dd if=/dev/zero of=/dev/sdXXX bs=1M

Do not do this!
Same for trying to defrag an ssd.

The trim/garbage collection system in an SSD can cause it to just keep formatting (or moving if defragged) the same cells over and over until it reaches the same wear level as the others, then slowly expands until all cells have the same wear level. It's a great way to use a ton of write cycles and destroy an ssd. Most major ssd manufacturers offer tools specifically designed for the job for this very reason.

Don't flip all the bits to 0?  So don't reformat either?  I run a cron job once a week for trimming, so maybe my use case is a bit different from folks that have trim on full tilt.

edit - Whoops, not a cron job.  I enabled fstrim.service and fstrim.timer for periodic trimming because my system did not perform well with continuous trim (discard).
https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIM

My limited understanding tells me that if the person was to un-mount the drive FIRST they would also turn off any of the mount options like discard.

I actually had to look up secure erase and this is what led me to believe that it's as simple as that dd command I posted earlier (sans un-mount).
https://www.cnet.com/how-to/how-to-securely-erase-an-ssd-drive/ (pic with window title: Disk Erasing 101)
« Last Edit: Sun, 26 May 2019, 07:36:43 by csmertx »

Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: SSD Secure Erase
« Reply #7 on: Sun, 26 May 2019, 07:56:15 »
trim and GC are not the same as Secure Erase. 

Secure erase is the only thing that can fix the speed degradation Tp4 were seeing.

Even if you guys don't data-shuffle, it's still prudent to do SErase every ~30-50TB writes.

Offline fanpeople

  • Posts: 970
Re: SSD Secure Erase
« Reply #8 on: Sun, 26 May 2019, 08:06:25 »
The only true secure erase is completed with a hammer. Send me your drives and I will "trim" them for you.

Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: SSD Secure Erase
« Reply #9 on: Sun, 26 May 2019, 08:09:31 »
The only true secure erase is completed with a hammer. Send me your drives and I will "trim" them for you.

NSA research proj BMH#432 , Silicon Shards Restoration.

Offline fanpeople

  • Posts: 970
Re: SSD Secure Erase
« Reply #10 on: Sun, 26 May 2019, 08:12:12 »
The only true secure erase is completed with a hammer. Send me your drives and I will "trim" them for you.

NSA research proj BMH#432 , Silicon Shards Restoration.

They can't restore the shards if i put them in my skin pocket for safe keeping

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #11 on: Sun, 26 May 2019, 08:13:20 »
Ok, in your world what does Secure Erase ACTUALLY mean?  What is in fact Secure Erase?

GC probably stands for something obvious (galactic commander?) but OFC trim has nothing to do with erasing the data on an SSD.. dang

I think the point was brought up because if continuous trim is active on a *nix SSD and not un-mounted before zeroing out the data disastrous things could happen

Read somewhere that the FBI recommends zeroing out the drive 10-20 times for data shredding.  Never had the need but there it is I guess.

Offline fohat.digs

  • * Elevated Elder
  • Posts: 6467
  • Location: 35°55'N, 83°53'W
  • weird funny old guy
Re: SSD Secure Erase
« Reply #12 on: Sun, 26 May 2019, 08:54:25 »

The only true secure erase is completed with a hammer.


It's a shame that SSDs don't have those great magnets inside like real Hard Disk Drives. I need to get out my T10 and strip a few more that I have laying around.
"The Trump campaign announced in a letter that Republican candidates and committees are now expected to pay “a minimum of 5% of all fundraising solicitations to Trump National Committee JFC” for using his “name, image, and likeness in fundraising solicitations.”
“Any split that is higher than 5%,” the letter states, “will be seen favorably by the RNC and President Trump's campaign and is routinely reported to the highest levels of leadership within both organizations.”"

Offline Coreda

  • Posts: 776
Re: SSD Secure Erase
« Reply #13 on: Sun, 26 May 2019, 09:05:49 »
Sure you don't have an Samsung EVO 840? As this is precisely the kind of issue that affected that line, where data that was written a while ago and not re-written would suffer from slower reads (sometimes HDD levels of slowness). They issued a firmware fix late in its life, though I have no experience with the fix.

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #14 on: Sun, 26 May 2019, 09:34:33 »

The only true secure erase is completed with a hammer.


It's a shame that SSDs don't have those great magnets inside like real Hard Disk Drives. I need to get out my T10 and strip a few more that I have laying around.

In a pinch I'd image the platters would make for decent signaling mirrors too

Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: SSD Secure Erase
« Reply #15 on: Sun, 26 May 2019, 09:41:22 »
Sure you don't have an Samsung EVO 840? As this is precisely the kind of issue that affected that line, where data that was written a while ago and not re-written would suffer from slower reads (sometimes HDD levels of slowness). They issued a firmware fix late in its life, though I have no experience with the fix.


Are you implying Tp4 is unaware of the ssd he's using, or of the 840 evo voltage degradation problem ?


Offline Coreda

  • Posts: 776
Re: SSD Secure Erase
« Reply #16 on: Sun, 26 May 2019, 10:58:04 »
Are you implying Tp4 is unaware of the ssd he's using, or of the 840 evo voltage degradation problem ?

Well, you didn't mention the model just that it was cheap (suggesting either it's not one of the typical brands or it's an older model bought inexpensively) so worth a shot.

Offline p_blaze

  • Posts: 449
Re: SSD Secure Erase
« Reply #17 on: Sun, 26 May 2019, 16:29:53 »
Sure you don't have an Samsung EVO 840? As this is precisely the kind of issue that affected that line, where data that was written a while ago and not re-written would suffer from slower reads (sometimes HDD levels of slowness). They issued a firmware fix late in its life, though I have no experience with the fix.


Are you implying Tp4 is unaware of the ssd he's using, or of the 840 evo voltage degradation problem ?


nice meme tp

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #18 on: Sun, 26 May 2019, 16:36:27 »
Sure you don't have an Samsung EVO 840? As this is precisely the kind of issue that affected that line, where data that was written a while ago and not re-written would suffer from slower reads (sometimes HDD levels of slowness). They issued a firmware fix late in its life, though I have no experience with the fix.


Are you implying Tp4 is unaware of the ssd he's using, or of the 840 evo voltage degradation problem ?


nice meme tp

First impression says that that anime is about middle school... because that sounds like middle school..

Offline tp4tissue

  • * Destiny Supporter
  • Thread Starter
  • Posts: 13565
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: SSD Secure Erase
« Reply #19 on: Sun, 26 May 2019, 16:53:10 »

First impression says that that anime is about middle school... because that sounds like middle school..

I've never seen that anime,  merely linked to illustrate the classic Ohohoho faux-demure response

Offline Leslieann

  • * Elevated Elder
  • Posts: 4519
Re: SSD Secure Erase
« Reply #20 on: Sun, 26 May 2019, 17:45:26 »
Don't flip all the bits to 0?  So don't reformat either?  I run a cron job once a week for trimming, so maybe my use case is a bit different from folks that have trim on full tilt.
A quick format (which resets the table) should be all you need.

Even if it doesn't trigger trim, it still shouldn't be necessary.
Part of the problem you run into is that trim is built into many drives now, so even if you disable it in the OS the drive still does it.
Novelkeys NK65AE w/62g Zilents/39g springs
More
62g Zilents/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 magnetic cable, pic
| Filco MJ2 L.E. Vortex Case, Jailhouse Blues, heavily customized
More
Vortex case squared up/blasted finish removed/custom feet/paint/winkey blockoff plate, HID Liberator, stainless steel universal plate, 3d printed adapters, Type C, Netdot Gen10 magnetic cable, foam sound dampened, HK Gaming Thick PBT caps (o-ringed), Cherry Jailhouse Blues w/lubed/clipped Cherry light springs, 40g actuation
| GMMK TKL
More
w/ Kailh Purple Pros/lubed/Novelkeys 39g springs, HK Gaming Thick PBT caps, Netdot Gen10 Magnetic cable
| PF65 3d printed 65% w/LCD and hot swap
More
Box Jades, Interchangeable trim, mini lcd, QMK, underglow, HK Gaming Thick PBT caps, O-rings, Netdot Gen10 magnetic cable, in progress link
| Magicforce 68
More
MF68 pcb, Outemu Blues, in progress
| YMDK75 Jail Housed Gateron Blues
More
J-spacers, YMDK Thick PBT, O-rings, SIP sockets
| KBT Race S L.E.
More
Ergo Clears, custom WASD caps
| Das Pro
More
Costar model with browns
| GH60
More
Cherry Blacks, custom 3d printed case
| Logitech Illumininated | IBM Model M (x2)
Definitive Omron Guide. | 3d printed Keyboard FAQ/Discussion

Offline xtrafrood

  • formerly csmertx
  • * Elevated Elder
  • Posts: 2715
  • Location: Gainesville, FL
  • wildling
Re: SSD Secure Erase
« Reply #21 on: Sun, 26 May 2019, 18:16:15 »
Don't flip all the bits to 0?  So don't reformat either?  I run a cron job once a week for trimming, so maybe my use case is a bit different from folks that have trim on full tilt.
A quick format (which resets the table) should be all you need.

Even if it doesn't trigger trim, it still shouldn't be necessary.
Part of the problem you run into is that trim is built into many drives now, so even if you disable it in the OS the drive still does it.

I create a new partition table with gparted if I need a fresh drive. 

Read up on new nand flash controllers a bit more I will.

Good for help make VM go fast is all I know atm.