2

If i deleted something from recycle bin, is it instantly gone when i have TRIM enabled? I deleted a file and i’d like to get it back but i don’t know if it’s even worth to try.

1 Answer 1

8

You will probably not be able to retrieve your data.

SSD TRIM instructs the SSD to wipe the actual blocks where data was situated on a delete command (instead of just marking them as empty). As such, your data is very likely permanently gone.

It doesn’t cost to try, of course, but the answer is likely no.

10
  • 3
    It is also entirely possible that the SSD controller will simply return a block full of zeroes or ones on a TRIM'ed block. Far faster to give null data when you've already been told the block is garbage...
    – Mokubai
    Commented Feb 22, 2021 at 9:51
  • 3
    I don't know about Linux, but macOS only TRIMs upon startup and Windows has its own schedule. I don't believe it's usual thing to send TRIM commands immediately after a file is deleted. Commented Feb 22, 2021 at 16:16
  • @At0mic AFAIK, Windows TRIMs both on a schedule and on-demand as files are deleted.
    – Joseph
    Commented Feb 22, 2021 at 16:25
  • @At0mic, it depends on the behaviour of the flash disk controller -- some perform erases synchronously and all other commands must wait until that is complete, while others can make a note in the log that the block has been freed, and will perform the actual erase at a moment when the command queue has been empty for a while, or only contains commands for another bank. Commented Feb 22, 2021 at 18:35
  • 1
    @Joshua: I think you meant "to not bother copying a page when recycling the containing block, which would be the way I understand the behavior.
    – supercat
    Commented Feb 22, 2021 at 20:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .