Questions tagged [photorec]

PhotoRec is a free and open source file carver data recovery software tool designed to recover lost files from digital camera memory (CompactFlash, Memory Stick, Secure Digital, SmartMedia, Microdrive, MMC, USB flash drives, etc.), hard disks and CD-ROMs. It recovers most common photo formats, including JPEG, and also recovers audio files including MP3, document formats such as OpenDocument, MS-Office, PDF and HTML, and archive formats including ZIP.

Filter by
Sorted by
Tagged with
6 votes
1 answer
21k views

How to recover files from a given directory using photorec

I want to recover some files using PhotoRec. Although I've used it before, I am not familiar with making it look only in one given directory. Any idea how to do it?
Thanos's user avatar
  • 457
4 votes
4 answers
5k views

Files/Directories on exFat are not visible from Windows

Ubuntu 18.04 LTS exfat-fuse / exfat-utils 1.2.8-1 (The latest version that will install after running sudo apt-get update.) Linux is writing files to a Windows exFat partition on a Windows OS disk ...
JasonF4's user avatar
  • 548
4 votes
0 answers
65 views

How to recover lost data after installing Ubuntu 16.04 [duplicate]

This has been asked quite a few times before but I want to add something extra hence a new question. Please take a moment before marking it as a duplicate. I had dual booting with Windows 10 and ...
Saikat's user avatar
  • 191
3 votes
1 answer
1k views

Can I use ddrescue & Testdisk in ubuntu to create image to recover data? [duplicate]

I mistakely installed ubuntu over my 1tb drive removing essential data and photos which took about 5 mins to install, so I want to know if I can use ddrescue in Ubuntu to create a virtual image of the ...
HorizonBloom's user avatar
3 votes
1 answer
1k views

Decrypt ecryptfs files recovered from photorec

I have managed to recover files from a disk with a damaged partition table using photorec. Photorec does not preserve the file name or file structure so all I have are a bunch of randomly named files ...
jenny92718's user avatar
3 votes
1 answer
184 views

Recover an partially(~5%) zero overwritten, external HDD with single partition

I have an external Seagate HDD of 1TB. I was using the default partition it came with. Never repartitioned it. Yesterday I accidentally started reformatting it instead of my other disk, with an ...
Lakshmi Narayanan's user avatar
2 votes
1 answer
2k views

Can not show external HDD during photorec

I have just formated my HP laptop (having 500 GB Hard Disk Internal) and install Ubuntu 14.04 LTS OS. while get back up for lost files, I install testdisk and run sudo photorec. All process is going ...
Bapi Saha's user avatar
  • 469
2 votes
1 answer
3k views

How do I mount an IMG file in Ubuntu for Photorec (beginner at linux)

I created a copy of my 1tb HDD drive from ddrescue and wanted to mount this IMG file to then recover data from Photorec. How to mount an IMG file as if it was an actual HDD/pen drive inserted by USB. ...
HorizonBloom's user avatar
2 votes
2 answers
8k views

Recovering a lost LibreOffice document with testdisk

I was working on a LibreOffice Writer document when my computer turned off. No problem there, I booted up, went back into LibreOffice and it gave the option to recover everything. I left the document ...
user588641's user avatar
2 votes
0 answers
1k views

Will it take 3 years to recover 1TB data? [duplicate]

I can not access my 1 TB HDD in any system ubuntu or windows after I recently tried to backup my ubuntu system on the external HDD using inbuilt applications (Backups, Deja Dup) . Backup was taking ...
Onix's user avatar
  • 131
1 vote
1 answer
3k views

Recover data from external disk using testdisk and photorec

So I had my partition tables gone corrupt somehow after writing a media file over the network to the external HDD of my media center. Following the steps from this answer, I tried quick- and ...
Peter Raeves's user avatar
  • 1,109
1 vote
1 answer
99 views

Recovering lost space due to PhotoRec

I accidentally deleted a important folder, and attempted to use testdisk (photorec) to recover the files. However, it kept taking longer and longer so I stopped it. It created 18 folders in home, ...
REW's user avatar
  • 91
1 vote
1 answer
896 views

Photorec : No file found in a full 64GB SD card. What to do?

