LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-28-2023, 12:17 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
How to completely erase an ssd drive?


I have an old laptop. Using rsync, I back up everything I have that is important to me from my current laptop to my old laptop. I use the old laptop like a usb stick.

This year I will leave China and go back to England. I won't take the old laptop with me, it's too old.

I want to completely erase the ssd, write zeroes over everything. I want to wipe out everything.

How can I do that?

Not that I have any great secrets, but as a matter of principle.

Last edited by Pedroski; 05-28-2023 at 03:25 AM.
 
Old 05-28-2023, 02:35 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
drill, fire (extreme heat), or electric shock. Or just a hammer. If I remember well you can use dd to fill it up with anything you want (dd if=/dev/zero, of=/dev/<your ssd>, or something similar should work).
look for answers on the net, like: https://www.makeuseof.com/tag/secure...ut-destroying/
or this: https://superuser.com/questions/1284...itioning-in-li

Last edited by pan64; 05-28-2023 at 02:39 AM.
 
1 members found this post helpful.
Old 05-28-2023, 03:06 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
SSD is not a hard-drive. Do not use any of the old solutions like dd. Maybe change the thread title.
Any sort of search should elicit plenty of appropriate answers specific to SSD secure erase.
 
1 members found this post helpful.
Old 05-28-2023, 03:27 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by syg00 View Post
Any sort of search should elicit plenty of appropriate answers specific to SSD secure erase.
On-topic answers, yes, but good answers, not so much.

I'd look at the steps recommended in the Arch wiki page for Solid state drive/Memory cell clearing. The Arch Wiki is more authoritative and better reviewed than most random (and probably wrong) web pages or articles on the subject of clearing SSDs.

In the future, if you can, "just" encrypt the drive or partition using LUKS and then the only step actually needed is to delete the key. Though that can be supplemented with additional measures to be sure.
 
Old 05-28-2023, 05:04 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Maybe just remove it & bring it with you instead(?).
 
1 members found this post helpful.
Old 05-28-2023, 05:39 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
This may sound a silly question, but:

An SSD is glorified Static ram. You can set each bit to 1 or to zero. I know there was residual magnetism held in spinning rust which I am told could be recovered or guessed, but devices don't have memory of past electrically charged state, or do they?
 
Old 05-28-2023, 07:44 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Code:
blkdiscard /dev/sd{X}
with a suitable letter substituted for {X}.
 
Old 05-28-2023, 01:26 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
So I was right - SSDs don't need fancy demagnetising, sledgehammers or anything. What's gone is gone.
 
Old 05-28-2023, 02:16 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
leaving China, they're actually letting you out?
 
Old 05-28-2023, 03:26 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by business_kid View Post
So I was right - SSDs don't need fancy demagnetising, sledgehammers or anything. What's gone is gone.
Except a simple delete may leave information available for recovery. You DO need to overwrite every single byte, but only ONCE. (And since writes age your SSD, that preserves more SSD life.)

Check the HDPARM man page, it has two options for secure-erase an SSD drive. Verify that your device is compatible, as this CAN be risky and not all devices comply.

The SURE safe way to secure blank your device is to use the utility provided by the manufacturer.

Last edited by wpeckham; 05-28-2023 at 03:56 PM.
 
Old 05-28-2023, 04:42 PM   #11
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by business_kid View Post
So I was right - SSDs don't need fancy demagnetising, sledgehammers or anything.
Ah, come on! Sledgehammers are so much more fun!
 
Old 05-28-2023, 05:52 PM   #12
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks for the advice! I probably won't invest in a sledgehammer though!

@BW-userx:

Quote:
leaving China, they're actually letting you out?
Those are crocodile tears they are crying! They will be glad to get rid of me!

I will miss the noodles though! Luckily, I studied and taught myself how to make 拉面 lāmiàn, hand-pulled noodles! It is quite an art form!
 
Old 05-28-2023, 05:56 PM   #13
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
A question: if I erase the ssd in situ, won't the programme doing the erasing erase itself and then crash?

Or the eraser is runs in RAM?

I was thinking of taking the ssd out, putting it in and external housing and then deleting.
 
Old 05-29-2023, 12:05 AM   #14
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by Pedroski View Post
A question: if I erase the ssd in situ, won't the programme doing the erasing erase itself and then crash?
Yes, but generally you'd run it in RAM instead via a live session or live distro. Most distros' installers have a live mode. Any of the Linux Mint installers would suit your task, or you could get a specialized live distro like Finnix and use that.
 
Old 05-29-2023, 08:11 AM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
how to dod wipe a ssd

https://www.pcworld.com/article/4610...ard-drive.html

https://www.tomshardware.com/how-to/...-or-hard-drive

https://www.blancco.com/resources/bl...andard-method/

no i have not read any of these I just googled it
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to erase the hard disk completely - Dban doesn't work on ssd IanStewart Linux - Software 18 11-28-2020 12:16 AM
[SOLVED] Will the following dd command completely erase my hdd? hddfsck Linux - Newbie 11 09-10-2019 02:32 AM
How do I completely erase my computers RAM? cousinlucky Linux - Hardware 21 12-19-2014 04:57 PM
completely erase disk cursor just blinks when boot Rukiri Linux - Hardware 2 09-03-2012 12:41 PM
[SOLVED] Wanted: a lowlevel tool to erase data from harddisks completely. Sjonnie48 Linux - Hardware 4 03-10-2011 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration