Giter Site home page Giter Site logo

samueltardieu / recoverjpeg Goto Github PK

View Code? Open in Web Editor NEW
74.0 6.0 13.0 112 KB

Recover lost JPEGs and MOV files on a bogus memory card or disk

Home Page: http://www.rfc1149.net/devel/recoverjpeg

License: GNU General Public License v2.0

C 58.21% C++ 22.71% Python 5.18% Shell 10.52% Makefile 1.90% M4 1.48%
pictures sdcard filesystem recovery-tools hacktoberfest

recoverjpeg's Issues

sort-pictures always fails

Hi,

I am the current Debian maintainer of recoverjpeg. The bug #766496, available here[1], reports about an issue when testing the 'identify' presence. To solve the problem, I made a patch for Debian.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766496

Please, see the following patch.


--- recoverjpeg-2.3.orig/sort-pictures
+++ recoverjpeg-2.3/sort-pictures
@@ -32,7 +32,7 @@ dependencies () {
exit 1
}

-identify > /dev/null 2>&1 || dependencies
+[ -f /usr/bin/identify ] || dependencies
exif --version > /dev/null 2>&1 || dependencies

for i in image?????*.jpg; do

Thanks in advance.

Regards,

Eriberto

Featurerequest: Possibility to continue a half searched partition

Hi!

I have no idea if the search is sequentially... but if it is, it should be great to just say:
-c 1000g
to start the search at that position. For me it should be combined with -i 10598, then I could have searched the nightly search of a 2TB disk without restarting it (needed computer at work).

(My idea of "-c" is "continue")

Thanks for a fabulous program!
/Erik s

How to use this on a Mac device

I tried to run the ./configure command but got the below error

amal@Amalendus-MacBook-Pro recoverjpeg-2.6-2.3 % ./configure
zsh: no such file or directory: ./configure

Permission for reading block device

I run recoverjpeg as a regular user:

% recoverjpeg /dev/sdd1
recoverjpeg: unable to open /dev/sdd1 for reading (Permission denied)

Sure, I can't read from a block device. Only root can.
So, please install recoverjpeg to ../sbin/ and rename recoverjpeg.1 to recoverjpeg.8 and install to ../man8/

Probably the same with recovermov.

Makefile issue

Hi,

I'm packaging it into Fedora at here: https://bugzilla.redhat.com/show_bug.cgi?id=956737

Now the reviewer said there are problem:

One upstream issue:
Makefile.am contains this:
recovermov_LDADD = -lstdc++

libstdc++ is an internal implementation detail of c++, which means c++-compilers will pull it in when needed and also means libstdc++ should not be explictily linked against.

Consider a fix?

Thanks.

COPYING is outdated

Please update the COPYING file.
The Free Software Foundation address is incorrect.

OSX functionality?

Have you received any feedback on whether or not this builds (and works) with OS X? Here's my situation: I have an old SATA HD connected to my late 2014 iMac with a powered adapter cable. Using Disk Utility, OS X recognizes the HD, can see the multiple partitions, has assigned them /dev device IDs, but can't mount them. I'll be using dd to copy the raw bits off the partition and trying to mount the resulting file as a loopback device, and if for some reason it still can't be read then I'd like to use recoverjpeg on it.

I have (Ubuntu) Linux running under VMWare Fusion, but for whatever reason it doesn't recognize either the adapter or the attached HD (at least as far as I can tell, and I'm no Linux novice), so I can't use this tool there.

recovermov stops reading the disk using 100% CPU

I'm using recovermov to recover a 2TB disk like this:

sudo recovermov -o /mnt/videos1 /dev/sdc

After 2 tries, I have exactly the same symptoms: after this message:

mov file detected
writing to video_844.mov
recovery of video_844.mov finished

The process is using 100% CPU and I don't see any reading activity through iotop.

tomo@misti:~$ pidstat -dl | grep recovermo
15:35:34        0    363667     -1,00     -1,00     -1,00 2938223  recovermov -o /mnt/videos1 /dev/sdc 
tomo@misti:~$ ps aux | grep recover
root      363661  0.0  0.0  14852  3316 pts/0    S+   févr.10   0:00 sudo recovermov -o /mnt/videos1 /dev/sdc
root      363667 91.8  0.0   5888   996 pts/0    R+   févr.10 5563:45 recovermov -o /mnt/videos1 /dev/sdc
tomo@misti:~$ sudo strace -p 363667
strace: Process 363667 attached
[nothing is displayed]
^Cstrace: Process 363667 detached

Let me know how can I debug this further.

Thanks ! And thanks a lot for the great tools recoverjpeg and recovermov.

Preserving the timestamp

Because I use make install, I found that install without -p option.

Can you add it? I can manually install with -p but I think this should be fixed.

Makefile issue: impossible rebuild after a dist-clean

Hi,

The 'make dist-clean' command removes the recoverjpeg.1 file. After this, the 'make' command will fail. To fix, I suggest to remove the following line from Makefile.am:

CLEANFILES = recoverjpeg.1

Thanks a lot in advance.

Regards,

Eriberto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.