Recently my memory card (Samsung Evo 64GB, almost full) was showing 'corrupt' on my Tablet. So I tried to recover the important details using photorec. It ran for around 1 hour but 0 files have been ...
Trect's user avatar
  • 334
1 vote
0 answers
941 views

Ubuntu disk full after running photorec

I ran testdisk and photorec when attempting to recover a deleted file. When I ran testdisk, I selected the option to create a log file and it aborted because the disk was full. I deleted the testdisk....
vamsiampolu's user avatar
1 vote
0 answers
2k views

Recover Deleted MongoDB Database

Recently one of our servers got hacked and the hacker has managed to drop the entire database which contained some important data. We didn't have any backup so want to restore the database from the ...
Rohan Dighe's user avatar
1 vote
0 answers
44 views

How to get phone memory in Ubuntu Terminal?

I have a Samsung smartphone, connected via USB cable with my HP laptop . I want to recover some of my deleted photos with photorec command form terminal. But while I give command $ cd /media/hp, I ...
Bapi Saha's user avatar
  • 469
1 vote
0 answers
135 views

photorec recovery of a deja dup recovery

is it possible? I am attempting to recover deja dup files for a USB stick. I lost the files after an OS upgrade and then my USB stick broke (physically cracked the all in one chip). Really bad timing. ...
Joseph Unrau's user avatar
1 vote
1 answer
203 views

Can I recover photos with photorec via bluetooth?

I've accidentally deleted photos that are on my phones internal memory. The only way to access my phone is via bluetooth, but photorec won't accept it as a valid target: ╰─$ photorec obex://[F4:9F:54:...
vkjb38sjhbv98h4jgvx98hah3fef's user avatar
1 vote
1 answer
2k views

Recover only Java source code in photorec

I would like to recover only Java source code and XML files in photorec, but they are not listed on the list in the File Opt. There is Java class, but I'm not looking for files with .class extension ...
draziw's user avatar
  • 123
0 votes
2 answers
5k views

How do I recover .jpg files on Ubuntu?

How do I recover delete files with just with just the .jpg extension in Ubuntu? I already tried "photorec", but it recovered all the files.
kingandie's user avatar
0 votes
1 answer
308 views

Photorec recovered directory - asking for missing operand

Used Photorec to recover files. They were grouped in a folder " recup_dir.1" in home folder with a lock symbol. Owner was 'root' Used chown in the undergiven format to change owner and ...
Murali Subramanyam's user avatar
0 votes
1 answer
4k views

Instruct Photorec to look for a specific file

I want to recover a source code java called prog.java using photorec, I have already enabled my custom signature to look only for .java files but it still produces too many files to search through. ...
IDK's user avatar
  • 593
0 votes
2 answers
930 views

under which extension does photorec search for .tex file

under which extension does photorec search for .tex file? I cannot run the command fidentity using terminal. So does anybody know of that? Thanks a lot!
user1639413's user avatar
0 votes
0 answers
402 views

What is the best way to recover deleted zip files from a specific path when rlinux, photorec can't find them?

What is the best way to recover deleted zip files from a specific path ? I have 2 zip files previously stored in an ext drive in /dev/sda3 to be cut&pasted to home/user/Documents. These zip files ...
raisa_'s user avatar
  • 289
0 votes
0 answers
134 views

How to recover files without extension using PhotoRec

So i had some files without extensions on my usb drive which has been formatted many times. I tried to use gparted to recover them but no result. Then i found PhotoRec which using deep scan i was able ...
user avatar
0 votes
0 answers
681 views

Using photorec from bootable usb, where to store recovered files?

I overwrote a Lubuntu installation on my laptop hdd when I installed Xubuntu. I choose the wipe the disk before intalling Xubuntu... although I had a lot of pictures on the lubuntu installation that I ...
Chris Andrew's user avatar
0 votes
0 answers
440 views

How to extract data from ELF files recovered by Photorec?

I recovered all the files from a partition by using Photorec. Now I have thousands of recup_dir.* directories containing thousands of f*.elf files. How can I extract the data from all the *.elf files? ...
Javier Perez's user avatar
0 votes
0 answers
28 views

Installed Ubuntu on top of Windows 7 Parition, thus lost an important file!

