100
submitted 1 month ago by [email protected] to c/[email protected]

I understand traditional methods don’t work with modern SSD, anyone knows any good way to do it?

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 42 points 1 month ago

A special feature known as SSD secure erase. The easiest OS-independent way is probably via CMOS setup – modern BIOSes can send secure erase to NVM Express SSDs and possibly SATA SSDs.

[-] [email protected] 5 points 1 month ago

Did this already, it took 1 second for a 2TB drive. Would you trust that?

[-] [email protected] 18 points 1 month ago* (last edited 1 month ago)

Most SSD/flash secure erase methods involve the storage having full disk encryption enabled, and simply destroying the encryption key. Without the encryption key the data can't be deciphered even with the correct password, as the password was only used to encrypt the encryption key itself. This is why you can "factory reset" an iPhone or Android in seconds.

[-] [email protected] 17 points 1 month ago

It is the only approved method for data destruction for the several banks and government agencies I support. If they trust it, I trust it.

I have checked a couple of times out of curiosity, after a secure erase the drive is as clean as if it had been DBANed. Sometimes things are standards because they work properly.

[-] [email protected] 7 points 1 month ago* (last edited 1 month ago)

Secure Erase usually works by encrypting all data before writing it to disk, using a key stored in a special area on the SSD. Reading and writing to the drive is transparent, the OS doesn't notice any encryption, but on a hardware level the data isn't plainly readable.

When you issue an erase command, the SSD throws out the old key and generates a new one. All data on the drive instantly becomes unreadable garbage.

I say usually, because not all SSDs work that way. I wouldn't trust Secure Erase on some crappy TEMU/Wish/Aliexpress SSD. Some drives will instead drain every cell, effectively erasing the contents in one single operation. As long as reserve space and relocated memory gets wiped as well (it should, if this is done at the hardware level), this is also perfectly safe.

Encryption also protects data against the types of duplication and relocation an SSD will do by itself to balance write+erase cycles across the SSD's cells. If you were to try to overwrite the SSD, a significant chunk of old cells would still contain data, because the OS doesn't get access to the raw flash storage.

With encryption, it doesn't really matter how many bytes are still present on the drive, because unless someone cracked open the SSD and extracted the key before, there's no making sense of any of that data.

If you don't trust your SSD's encryption, you can use the same practice to protect your files: before you store any interesting files on it, enable disk encryption and use a TPM or VERY strong password for the encryption key (you may need to disable uploading a recovery key to the cloud depending on your OS for maximum security). Taken out of your PC, without some key backup in hand, the drive is completely unreadable and can be resold without worry. This also comes with the downside that if your PC breaks and your key is lost, you won't be able to get to the data, of course.

[-] [email protected] 2 points 1 month ago

Thanks for this informative answer. Then it would make sense that it took only 1 second, then again, I have a modern Asus motherboard (AM5) with a Western Digital NVMe drive, and that drive isn't listed as Secure Erase compatible on Asus motherboard. I will download the WD dashboard and do it that way, I didn't know it existed before I posted this question.

[-] [email protected] 3 points 1 month ago

SSD erasure is a standard(ish) command. It's best not to assume it works if there's no tested compatibility, but I also wouldn't expect it not to work, unless you notice that the data on the drive still exists (i.e. you boot the machine and there's already a partition on there).

There are actually two types of erase commands for NVMe drives ("cryptographic erase" for the encryption method I mentioned, and "block erase" for actually wiping all cells). There's a command for "user data erase" that lets the SSD decide which of the two options to use, which I assume most tools will do.

I didn't know WD had a tool, that's probably your best bet! While you're at it, also check for firmware updates, it may just help the next owner enjoy the drive for a while longer if you've got a buggy SSD that you didn't know about.

[-] [email protected] 6 points 1 month ago

Yes. SSDs are different from HDDs.

load more comments (2 replies)
this post was submitted on 27 Apr 2024
100 points (96.3% liked)

Asklemmy

42190 readers
2418 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS