Recovery of deleted jpg files using PhotoRec

I deleted about hundred sixty image files by mistake I had taken over for whole day.

testdisk package has PhotoRec file recovery utility. Install it ‘sudo aptitude testdisk’

For instruction how to use PhotoRec, click the link.

I chose only jpg file for recovery on [File Opt] menu to save time, and ran it as superuser in /run/shm/ ramdisk directory.

To recover raw files of Canon Rebel XS (EOS 1000D), select tif format.
[X] tif Tag Image File Format and some raw file formats (pef/nef/dcr/sr2/cr2)


PhotoRec 6.13, Data Recovery Utility, November 2011
Christophe GRENIER
http://www.cgsecurity.org

Disk /dev/sda - 160 GB / 149 GiB (RO) - Hitachi HDS721616PLA380
Partition Start End Size in sectors
No partition 0 0 1 19457 80 63 312581808 [Whole disk]

3975 files saved in /run/shm/recup_dir directory.
Recovery completed.

You are welcome to donate to support further development and encouragement
http://www.cgsecurity.org/wiki/Donation

/run/shm$ du -h
43M ./recup_dir.24
15M ./recup_dir.23
103M ./recup_dir.22
11M ./recup_dir.21
19M ./recup_dir.20
9.0M ./recup_dir.19
42M ./recup_dir.18
160M ./recup_dir.17
28M ./recup_dir.16
11M ./recup_dir.15
7.3M ./recup_dir.14
93M ./recup_dir.13
83M ./recup_dir.12
62M ./recup_dir.11
3.6M ./recup_dir.10
26M ./recup_dir.9
15M ./recup_dir.8
12M ./recup_dir.7
7.2M ./recup_dir.6
16M ./recup_dir.5
25M ./recup_dir.4
38M ./recup_dir.3
41M ./recup_dir.2
36M ./recup_dir.1
897M .

Copied all recovered jpg files to ~/Pictures/105/recover.

The following command saved a lot of time to select the jpg files I was looking for.
find . -name ‘*.jpg’ -and -size +2000k -exec cp -v {} ./final/ \;
It let find search all jpg files which size is greater than 2MB (2000k) and copy them to ./final directory. -v option of cp command displays message.

