Page 1 of 1

Automated Undelete

Posted: 18 Jun 2015, 14:52
by patrickdalla
Hello,

I want to make a script to automatically undelete all the files marked as deleted on any type of file systems on all the partitions of a block device into a specified destination folder, if possible, reconstructing the complete path.

Is it possible with testdisk?

Re: Automated Undelete

Posted: 24 Jun 2015, 08:41
by cgrenier
Using latest 7.1-WIP, to recover all deleted files from the first partition from the image file 7-ntfs-undel.dd, run

Code: Select all

testdisk /cmd 7-ntfs-undel.dd advanced,undelete,allundelete
It works for NTFS partition only.
See http://www.cgsecurity.org/wiki/Scripted_run for how to script TestDisk.

TestDisk can also undeletes files from FAT12/16/32, exFAT, ext2 filesystem but the code to script it is currently missing.