Re: Data Recovery from SSDs - Impact of trim?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg, 

The short answer is "it's dependent on the manufacturer's implementation".
 
The technical details are as follows.
 
SSD translates the LBA from host into the physical address (flash block/page)
using the mapping table which acts like the metadata of filesystem.
For the recovery to work, both the mapping table of the original data _and_
the physical data should be available.
 
The trim command can invalidate the mapping only _or_ the mapping and 
the physical data as well. This is manufacturer-specific or sometimes
requested as spec (ex. enterprise notebook where security is important).
>From the perspective of host, the trimmed are can be seen as (1) original data
(2) all zero or 0xff (3) indeterminate.

There are following discussion and proposal about the behavior of trim at T13.
(named "deterministic read after trim")

http://www.t10.org/ftp/t10/document.08/08-347r1.pdf
http://www.t13.org/Documents/UploadedDocuments/docs2008/e08137r2-DRAT_-_Deterministic_Read_After_Trim.pdf

However, this spec also does not meet your expectation because it does not
guarantee the safety of the original data.

Regards,
Dongjun

------- Original Message -------
Sender : Greg Freemyer<greg.freemyer@xxxxxxxxxxxxxxxxx>
Date   : 2009-01-10 07:27 (GMT+09:00)
Title  : Data Recovery from SSDs - Impact of trim?

Dongjun (with linux-ide in copy),

I got your name from a Linux Kernel posting and I was wondering if you
could help me understand if data recovery will be possible with SSDs
in the future.

I work a lot with data recovery and forensic imaging.  With both,
access to what the filesystem considers unallocated sectors / blocks /
clusters is key to the process.  ie. A user deletes a file, but needs
to restore it. Lots of recovery tools exist to assist in this, but
obviously they need to be able to read the no longer allocated
clusters.

With a DISCARD enabled filesystem / kernel and with both current and
future generation SSDs, I&#39;m curious if our tools are going to be able
to read this information anymore.

Per the proposed spec Tejun posted a link to a couple months ago, the
response to a ATA read request of a trimmed sector can either be the
original data or all zeros.

http://t13.org/Documents/UploadedDocuments/docs2007/e07154r3-Data_Set_Management_Proposal_for_ATA-ACS2.pdf

>From my industries perspective we would very much like the original
data to be returned as long as it is available.

Can you provide any insight into how the manufacturers are planning to
implement such reads?

Thanks
Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99&#37;20Days&#37;20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þ'^þ)í…æèw*jg¬±¨¶‰šŽŠÝ¢jÿ¾«þG«?éÿ¢¸¢·¦j:+v‰¨ŠwèjØm¶Ÿÿþø¯ù®w¥þŠàþf£¢·hš?â?úÿ†Ù¥


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux