0

Today I was doing some tests with two SSDs — SanDisk SDSSDHII240G and Samsung SSD 830 Series — my question is how to safely delete SSDs so that no data can be recovered.

The first test was a quick format in Windows. After that I run two recovery programs, Recuva and Testdisk. None of the two tools were able to recover any files. Both SSDs were connected via USB adapter (Samsung SSD and SandDisk SSD).

I was surprised by that as usually with normal HDDs its possible to recover data. Does this mean, that a quick format of SSDs is enough to safely delete them?

enter image description here

enter image description here

enter image description here

enter image description here

The disks:

  • SanDisk SDSSDHII240G
  • Samsung SSD 830 Series

enter image description here

3
  • 1
    The answer may be dependent on the Make and Model of that specific SSD. Please add that info to your post.
    – Hannu
    Feb 28, 2021 at 18:31
  • Added the data!
    – DA.
    Feb 28, 2021 at 18:47
  • 1
    If you genuinely want to erase SSDs quickly without spending hours of time having the system erase data and you are unsure of the SSDs underlying capabilities as far as fast erase go, do this: Encrypt the disk. That’s that. And then when you want to erase it, just do a quick erase. The reason that will work is very simple: Full disk encryption is incredibly difficult — if not practically impossible — to recover. Simply encrypting the disk means that all the data is encrypted (of course) so if you did a quick erase, it’s all just encrypted strings and such. No easy way to recover that data. Feb 28, 2021 at 19:05

2 Answers 2

2

I would have expected that the standard tools for data recovery would work, when the drive was formatted with quick format.

For HDDs this would be mostly true as "quick format" only overwrites a few sectors and leaves the rest unchanged.

For SSDs, however, the format procedure usually sends TRIM (discard) commands for the entire partition, informing the SSD's wear-leveling system that those areas can be freely overwritten whenever new data comes in.

TRIM is mainly informative, but in most SSDs it will actually cause the disk's firmware to immediately unmap those sectors and start returning "zero" data when reading them. Even if the original data is still physically there on the flash memory, it is no longer mapped to the logical sectors anymore; the OS now sees an empty partition.

This means that only specialists who know how to bypass the disk's firmware might have a chance at the data... but I suspect that even then, they won't know which flash memory areas used to correspond to which logical sectors, as the OS told the SSD to throw that metadata away.

However, I wouldn't trust this as a "secure" method. This behavior is something specific to SSDs, and then not all SSDs (it's up to the manufacturer to decide how they implement TRIM), and finally not all format tools. (Formatting (i.e. creating a new filesystem) does not require the OS to issue a discard – it only does so as an optimization.) There might be SATA drivers which don't support TRIM, or USB adapters which pretend to support it but don't pass it through, or SSDs which still continue to return the original data for a short while.

You should use a tool which sends the actual "secure erase" commands that are part of the ATA and NVMe standards – it should be equally as fast if it works by throwing away the encryption key.

3
  • Thanks for the information, basically this means, that a quick format would be a "safe erase" for most scenarios, but you cannot be sure about that.
    – DA.
    Feb 28, 2021 at 19:08
  • 1
    It's something specific to SSDs, and then not all SSDs, and finally not all format tools. (Formatting (i.e. creating a new filesystem) does not require the OS to issue a discard – it only does so as an optimization, same as any other TRIM usage.) There might be drivers which don't support TRIM, or USB adapters which pretend to support it but don't pass it through, or SSDs which still continue to return the original data for a short while.
    – user1686
    Feb 28, 2021 at 19:10
  • 2
    So if you use this method and then test afterwards (ideally by skimming through with a hex editor, not only with a file recovery tool) to verify that the disk now shows up as empty, then you're probably okay against common scenarios... but it's not a security feature in itself.
    – user1686
    Feb 28, 2021 at 19:13
0

No, a quick format is not enough to prevent data from being recovered. Just because a recovery program cannot recover the data, that doesnt mean the data is not recoverable. Unless properly overwritten, some or even all, of the data is still on the drive. Additionally, with wear leveling and overprovisioning, it is possible even writing over the "whole" disk is will still leave data. You will need to download the proper disk management/wiping tool from the manufacturer to truly wipe all the data on a SSD.

7
  • Thanks for the answer, however this would mean, that you have to use special tools and data recovery methods in order to get the data. I would have expected that the standard tools for data recovery would work, when the drive was formatted with quick format.
    – DA.
    Feb 28, 2021 at 18:48
  • @DA. the standard tools might still work. Just because they couldnt do a recovery does NOT mean the data isnt recoverable.
    – Keltari
    Feb 28, 2021 at 20:57
  • You have never heard of TRIM I suppose. This answer is not correct. Jan 27 at 16:06
  • @JoepvanSteen No, the answer is absolutely correct. I highly suggest you do some research on TRIM.
    – Keltari
    Jan 27 at 16:10
  • You haven't got a clue. Effect of TRIM has nothing to do with "writing over the "whole" disk". That's a layman understanding of TRIM which is incorrect. The other answer is far more correct and closer to the truth. Jan 27 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.