#10336: TRIM / fstrim can destroy data on SSD's when executed
----------------------------+----------------------------
Reporter: kallisti5 | Owner: axeld
Type: bug | Status: in-progress
Priority: blocker | Milestone: R1/beta1
Component: Drivers/Disk | Version: R1/Development
Resolution: | Keywords: TRIM fstrim
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------+----------------------------
Comment (by Giova84):
I've done the "ultimate" test: first of all I backup all my data on
another partition (BeFS) on another disk.
Then I booted Haiku live CD (hrev51346 gcc2h) and there I opened DiskProbe
to probe the SSD Haiku's partition, and the block (0xc8b7e6) still showed
the content of the file file which I deleted. Then I run again fstrim on
the SSD partition (still from the live cd) and I triggered again the same
KDL; I rebooted in the live cd and before to run again fstrim, I run the
sync command: so fstrim did the job (4749070336 bytes in 15 seconds). I
rebooted again in the live cd and checked again the SSD partition with
DiskProbe: the block 0xc8b7e6 still had the content of deleted file.
Then I deleted and made from scratch the BeFS partition on the SSD: i
rebooted again the live cd, checked again the SSD partition with DiskProbe
and block 0xc8b7e6 still contained the content of my previous
installation: after a deep check also all the content of my text files
were still present on the empty disk despite various fstrim.
--
Ticket URL: <https://dev.haiku-os.org/ticket/10336#comment:44>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.