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.

OpenSUSE Linux Rants
Official OpenSUSE Linux Site

internal links:


SUSE Resources

search blog:


February 2009
« Jan   Mar »

58 queries. 0.618 seconds