Page 1 of 1

TestDisk & PhotoRec

Posted: Wed 15 Apr 2015, 03:35
by bigpup
TestDisk & PhotoRec
http://www.cgsecurity.org/wiki/Main_Page
- PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks, CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. PhotoRec ignores the file system and goes after the underlying data, so it will still work even if your media's file system has been severely damaged or reformatted.

If you have lost partition or strange problem with your hard disk partitions, run TestDisk to recover your data. TestDisk detects numerous filesystem including NTFS, FAT12, FAT16, FAT32, exFAT, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
TestDisk & PhotoRec are portable applications, extract the files and the applications are ready to be used. No need to run an installer.

They will need to be run in a terminal.

The downloaded package will be testdisk-7.0-WIP.linux26.tar.bz2 that has both programs in it.
Open with Xarchive, select all, and select extract.
This will put all the contents in a named directory (testdisk-7.0-WIP).
Open the directory in Rox file manager.

To run test disk
right click on testdisk_static and select run in terminal.

To run Photorec
Right click on photorec_static and select run in terminal.

This directory (testdisk-7.0-WIP) has program info files and a link to the online documentation.

Edit:
Here is a pet package for TestDisk.
http://www.murga-linux.com/puppy/viewto ... 76#1014176

Posted: Tue 15 Mar 2016, 04:36
by Sylvander
Following your instructions...

1. From HERE...
Downloaded to [the mounted only/single partition on] a 1GB Flash Drive with space to spare, as follows:
/mnt/sdb1/Puppy/pet/Testdisk&Photorec-7.0/testdisk-7.0.linux26.tar.bz2

2. Right-clicked the file in Xfe, chose "Open with..." Xarchive...
All the file contents were displayed...

3. Clicked "Select all..." [all files were highlighted], then clicked "Extract" ...

4. I was asked if I wanted to place the extracted files in a sub-folder named "testdisk-7.0", and I agreed.
The folders&files were extracted to:
/mnt/sdb1/Puppy/pet/Testdisk&Photorec-7.0/testdisk-7.0

5. Tried using ROX to right-click on the file = "photorec_static", but there was no right-click-context-menu-item = "run in terminal"...
Nor any other "run" option that I could see.

6. What am I doing wrong?

Posted: Thu 10 Nov 2016, 19:34
by smokey01
Is it possible to undelete photos on an android phones internal memory?

When I ran MTP and mounted the phone Photorec did not see the phone filesystem.

TIA

Posted: Thu 10 Nov 2016, 19:47
by Burn_IT
That is likely because TESTDISK runs directly against the device and will not support accessing storage via a driver.

Posted: Thu 10 Nov 2016, 20:11
by smokey01
Does that mean it might work if I don't mount it with MTP?

Posted: Thu 10 Nov 2016, 20:30
by Burn_IT
It means that if you can give testdisk direct access to the (I presume) memory card in the phone, it might work.
Don't forget you are talking about nand (or whatever) memory and that is different to the type of storage that TESTDISK was designed to handle. That sort of memory tends to work in blocks not individual bytes.

If you can remove the memory card and access it in a USB card reader it might? work.
I haven't tried it so I don't know, and I am not going to risk ruining on of my cards trying for the sake of it.

Posted: Thu 10 Nov 2016, 20:34
by smokey01
Thanks. Sounds like the photos may be gone forever.

Posted: Thu 10 Nov 2016, 20:34
by Semme
Smokey, aside from searching "recover data from an android phone," take a look at what's involved with an iPhone..

www.cgsecurity.org/wiki/Recover_data_from_an_iPhone

Posted: Thu 10 Nov 2016, 21:10
by smokey01
@Semme
It seems pretty complicated and the phone needs rooting which is the same for the android.

It's not my phone so I don't want to risk bricking it.

Thanks

Posted: Thu 10 Nov 2016, 21:32
by Semme
Yeah Smokey, we should all know the consequences of our actions. :wink:

Posted: Fri 11 Nov 2016, 01:12
by smokey01
Only too well, unfortunately.

Posted: Sat 29 Dec 2018, 07:24
by perdido
TestDisk & PhotoRec undelete PET
Version 7 (latest)

Download from here---->testdisk_v7.pet
md5 535a89314c5796bdb8f2a39873796708

Installs to /opt/testdisk_v7/

Adds two menu entries to Utility menu.
Programs launch from the menu and run in a terminal window

Posted: Sat 29 Dec 2018, 11:03
by bigpup
perdido,

Thanks for the pet!