Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Yesterday, during data transmission to an external hard drive, all data has been lost due to unexpected HDD crash. I've tried to use PhotoRec for a specific partition, it retrieved over 50 000 images, nevertheless, most of the obtained files are older than 3-5 months.

In advance, thank you for your help. :)

share|improve this question
This provides some Info about sorting after Photorec Recovery . – atenz Jul 14 '12 at 16:54
@tijybba You might want to post an answer based on this comment. – Eliah Kagan Jul 14 '12 at 17:18
@EliahKagan- Thanks for suggestion , i am not good with coding :( , so in this case i would Urge you to post an answer on that , if you wish. – atenz Jul 14 '12 at 17:29
Tijybba, thank you for sharing this helpful source. I've managed to retrieve files much quicker. :) – zafira.404 Jul 14 '12 at 17:57
up vote 2 down vote accepted

In case your JPG files have EXIF data stored this can easily be accomplished with

jhead Install jhead

Command line tool to manipulate EXIF data, and to touch the timestamp or rename a jpg file according to the EXIF data stored within the file.

jhead -ft unnamed.jpg  # to touch the time
jhead -n%Y%m%d-%H%M%S unnamed.jpg # to rename in this format YYYYMMDD-hhmmss

exiv2 Install exiv2

Another, similar tool will also manipulate and use EXIf data from other file fomats including:

Supported formats are JPEG, TIFF, PNG, JP2, Adobe DNG, Canon CRW, Canon THM, Nikon NEF, Pentax PEF and XMP sidecar files. Read-only support is currently available for PSD and several TIFF-based RAW formats: Canon CR2, Fujifilm RAF, Minolta MRW, Olympus ORF, Sony ARW and Sony SR2. Manpage exiv2

exiv2 rename unnamed.jpg # will rename to YYYYMMDD_hhmmss.jpg


Shotwell Photo Manager is installed by default and can sort images according to their EXIF data:

enter image description here

share|improve this answer
Thank you so much! :) – zafira.404 Jul 14 '12 at 17:54

You can recover all images with the method you want. After this, you can sort them by date with your favorite data explorer (for example nautilus).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.