ecryptfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* File recovery via testdisk / photorec
@ 2016-02-11 21:15 tmg
  0 siblings, 0 replies; only message in thread
From: tmg @ 2016-02-11 21:15 UTC (permalink / raw)
  To: ecryptfs

Dear developers and users,

I've searched a lot around the web, but didn't find any satisfying answer.
Consider the following situation:

- You have your home directory /home/<user> encrypted with ecryptfs
- You know your passphrase, that is, no trouble to decrypt the directory

Question: How do you recover deleted files from the mounted (decrypted) home 
or the ecryptfs container?

All the ecryptfs recover strategies I've read so far were like
- use a livecd
- go and fire ecryptfs-recover-private, and mount your home readonly
- copy your files to a save place

But what about files that I can't regularly copy, because they are deleted?

If it was an unencrypted ext4, I would do (using ubuntu)
$ dd if=/dev/sda of=/media/user/sda.img
$ testdisk /media/user/sda.img

Can we run testdisk on the .ecryptfs container, or even the mounted home?


Thank you for any suggestion and best regards,

TMG

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-11 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 21:15 File recovery via testdisk / photorec tmg

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).