#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):
Since a destructive test is the last thing that I would to do (well, if
necessary, since I want to be sure that fstrim really works for me, I will
do it: please explain me - step to step - how to with dd, clear a section
of the partition with all 0xE5 and where looks).
So I've tried another test, also if I'm not sure if is really reliable.
On Haiku partition I have a zip file for the mame emulator: such file is
called cheat.dat: it contains some lines of text description, like "this
is the cheat file. For more info visit the site www.mame.co.uk", plus more
entries.
When i probe the Haiku partition (/dev/disk/scsi/0/0/0/1) with diskprobe
and I look to the block 0xc8b7e6, in facts I can see the text content of
such cheat.dat file.
Then I deleted the cheat.dat file, run sync and then fstrim (which trimmed
24458731520 bytes) and I analyzed again the /dev/disk/scsi/0/0/0/1
partition.
At block 0xc8b7e6 there still was the content of the cheat.dat file.
I've done a reliable or an useless test? Please forgive me, but I'm not
very expert.
--
Ticket URL: <https://dev.haiku-os.org/ticket/10336#comment:36>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.