OpenSUSE Linux Rants

OpenSUSE Linux Tips, tricks, how-tos, opinions, and news

My Resume  -  My LinkedIn Profile

February 18, 2009

Linux Tool Resurrects Deleted Images

by @ 3:42 pm. Filed under sweet tools

OpenSUSE Linux Blog

In Linux, it’s a little more difficult to recover deleted files than in Win32 platforms. Some may argue that this is not the case, but for your regular old non-techie email-and-Internet user, I’d venture to guess that it is. That, and I’m always right (Raise your hand if you think I actually believe this. Brett, put your hand down.).

As it so happened, I deleted about 500 photographs of my family the other night. The problem was that those were the only copies. Yep, that sucks.

As it turned out, I was able to retrieve them using photorec, a part of the testdisk suite of tools for the Linux operating system. The latest version of photorec for OpenSUSE Linux is available from the packman repository. Here’s the description from the Photorec Wiki Page:

“PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its ‘Photo Recovery’ name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media’s filesystem has been severely damaged or re-formatted.”

You install photorec and run it from the command line. It will then present you with a few screens, where you tell it how you want it to operate. Generally, you’ll need another partition to restore the files to (I used a USB drive). I was able to recover about 4900 images, which included all of the ones that I had deleted accidentally.

If you accidentally delete images in Linux, give photorec a try.

3 Responses to “Linux Tool Resurrects Deleted Images”

  1. mudCat Says:

    Today, I thought I had inadvertently deleted some potentially important files by trashing a softlinked directory — I thought I was just getting rid of the link, but took the original directory with it. Panic immediately ensued (these were not my files and wasn’t sure of their value). Before calming down and realizing that the entire directory was sitting in the GNOME trash, I did some research to find out what recovery options were and came across ext3undel, which is a set of scripts that uses photorec, testdisk, and sleuthkit. I haven’t toyed with it, yet. But, I plan to have it available on my openSUSE systems. (Not sure how difficult it will be to install on SLES, but I might want to have it there, as well.) You and your readers might find it of some value, as well. It installs just fine on openSUSE 11.1, once dependencies are met. Here are some links:

  2. Scott Morris Says:

    Thanks for the heads-up. Good suggestion. Thanks for stopping by!

  3. Jay Says:

    A more detailed tutorial on Photorec, with pictures:

OpenSUSE Linux Rants
Official OpenSUSE Linux Site

internal links:


SUSE Resources

search blog:


March 2022
« Feb    

63 queries. 1.267 seconds