linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Data Recovery from SSDs - Impact of trim?
@ 2009-01-12  0:21 Dongjun Shin
  2009-01-21 15:56 ` Greg Freemyer
  0 siblings, 1 reply; 4+ messages in thread
From: Dongjun Shin @ 2009-01-12  0:21 UTC (permalink / raw)
  To: Greg Freemyer; +Cc: ???, IDE/ATA development list

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@norcrossgroup.com>
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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Data Recovery from SSDs - Impact of trim?
@ 2009-01-09 22:27 Greg Freemyer
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Freemyer @ 2009-01-09 22:27 UTC (permalink / raw)
  To: Dongjun Shin, IDE/ATA development list

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'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%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-22 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12  0:21 Data Recovery from SSDs - Impact of trim? Dongjun Shin
2009-01-21 15:56 ` Greg Freemyer
2009-01-22 23:40   ` Dongjun Shin
  -- strict thread matches above, loose matches on Subject: below --
2009-01-09 22:27 Greg Freemyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).