Hi there. I had win 10 and 7 installed on dual boot, then i decided to download and install UBUNTU, in the installation process, i chose to install it on top of the win 7 partition, so it had to erase ...
Aghiles Lounis's user avatar
0 votes
1 answer
2k views

ext4 recovery (extundelte error: malloc(): invalid next size (unsorted))

After accidentally deleting mp4 files I created an image of the mounted 5-TB-partition for recovery. It has been quite some time between deletion and imaging, as I did not notice the issue very ...
Edgar Hover's user avatar
0 votes
1 answer
601 views

System not booting with no free disk space

I have used PhotoRec/TestDisk on my laptop with Ubuntu 18.04.5 to recover some deleted files from the ext4 filesystem. I first let it do its work on the entire partition, all extensions. And PhotoRec ...
Sandu Ursu's user avatar
  • 1,028
0 votes
0 answers
188 views

I overwrote my external hard drive. Can I recover files?

I was trying to make a bootable USB drive. I entered the following: root@BlackBox:/home/bgp# pv XP32bit.iso > /dev/sdb I let it run, and then became aware that I had the wrong target. I meant to ...
Moogus Show's user avatar
0 votes
1 answer
2k views

PhotoRec extension customization is taking parts not defined in the signature

when i tried to recover my .m files which are considered as .txt for photorec. I tried to add my own extension. After creating .m file containing the word tic while in the .photorec.sig file i added ...
Born New's user avatar
0 votes
0 answers
781 views

Cant view any folders or files inside users home folder using testdisk?

I have installed the testdisk using sudo apt install testdisk and using this I want to view and recover some deleted files in ubuntu 16.04. I selected my linux partion in testdisk sudo testdisk /...
Eka's user avatar
  • 2,967
0 votes
1 answer
733 views

How to recover json firefox files using photorec testdisk?

On the wiki it says that json files are supported but json file format is not listed when using photorec file options. On the cgsecurity forums, some people have suggested that this is considered a ...
J.T.'s user avatar
  • 109
0 votes
0 answers
370 views

Recover deleted files from encrypted drive

I was organising pictures when I accidentally deleted a big part of my good pictures along with the thrash pictures. So I instantly stopped all file transferring actions and ran photorec (would have ...
Peetah's user avatar
  • 210
0 votes
1 answer
119 views

I've run photorec to see if I could find some photos, I don't see any trace. Will running testdisk help?

I'm trying to find photos, they are in shotwell as "missing photos" so I thought I may have deleted them somewhere. I ran photorec and after many hours, I can't see any trace of them. Will running ...
user285884's user avatar
0 votes
0 answers
84 views

I uploaded photos to my computer, and deleted them off of my camera. Things got weird.

The photos I want are in Shotwells "missing photos." I can see their thumbnails there. I am running a photorec recovery job and after many hours, I still can't seem to find them (although still ...
user285884's user avatar
0 votes
1 answer
5k views

How to copy files from testdrive

I had win 10 and I installed ubuntu. During the process I formatted the entire hard drive. Then I used testdisk on live usb. I can explore files in it but cant figure out how to copy and recover them.
Faizan Abrar's user avatar
0 votes
2 answers
377 views

Restore deleted items by delete day

Is there any way to use photorec or another program to restore items deleted only within the last 2 days or so?
Baron Yugovich's user avatar
0 votes
2 answers
104 views

Files impossible to wipe, where are they saved?

I installed Ubuntu on a USB disk, my installation is: sudo fdisk -l /dev/sdb Disk /dev/sdb: 7773 MB, 7773585408 bytes 240 heads, 62 sectors/track, 1020 cylinders, total 15182784 sectors Units = ...
horta's user avatar
  • 1
0 votes
0 answers
92 views

Testdisk and eCryptfs single files [duplicate]

Recently i've recovered my Downloads directory with testdisk but all files recovered are in .eCryptfs file extension. Now i need to decrypt it for find my PHP lost files, how I can do it? Thank you
Mirko's user avatar
  • 1
-1 votes
1 answer
376 views

PhotoRec outputs mostly text files in Ubuntu data recovery

Last night I discovered that Ubuntu 20.04 had deleted most of the contents of one of my folders, about 50GB worth. I tried to recover them using PhotoRec, but most of what is output so far is text ...
Shinryuji Mikihiko's user avatar