How to Recover Corrupt jpeg and mov Files from a Digital Camera’s SDD Card on Fedora/CentOS/RHEL

Background

Have you ever had a digital camera SDD card get corrupt and become unreadable? Through the use of the handy tool photorec, all the files on the card can be recovered.

Installation

First you need to install photorec. It’s included in a package called testdisk. This package was available in the CentOS/RHEL epel repos as well as the Fedora 14 repo.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% sudo yum install testdisk
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package testdisk.x86_64 0:6.11-6.fc12 set to be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
====================================================================================================================================
 Package                        Arch                         Version                             Repository                    Size
====================================================================================================================================
Installing:
 testdisk                       x86_64                       6.11-6.fc12                         fedora                       257 k
 
Transaction Summary
====================================================================================================================================
Install       1 Package(s)
 
Total download size: 257 k
Installed size: 859 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 257 k
testdisk-6.11-6.fc12.x86_64.rpm                                                                              | 257 kB     00:02     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : testdisk-6.11-6.fc12.x86_64                                                                                  1/1 
 
Installed:
  testdisk.x86_64 0:6.11-6.fc12                                                                                                     
 
Complete!

Example Use

First put your SDD card into a card reader attached to your Linux box. Next you’ll need to run photorec.

1
% photorec

photorec #1

photorec #2

photorec #3

photorec #4

photorec #5

photorec #6

photorec #7

photorec #8

photorec #9

photorec #10

nautilus recovered files dir.

nautilus recovered images

This entry was posted in centos, digital camera, fedora, Hardware, linux, rhel, Syndicated, tip, tutorials. Bookmark the permalink.

Comments are closed.