penguin@theblue:~/Pictures/105/recover$ find . -name '*.jpg' -and -size +2000k -exec cp -v {} ./final/ \;`./recup_dir.24/f281247392.jpg' -> `./final/f281247392.jpg'
`./recup_dir.24/f281240584.jpg' -> `./final/f281240584.jpg'
`./recup_dir.24/f281488192.jpg' -> `./final/f281488192.jpg'
`./recup_dir.24/f300089672.jpg' -> `./final/f300089672.jpg'
`./recup_dir.24/f281254440.jpg' -> `./final/f281254440.jpg'
`./recup_dir.24/f300096224.jpg' -> `./final/f300096224.jpg'
`./recup_dir.24/f281960464.jpg' -> `./final/f281960464.jpg'
`./recup_dir.24/f281226752.jpg' -> `./final/f281226752.jpg'
`./recup_dir.24/f281798408.jpg' -> `./final/f281798408.jpg'
`./recup_dir.24/f281495184.jpg' -> `./final/f281495184.jpg'
`./recup_dir.24/f281233560.jpg' -> `./final/f281233560.jpg'
`./recup_dir.22/f213026816.jpg' -> `./final/f213026816.jpg'
`./recup_dir.22/f212961280.jpg' -> `./final/f212961280.jpg'
`./recup_dir.22/f177178648.jpg' -> `./final/f177178648.jpg'
`./recup_dir.22/f165808624.jpg' -> `./final/f165808624.jpg'
`./recup_dir.22/f213001280.jpg' -> `./final/f213001280.jpg'
`./recup_dir.22/f212867088.jpg' -> `./final/f212867088.jpg'
`./recup_dir.22/f213108736.jpg' -> `./final/f213108736.jpg'
`./recup_dir.22/f174715296.jpg' -> `./final/f174715296.jpg'
`./recup_dir.22/f213059584.jpg' -> `./final/f213059584.jpg'
`./recup_dir.22/f213050448.jpg' -> `./final/f213050448.jpg'
`./recup_dir.22/f212879360.jpg' -> `./final/f212879360.jpg'
`./recup_dir.22/f212977664.jpg' -> `./final/f212977664.jpg'
`./recup_dir.22/f212984672.jpg' -> `./final/f212984672.jpg'
`./recup_dir.22/f212912128.jpg' -> `./final/f212912128.jpg'
`./recup_dir.22/f212944896.jpg' -> `./final/f212944896.jpg'
`./recup_dir.22/f212994048.jpg' -> `./final/f212994048.jpg'
`./recup_dir.22/f213043640.jpg' -> `./final/f213043640.jpg'
`./recup_dir.22/f213018208.jpg' -> `./final/f213018208.jpg'
`./recup_dir.22/f177186840.jpg' -> `./final/f177186840.jpg'
`./recup_dir.22/f213084048.jpg' -> `./final/f213084048.jpg'
`./recup_dir.22/f212895744.jpg' -> `./final/f212895744.jpg'
`./recup_dir.22/f213092352.jpg' -> `./final/f213092352.jpg'
`./recup_dir.22/f212928512.jpg' -> `./final/f212928512.jpg'
`./recup_dir.22/f213075968.jpg' -> `./final/f213075968.jpg'
`./recup_dir.22/f213010432.jpg' -> `./final/f213010432.jpg'
`./recup_dir.22/f213033840.jpg' -> `./final/f213033840.jpg'
`./recup_dir.22/f213067112.jpg' -> `./final/f213067112.jpg'
`./recup_dir.23/f240166304.jpg' -> `./final/f240166304.jpg'
`./recup_dir.17/f19430640.jpg' -> `./final/f19430640.jpg'
`./recup_dir.17/f23390256.jpg' -> `./final/f23390256.jpg'
`./recup_dir.17/f23487792.jpg' -> `./final/f23487792.jpg'
`./recup_dir.17/f23512504.jpg' -> `./final/f23512504.jpg'
`./recup_dir.17/f23505560.jpg' -> `./final/f23505560.jpg'
`./recup_dir.17/f8074440.jpg' -> `./final/f8074440.jpg'
`./recup_dir.17/f9930968.jpg' -> `./final/f9930968.jpg'
`./recup_dir.17/f23480320.jpg' -> `./final/f23480320.jpg'
`./recup_dir.17/f22580760.jpg' -> `./final/f22580760.jpg'
`./recup_dir.17/f23931464.jpg' -> `./final/f23931464.jpg'
`./recup_dir.17/f19438016.jpg' -> `./final/f19438016.jpg'
`./recup_dir.17/f19445608.jpg' -> `./final/f19445608.jpg'
`./recup_dir.17/f23998656.jpg' -> `./final/f23998656.jpg'
`./recup_dir.17/f23519552.jpg' -> `./final/f23519552.jpg'
`./recup_dir.17/f22423000.jpg' -> `./final/f22423000.jpg'
`./recup_dir.17/f23256352.jpg' -> `./final/f23256352.jpg'
`./recup_dir.17/f23277880.jpg' -> `./final/f23277880.jpg'
`./recup_dir.17/f23312280.jpg' -> `./final/f23312280.jpg'
`./recup_dir.17/f23222800.jpg' -> `./final/f23222800.jpg'
`./recup_dir.17/f23298832.jpg' -> `./final/f23298832.jpg'
`./recup_dir.17/f22415008.jpg' -> `./final/f22415008.jpg'
`./recup_dir.17/f22593464.jpg' -> `./final/f22593464.jpg'
`./recup_dir.17/f23270712.jpg' -> `./final/f23270712.jpg'
`./recup_dir.17/f23374736.jpg' -> `./final/f23374736.jpg'
`./recup_dir.17/f23397168.jpg' -> `./final/f23397168.jpg'
`./recup_dir.17/f22572560.jpg' -> `./final/f22572560.jpg'
`./recup_dir.17/f23285112.jpg' -> `./final/f23285112.jpg'
`./recup_dir.17/f23263368.jpg' -> `./final/f23263368.jpg'
`./recup_dir.17/f23836376.jpg' -> `./final/f23836376.jpg'
`./recup_dir.17/f23292016.jpg' -> `./final/f23292016.jpg'
`./recup_dir.17/f23305312.jpg' -> `./final/f23305312.jpg'
`./recup_dir.17/f22606080.jpg' -> `./final/f22606080.jpg'
`./recup_dir.17/f9939176.jpg' -> `./final/f9939176.jpg'
`./recup_dir.17/f9976984.jpg' -> `./final/f9976984.jpg'
`./recup_dir.17/f24076336.jpg' -> `./final/f24076336.jpg'
`./recup_dir.17/f23214608.jpg' -> `./final/f23214608.jpg'
`./recup_dir.17/f22364408.jpg' -> `./final/f22364408.jpg'
`./recup_dir.17/f22599776.jpg' -> `./final/f22599776.jpg'
`./recup_dir.17/f10013848.jpg' -> `./final/f10013848.jpg'
`./recup_dir.17/f23319552.jpg' -> `./final/f23319552.jpg'
`./recup_dir.17/f22407712.jpg' -> `./final/f22407712.jpg'
`./recup_dir.17/f23842984.jpg' -> `./final/f23842984.jpg'
`./recup_dir.17/f23937952.jpg' -> `./final/f23937952.jpg'
`./recup_dir.17/f24104976.jpg' -> `./final/f24104976.jpg'
`./recup_dir.18/f68425952.jpg' -> `./final/f68425952.jpg'
`./recup_dir.18/f36667632.jpg' -> `./final/f36667632.jpg'
`./recup_dir.18/f36772640.jpg' -> `./final/f36772640.jpg'
`./recup_dir.18/f36654496.jpg' -> `./final/f36654496.jpg'
`./recup_dir.18/f36635408.jpg' -> `./final/f36635408.jpg'
`./recup_dir.18/f36752040.jpg' -> `./final/f36752040.jpg'
`./recup_dir.18/f36779288.jpg' -> `./final/f36779288.jpg'
`./recup_dir.18/f36758728.jpg' -> `./final/f36758728.jpg'
`./recup_dir.18/f36648056.jpg' -> `./final/f36648056.jpg'
`./recup_dir.18/f36765832.jpg' -> `./final/f36765832.jpg'
`./recup_dir.18/f36660944.jpg' -> `./final/f36660944.jpg'
cp: `./final/f213026816.jpg' and `./final/f213026816.jpg' are the same file
cp: `./final/f19430640.jpg' and `./final/f19430640.jpg' are the same file
cp: `./final/f23390256.jpg' and `./final/f23390256.jpg' are the same file
cp: `./final/f23487792.jpg' and `./final/f23487792.jpg' are the same file
cp: `./final/f23512504.jpg' and `./final/f23512504.jpg' are the same file
cp: `./final/f68425952.jpg' and `./final/f68425952.jpg' are the same file
cp: `./final/f281247392.jpg' and `./final/f281247392.jpg' are the same file
cp: `./final/f212961280.jpg' and `./final/f212961280.jpg' are the same file
cp: `./final/f23505560.jpg' and `./final/f23505560.jpg' are the same file
cp: `./final/f177178648.jpg' and `./final/f177178648.jpg' are the same file
cp: `./final/f8074440.jpg' and `./final/f8074440.jpg' are the same file
cp: `./final/f281240584.jpg' and `./final/f281240584.jpg' are the same file
cp: `./final/f36667632.jpg' and `./final/f36667632.jpg' are the same file
cp: `./final/f165808624.jpg' and `./final/f165808624.jpg' are the same file
cp: `./final/f213001280.jpg' and `./final/f213001280.jpg' are the same file
cp: `./final/f9930968.jpg' and `./final/f9930968.jpg' are the same file
cp: `./final/f212867088.jpg' and `./final/f212867088.jpg' are the same file
cp: `./final/f23480320.jpg' and `./final/f23480320.jpg' are the same file
cp: `./final/f213108736.jpg' and `./final/f213108736.jpg' are the same file
cp: `./final/f22580760.jpg' and `./final/f22580760.jpg' are the same file
cp: `./final/f23931464.jpg' and `./final/f23931464.jpg' are the same file
cp: `./final/f174715296.jpg' and `./final/f174715296.jpg' are the same file
cp: `./final/f281488192.jpg' and `./final/f281488192.jpg' are the same file
cp: `./final/f19438016.jpg' and `./final/f19438016.jpg' are the same file
cp: `./final/f19445608.jpg' and `./final/f19445608.jpg' are the same file
cp: `./final/f300089672.jpg' and `./final/f300089672.jpg' are the same file
cp: `./final/f36772640.jpg' and `./final/f36772640.jpg' are the same file
cp: `./final/f240166304.jpg' and `./final/f240166304.jpg' are the same file
cp: `./final/f213059584.jpg' and `./final/f213059584.jpg' are the same file
cp: `./final/f213050448.jpg' and `./final/f213050448.jpg' are the same file
cp: `./final/f281254440.jpg' and `./final/f281254440.jpg' are the same file
cp: `./final/f212879360.jpg' and `./final/f212879360.jpg' are the same file
cp: `./final/f23998656.jpg' and `./final/f23998656.jpg' are the same file
cp: `./final/f212977664.jpg' and `./final/f212977664.jpg' are the same file
cp: `./final/f23519552.jpg' and `./final/f23519552.jpg' are the same file
cp: `./final/f36654496.jpg' and `./final/f36654496.jpg' are the same file
cp: `./final/f212984672.jpg' and `./final/f212984672.jpg' are the same file
cp: `./final/f212912128.jpg' and `./final/f212912128.jpg' are the same file
cp: `./final/f22423000.jpg' and `./final/f22423000.jpg' are the same file
cp: `./final/f23256352.jpg' and `./final/f23256352.jpg' are the same file
cp: `./final/f23277880.jpg' and `./final/f23277880.jpg' are the same file
cp: `./final/f23312280.jpg' and `./final/f23312280.jpg' are the same file
cp: `./final/f23222800.jpg' and `./final/f23222800.jpg' are the same file
cp: `./final/f36635408.jpg' and `./final/f36635408.jpg' are the same file
cp: `./final/f212944896.jpg' and `./final/f212944896.jpg' are the same file
cp: `./final/f212994048.jpg' and `./final/f212994048.jpg' are the same file
cp: `./final/f23298832.jpg' and `./final/f23298832.jpg' are the same file
cp: `./final/f213043640.jpg' and `./final/f213043640.jpg' are the same file
cp: `./final/f36752040.jpg' and `./final/f36752040.jpg' are the same file
cp: `./final/f300096224.jpg' and `./final/f300096224.jpg' are the same file
cp: `./final/f22415008.jpg' and `./final/f22415008.jpg' are the same file
cp: `./final/f22593464.jpg' and `./final/f22593464.jpg' are the same file
cp: `./final/f213018208.jpg' and `./final/f213018208.jpg' are the same file
cp: `./final/f23270712.jpg' and `./final/f23270712.jpg' are the same file
cp: `./final/f23374736.jpg' and `./final/f23374736.jpg' are the same file
cp: `./final/f281960464.jpg' and `./final/f281960464.jpg' are the same file
cp: `./final/f177186840.jpg' and `./final/f177186840.jpg' are the same file
cp: `./final/f23397168.jpg' and `./final/f23397168.jpg' are the same file
cp: `./final/f22572560.jpg' and `./final/f22572560.jpg' are the same file
cp: `./final/f36779288.jpg' and `./final/f36779288.jpg' are the same file
cp: `./final/f36758728.jpg' and `./final/f36758728.jpg' are the same file
cp: `./final/f281226752.jpg' and `./final/f281226752.jpg' are the same file
cp: `./final/f23285112.jpg' and `./final/f23285112.jpg' are the same file
cp: `./final/f23263368.jpg' and `./final/f23263368.jpg' are the same file
cp: `./final/f213084048.jpg' and `./final/f213084048.jpg' are the same file
cp: `./final/f23836376.jpg' and `./final/f23836376.jpg' are the same file
cp: `./final/f36648056.jpg' and `./final/f36648056.jpg' are the same file
cp: `./final/f23292016.jpg' and `./final/f23292016.jpg' are the same file
cp: `./final/f212895744.jpg' and `./final/f212895744.jpg' are the same file
cp: `./final/f281798408.jpg' and `./final/f281798408.jpg' are the same file
cp: `./final/f23305312.jpg' and `./final/f23305312.jpg' are the same file
cp: `./final/f213092352.jpg' and `./final/f213092352.jpg' are the same file
cp: `./final/f36765832.jpg' and `./final/f36765832.jpg' are the same file
cp: `./final/f22606080.jpg' and `./final/f22606080.jpg' are the same file
cp: `./final/f9939176.jpg' and `./final/f9939176.jpg' are the same file
cp: `./final/f9976984.jpg' and `./final/f9976984.jpg' are the same file
cp: `./final/f24076336.jpg' and `./final/f24076336.jpg' are the same file
cp: `./final/f23214608.jpg' and `./final/f23214608.jpg' are the same file
cp: `./final/f22364408.jpg' and `./final/f22364408.jpg' are the same file
cp: `./final/f212928512.jpg' and `./final/f212928512.jpg' are the same file
cp: `./final/f22599776.jpg' and `./final/f22599776.jpg' are the same file
cp: `./final/f281495184.jpg' and `./final/f281495184.jpg' are the same file
cp: `./final/f213075968.jpg' and `./final/f213075968.jpg' are the same file
cp: `./final/f213010432.jpg' and `./final/f213010432.jpg' are the same file
cp: `./final/f10013848.jpg' and `./final/f10013848.jpg' are the same file
cp: `./final/f23319552.jpg' and `./final/f23319552.jpg' are the same file
cp: `./final/f36660944.jpg' and `./final/f36660944.jpg' are the same file
cp: `./final/f22407712.jpg' and `./final/f22407712.jpg' are the same file
cp: `./final/f281233560.jpg' and `./final/f281233560.jpg' are the same file
cp: `./final/f213033840.jpg' and `./final/f213033840.jpg' are the same file
cp: `./final/f23842984.jpg' and `./final/f23842984.jpg' are the same file
cp: `./final/f23937952.jpg' and `./final/f23937952.jpg' are the same file
cp: `./final/f213067112.jpg' and `./final/f213067112.jpg' are the same file
cp: `./final/f24104976.jpg' and `./final/f24104976.jpg' are the same file
`./recup_dir.20/f157231816.jpg' -> `./final/f157231816.jpg'
`./recup_dir.20/f157240016.jpg' -> `./final/f157240016.jpg'

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in Photography and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s