TestDisk & PhotoRec

Filemanagers, partitioning tools, etc.
Post Reply
Message
Author
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

TestDisk & PhotoRec

#1 Post 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
Last edited by bigpup on Sat 29 Dec 2018, 11:02, edited 2 times in total.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#2 Post 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?

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#3 Post 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

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#4 Post by Burn_IT »

That is likely because TESTDISK runs directly against the device and will not support accessing storage via a driver.
"Just think of it as leaving early to avoid the rush" - T Pratchett

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#5 Post by smokey01 »

Does that mean it might work if I don't mount it with MTP?

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#6 Post 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.
Last edited by Burn_IT on Thu 10 Nov 2016, 20:35, edited 1 time in total.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#7 Post by smokey01 »

Thanks. Sounds like the photos may be gone forever.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post 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
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#9 Post 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

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

Yeah Smokey, we should all know the consequences of our actions. :wink:
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#11 Post by smokey01 »

Only too well, unfortunately.

User avatar
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#12 Post 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
Attachments
testdisk.jpg
(72.68 KiB) Downloaded 556 times
photorec.jpg
(53.49 KiB) Downloaded 522 times

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#13 Post by bigpup »

perdido,

Thanks for the pet!
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Post Reply