/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
Who never encountered problems
with a failing media, never accidently dropped a valuable file, corrupted his
FAT(File Allocation Table) or simply got bad disk block sectors ? Of course
restoring his backup in such cases would be the easiest way to recover precious
data.. Unfortunately it is often in such a situation we saw that backup is a
month old or our files have never been backuped. The following lines relate
such stories and introduce some ways to recover data with open source
softwares.
A nice sunny day
It was a nice sunny
Saturday and I was invited at my girlfriend’s mother home for tea. During lunch
she spoke about weird behavior with her PC
under windows XP, error messages, impossible files to drop from the desktop and
a lot of other weird stuff. I was quite proud to offer some help in order to
solve those problems.
So I tried to switch
on the computer by pressing the power button but the PC shutdown after 5 seconds!
Furthermore, the power button remained pushed in each time I pressed on it due
to a broken plastic inside the power switch. After 5 minutes I finally
succeeded starting the PC and a wonderful Windows XP logo preceding error messages about missing “.dll” files appeared.
Finally after removing 2 out of 3 antivirus/spywares and some unused programs,
the computer behavior became smoother, although still very slow so I decided to
run a checkdisk on C:\ drive. As you know when one does such an operation on
windows, one has to reboot it, which I
did. The checkdisk started, step 1 out of 5, 2 out of 5, when the following
message appeared : “unable to locate the
file name attribute of index entry etc”, “not enough space to rebuild index”,
etc..
When the chkdsk ended,
the computer restarted, the windows xp logo appeared and the computer automatically
switched off. Nothing concerning the power switch button this time, it was the
disk. No more visible data on it. This nice sunny day became really cloudy when
my girlfriend told me that her mother stored a lot of important documents
concerning her work and many pictures. Of course she obviously hadn’t any
backup as well as the majority of people storing precious data.
I decided to
take the hard drive home to plug it in as ”slave” on my own PC. The disk was
present but windows indicated 0 disk space available and 0 disk space used. Disappointed,
I decided to contact a company specialized in data recovery to ask for a quote
and received it a few days later with the amount of 1684 Euro for a complete
data recovery without guarantee
that the integrity of the data would be recovered. It indicated : “The
reasons for the defective data are major structure damages.”
It was simply too expensive to recover maybe
only unusable blocks on a drive.

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Let’s save those data with
open source softwares
I decided to look for softwares on the internet
in order to resolve this problem. I was amazed to discover so many recovery
tools e.g.: active partition recovery, ontrack easy recovery, active uneraser,
lost & found, prosoft media tools, active undelete and many others.
Attempting to repair the filesystem directly
on the defective disk would generate unnecessary disk activity
and carries the risk of further damage to the drive. Therefore the first step in such a
situation is to copy the hard drive onto another one.
I firstly thought about dd for this task and
noticed a lot of better tools had been developed to copy data from one disk to another,
like ddrescue, dd_rescue and dd_rhelp (wrapper script
for dd_rescue). My
choice went on ddrescue because it combines advantages from dd_rescue and dd_rhelp. Unlike dd, dd_rescue will not stop when it encounters errors. It is
especially useful when you work with failing media. In addition it allows
copying blocks backward, so if we have an error in the middle of a block, ddrescue will copy
both data before and after the error inside this block.
Ubuntu distrib has been used to proceed to this
recovery.Notice that it’s not needed to have any Linux installation, knoppix
allows to boot on a live CD and all needed software to copy and recover data
are available on it.
In the following case the partition /dev/sdc2
need to be duplicated. In order to proceed to the partition copy it’s mandatory
to create a new partition of the same size as the defective one on a backup
disk. Fdisk will perfectly fullfill this
mission.
The partition size can be calculated by substracting
the end column(last cylinders) to the start column(first cylinder). In the case below 10240-833 = 9507 cylinders.
steulet@steulet-desktop:~$
sudo fdisk /dev/sdc
Command (m for help): p
Disk /dev/sdc: 80.0 GB,
80060424192 bytes
240 heads, 63
sectors/track, 10341 cylinders
Units = cylinders of 15120
* 512 = 7741440 bytes
Disk identifier: 0x1549f232
Device Boot Start End Blocks
Id System
/dev/sdc1 1 832
6289888+ c W95 FAT32 (LBA)
/dev/sdc2
* 833 10340
71880480 7 HPFS/NTFS
Creation of a new partition - /dev/sdd1 -
onto the new media - /dev/sdd - with fdisk is a straightforward process.
steulet@steulet-desktop:~$
sudo fdisk /dev/sdd
Command (m for help): n
Command action
e
extended
p
primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38913,
default 1):
Using default value 1
Last cylinder, +cylinders
or +size{K,M,G} (1-38913, default 38913): 9508
Then ddrescue can duplicate blocks on the second
media. As shown bellow the average rate for duplicate is about 1Mb/s on a small
configuration, meaning that about 28 hours are needed to copy a 100Gb partition
and 12 days for 1Tb.
steulet@steulet-desktop:~$
sudo ddrescue /dev/sdc2 /dev/sdd1
Press Ctrl-C to interrupt
rescued: 73605 MB,
errsize: 0 B, current rate: 699 kB/s
ipos:
73605 MB, errors: 0,
average rate: 1064 kB/s
opos:
73605 MB
Once the failing media partition is fully copied,
data recovery can start. One more time a variety of useful tools can be found
on internet. The one used in this example is TestDisk. TestDisk is a free open source software originaly
created to recover lost partition or making non bootable disk bootable again.
TestDisk has a large set of functionalities such
as : undeleting files from FAT,NTFS and ext2 filesystem, recovering/rebuilding NTFS
boot sector, fixing FAT tables, copying files from deleted FAT, NTFS, ext2/ext3
partitions and many others. In addition TestDisk can be run on many operating
systems such as Windows, Linux, macOS, SunOS, BSD.
Having a short look on TestDisk will present
some interesting functionalities
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
TestDisk is free software, and
comes with ABSOLUTELY NO
WARRANTY.
Select a media (use Arrow
keys, then press Enter):
Disk /dev/sda - 160 GB /
149 GiB - ATA SAMSUNG HD160JJ
Disk /dev/sdb - 160 GB /
149 GiB - ATA SAMSUNG HD160JJ
Disk /dev/sdc - 80 GB / 74
GiB - ATA SAMSUNG SP0802N
Disk /dev/sdd - 320 GB / 298 GiB - Hitachi HTS543232L9A300
[Proceed
]
[ Quit ]
Note: Disk capacity must be
correctly detected for a successful recovery.
If a disk listed above has
incorrect size, check HD jumper settings, BIOS
detection, and install the
latest OS patches and disk drivers.
After having selected the disk to analyze,
TestDisk will ask you for the partition table type. In the current case “Intel”
is used. Notice that it is also possible to use Mac, Sun or even Xbox
partition.
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sdd1 - 85 GB / 79
GiB - Hitachi HTS543232L9A300
Please select the partition
table type, press Enter when done.
[Intel ] Intel/PC partition
[EFI GPT] EFI GPT partition map (Mac i386, some
x86_64...)
[Mac ]
Apple partition map
[None ] Non
partitioned media
[Sun ]
Sun Solaris partition
[XBox ]
XBox partition
[Return ] Return to disk selection
Note: Do NOT select 'None'
for media with only a single partition. It's very
rare for a drive to be
'Non-partitioned'.
After analyzing disk partitions, TestDisk shows the
available partitions and also offers functionalities such as rebuilding boot
sector.
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sdd - 320 GB /
298 GiB - CHS 38913 255 63
Partition Start End
Size in sectors
1 * HPFS - NTFS 0 1 1
10340 254 63 166128102 [HP_PAVILION]
Boot sector
Status:
OK
Backup boot sector
Status: Bad
Sectors are not identical.
A valid NTFS Boot sector
must be present in order to access
any data; even if the
partition is not bootable.
[ Quit
] [ List
] [Org. BS ] [Rebuild BS] [
Dump ]
Copy boot sector over
backup sector
TestDisk 6.10, Data Recovery
Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sdd - 320 GB /
298 GiB - CHS 38913 255 63
Partition Start End
Size in sectors
1 * HPFS - NTFS 0 1 1
10340 254 63 166128102 [HP_PAVILION]
filesystem size 166128102 166112100
sectors_per_cluster 8 8
mft_lcn 10 10
mftmirr_lcn 1048576 1048576
clusters_per_mft_record -10 -10
clusters_per_index_record 1
1
Extrapolated boot sector
and current boot sector are different.
[ Dump
] [ List
] [
Write ] [
Quit ]
List directories and
files
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
Write new NTFS boot sector, confirm ? (Y/N)
As expected TestDisk recovered the backup boot sector
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sdd - 320 GB /
298 GiB - CHS 38913 255 63
Partition Start End
Size in sectors
1 * HPFS - NTFS 0 1 1
10340 254 63 166128102 [HP_PAVILION]
Boot sector
Status: OK
Backup boot sector
Status: OK
Sectors are identical.
A valid NTFS Boot sector
must be present in order to access
any data; even if the
partition is not bootable.
[ Quit
] [ List
] [Rebuild BS] [Repair MFT]
[ Dump ]
Return to Advanced
menu
Sometimes the MFT
(Master File Table) can be also corrupted. Microsoft Check Disk (chkdsk) can
failed trying to repair the MFT. TestDisk offers the possibility to repair this
MFT through the advanced menu after having selected the NTFS partition has shown
above „Repair MFT“.
TestDisk provides plenty of other functionalities, adding a partition, changing
is type or listing files inside a partition and copy those files to another
location, etc…
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sdd - 320 GB /
298 GiB - CHS 38913 255 63
Partition Start End
Size in sectors
* HPFS - NTFS 0 1 1
10340 254 63 166128102 [HP_PAVILION]
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys
to CHANGE partition characteristics:
*=Primary bootable P=Primary
L=Logical E=Extended D=Deleted
Keys A: add partition, L:
load backup, T: change type, P: list files,
Enter: to continue
NTFS, 85 GB / 79 GiB
Example below demonstrates the possibility to copy
files from defected media to another place.
TestDisk 6.10, Data
Recovery Utility, July 2008
Christophe GRENIER
<grenier@cgsecurity.org>
http://www.cgsecurity.org
* HPFS - NTFS 0 1 1
10340 254 63 166128102 [HP_PAVILION]
Directory /
dr-xr-xr-x 0
0 0 6-Sep-2009 17:52 .
dr-xr-xr-x 0
0 0 6-Sep-2009 17:52 ..
-r--r--r-- 0
0 50 1-Jan-2005 19:49 AUTOEXEC.BAT
-r--r--r-- 0
0 218 30-Oct-2005 18:04
BOOT.BAK
-r--r--r-- 0
0 298 30-Oct-2005 18:04
boot.ini
dr-xr-xr-x 0
0 0 2-Jan-2005 04:00 Config.Msi
-r--r--r-- 0
0 0 23-Nov-2004 15:21
CONFIG.SYS
dr-xr-xr-x 0
0 0 13-May-2006 12:18
C_DILLA
-r--r--r-- 0
0 62 6-Sep-2009 17:16 delfichier.bat
dr-xr-xr-x 0
0 0 2-Jan-2005 05:01 Documents and Settings
-r--r--r-- 0
0 528011264 6-Sep-2009 17:24 hiberfil.sys
dr-xr-xr-x 0
0 0 2-Jan-2005 05:05 hp
-r--r--r-- 0
0 0 23-Nov-2004 15:21
IO.SYS
-r--r--r-- 0
0 0 23-Nov-2004 15:21
MSDOS.SYS
-r--r--r-- 0
0 47564 5-Aug-2004 13:00 NTDETECT.COM
-r--r--r-- 0
0 252240 5-Aug-2004 13:00 ntldr
-r--r--r-- 0
0 792723456 23-Dec-2007 05:35
pagefile.sys
dr-xr-xr-x 0
0 0 2-Jan-2005 05:21 Program Files
dr-xr-xr-x 0
0 0 2-Jan-2005 05:21 Python22
dr-xr-xr-x 0
0 0
2-Jan-2005 05:21 RECYCLER
dr-xr-xr-x 0
0 0 2-Jan-2005 05:21 sysprep
dr-xr-xr-x 0
0 0 28-Oct-2005 17:29
System Volume Information
dr-xr-xr-x 0
0 0 2-Jan-2005 04:12 system.sav
dr-xr-xr-x 0
0 0 17-Mar-2006 17:36 temp
dr-xr-xr-x 0
0 0 2-Jan-2005 05:37 WINDOWS
Use Right arrow to change
directory, c to copy,
q to quit
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
But what about ext3
filesystem ?
Among the TestDisk limitations there
is the impossibility to recover deleted files which stand on an ext3 partition.
Having a look on forum about ext3
file recovery will often discourage you. If you are not convice that file recovery
on ext3 is not possible having a look on ext3 FAQ (http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html
) will definitively remove any hope.
1.1 Q: How can I
recover (undelete) deleted files from my ext3 partition?
Actually,
you can't! This is what one of the developers, Andreas Dilger, said about it:
In order to ensure that ext3 can
safely resume an unlink after a crash, it actually zeros out the block pointers
in the inode, whereas
ext2 just marks these blocks as unused in the block bitmaps and marks the inode
as "deleted" and leaves the block pointers alone.
Your only hope is to
"grep" for parts of your files that have been deleted and hope for
the best.
Hopefully it looks that
this statement is too categorical. When a file is removed, data are not really overwritten. On ext3 filesystem the
pointer that reference a file is simply removed meaning that the disk area can be
overwritten if writes operation occur. Therefore the first thing to do after such
a mistake is avoiding any additional write operation. The best way to achieve
that is simply unmouting the filesystem.
Once the filesystem unmounted
one can take time looking for recovery tools. I found two tools able to recover
deleted files.
- ext3grep is a simple tool developed by Carlo Wood and
intended to aid anyone who accidentally deletes a file on an ext3
filesystem.
Both of them are intended to be run on disk images, meaning that it
is mandatory to create a disk image of the partition where the removed files
stand.
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
Some doubts ?
A concrete exemple needing file restoration
on ext3 partition could be removing all *.log files on a partition hosting redo
log files from an Oracle Database. Redo
logs that would be named with *.log extension (which is by the way strongly not
recommended especially for this reason) would be removed after such an
operation. As you maybe know an Oracle Database cannot work without at least
two redo log groups therefore such a delete would lead to a database crash.
The storage setup in the following
example is composed by two groups of raid 5 with three disks each configured by
mdadm. On the top a raid 0 (stripping) has been configured with LVM2. This
configuration – RAID 50 - is illustrated in the figure below.
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
The Oracle
database version is 10.2.0.4 and the filesystem_io_option is set to “setall“.
After removing redo logs of the SOUK
database, the following can be seen in the Oracle alert log.
LGWR: Failed to archive log 2 thread 1 sequence 72 (16198)
Sun Nov 8 17:17:32 2009
Thread 1 advanced to log sequence 72 (LGWR switch)
Current log# 2 seq# 72 mem# 0:
/u05/oradata/SOUK/redog02a_SOUK.log
Current log# 2 seq# 72 mem# 1:
/u05/oradata/SOUK/redog02b_SOUK.log
Sun Nov 8 17:18:47 2009
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/u05/oradata/SOUK/redog01b_SOUK.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-00312: online log 1 thread 1: '/u05/oradata/SOUK/redog01a_SOUK.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
In order to restore redo log files,
the first step is to avoid any additional write on the filesystem. The most writes
operations occur, the less chance we have to recover those files. That why it
is needed to stop any processes that write on this specific filesystem.
oracle@slo02test:~/
[SOUK] sqh
SQL*Plus:
Release 10.2.0.4.0 - Production on Fri Oct 23 00:08:36 2009
Copyright (c) 1982, 2007, Oracle. All
Rights Reserved.
Connected
to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown abort
ORACLE
instance shut down.
The filesystem needs to be unmounted to avoid any write
access.
[root@slo02test
~]# umount /u05
Then an image copy of the
filesystem can be done with “dd” command as shown bellow. “dd” perfectly fits
our need in such a case.
[root@slo02test ~]# dd if=/dev/mapper/vgdata-lvdata of=/u99/copyU05
6291456+0 records in
6291456+0 records out
3221225472 bytes (3.2 GB) copied, 241.446 seconds, 13.3 MB/s
Now we simply have to execute ext3grep
with the filesystem image in parameter. Several options are provided allowing
restoring from a specific date or a specific file or simply everything.
[root@slo02test u99]# ext3grep /u99/copyU05 --restore-all
Running ext3grep version 0.10.0
Number of groups: 24
Minimum / maximum journal block: 713 / 17115
Loading journal descriptors... sorting... done
The oldest inode block that is still in the journal, appears to be from
1257696360 = Sun Nov 8 17:06:00 2009
Number of descriptors in journal: 108; min / max sequence numbers: 3 / 34
Writing output to directory RESTORED_FILES/
Finding all blocks that might be directories.
D: block containing directory start, d: block containing more directory
entries.
Each plus represents a directory start that references the same inode as a
directory start that we found previously.
Searching group 0: DDD+D+++
Searching group 1:
Searching group 2:
…
…
Searching group 22:
Searching group 23:
Writing analysis so far to 'copyU05.ext3grep.stage1'. Delete that file
if you want to do this stage again.
Result of stage one:
4 inodes are referenced by one or more
directory blocks, 4 of those inodes are still allocated.
3 inodes are referenced by more than
one directory block, 3 of those inodes are still allocated.
0 blocks contain an extended directory.
Result of stage two:
4 of those inodes could be resolved
because they are still allocated.
All directory inodes are accounted for!
Writing analysis so far to 'copyU05.ext3grep.stage2'. Delete that file
if you want to do this stage again.
Restoring oradata/SOUK/redog01a_SOUK.log
Restoring oradata/SOUK/redog01b_SOUK.log
Restoring oradata/SOUK/redog02a_SOUK.log
Restoring oradata/SOUK/redog02b_SOUK.log
Restoring oradata/SOUK/redog03a_SOUK.log
Restoring oradata/SOUK/redog03b_SOUK.log
Restored files are copied in the “RESTORED_FILES” directory
of the current path. Now we only have to
copy them in the correct directory.
[root@slo02test ~]# ls -ls RESTORED_FILES/ -R
RESTORED_FILES/:
total 8
4 drwx------ 2 root root 4096 Oct 22 23:06 lost+found
4 drwxr-xr-x 3 root root 4096 Oct 22 23:09 oradata
RESTORED_FILES/lost+found:
total 0
RESTORED_FILES/oradata:
total 4
4 drwxr-xr-x 2 root root 4096 Oct 22 23:38 SOUK
RESTORED_FILES/oradata/SOUK:
total 82080
10260 -rw-r----- 1 root root 10486272 Oct 22 23:17 redog01a_SOUK.log
10260 -rw-r----- 1 root root 10486272 Nov 22 23:17 redog01b_SOUK.log
10260 -rw-r----- 1 root root 10486272 Oct 22 23:18 redog02a_SOUK.log
10260 -rw-r----- 1 root root 10486272 Oct 22 23:18 redog02b_SOUK.log
10260 -rw-r----- 1 root root 10486272 Oct 22 23:18 redog03a_SOUK.log
10260 -rw-r----- 1 root root 10486272 Oct 22 23:18 redog03b_SOUK.log
[root@slo02test ~]# mount /u05
[root@slo02test ~]# cp RESTORED_FILES/oradata/SOUK/redog0?a_SOUK.log
/u05/oradata/SOUK/
[root@slo02test ~]# chown oracle.oinstall /u05/oradata/SOUK/ -R
Once redo logs restored and copied
into the original path, database start can be done. However keep in consideration
that committed transactions could be lost depending on your database and
filesystem configuration!
oracle@slo02test:~/ [SOUK] sqh
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Oct 22 23:43:41 2009
Copyright (c) 1982, 2007, Oracle. All
Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 1271588 bytes
Variable Size 264243420 bytes
Database Buffers 805306368 bytes
Redo Buffers 2920448 bytes
Database mounted.
Database opened.
As we can see,
dropping redo log files or any other file do not necessarily lead to definitely
loosing transactions. Ext3grep can be used as an additional way to recover your
database.
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Normal
0
false
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
Conclusion
Several situations can lead to
media recovery, site disaster, block corruption, FAT corrupted, etc… In case of
hardware errors the most secure way to solve it is often calling media recovery
companies. Dealing with physical damages to a hard drive with such tools can destroy
any last hope of a successful recovery. However if no physical damages are
confirmed these tools can recover precious data.
The first thing to do when media
error occurs is stopping immediately any activity on this media. It is only
after stopping any activity on the media that we can take time to think about
the way to proceed. As shown in this article the second step is generally copying
the failing media on a trusted support. Working directly on the failing media
could lead to definitively loosing valuable data. That’s why it is strongly
recommended duplicating data before any other operation. Several tools provide
duplication functionalities such as dd_rescue.
Once the failing media duplicated
recovery can be done using the backup media. One more time a variety of tools
can be used depending on the filesystem and data to recover.
Finally once data recovered it
may worth doing a backup. Although those tools can get out of hopeless situations
and add a way to recover files to usual methods, testing backup and restore
processes at regular intervals is maybe the best way to avoid spending time in
such recovery processes.
Gregory Steulet
Oracle Certified Professional 10G
MySQL Cluster 5.1 Certified
Avaloq Certified Professional
Trivadis SA
Rue Marterey 5
CH-1005 Lausanne
Tel: +41-21-321 47 00
Fax: +41-21-321 47 01
Internet: www.trivadis.com
Mail: info@trivadis.com
Literature and Links…
http://www.cgsecurity.org/wiki/TestDisk
http://www.gnu.org/software/ddrescue/ddrescue.html
http://www.knoppix.org/
http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
http://foremost.sourceforge.net/
http://www.hiren.info/
http://www.krollontrack.com/
http://www.giis.co.in/
