Originally Posted by da tick 07
It allowed me to install the extundelete but this command won't work and the extundelete gives me a "journal not found " error
OK, well that either wasn't the journal, or it was the journal and is too corrupted to be readable. Based on the info you provided earlier, if anything else on the array contained the journal, then the journal is unrecoverable, as there weren't any other arrays that had 3 or more (of the 4) usable partitions.
So we're at the last resort: photorec
. This is a powerful but rather complex tool. Again, there is no way to recover in-place; you will need a temporary hard drive to recover files into.
This should already be on the Live CD; if it isn't, you can install it with:
yum install testdisk
I assume that the temporary hard drive comes up as /dev/sde and contains one partition, /dev/sde1 (your drive may vary) and that you will mount a temporary drive at /recovery
for the code examples given though you can put it somewhere else if you desire.
mount /dev/sde1 /recovery
photorec /d /recovery /cmd /dev/md0 partition_none,options,mode_ext2,fileopt,everything,enable,search
This last will preset photorec's options to attempt to recover everything possible from the array. It may take several hours. Once this is done, your temporary drive will be stuffed full of files, many of which may end up being old binaries, includes, or just random garbage that you thought you deleted months ago. Some files may even be incomplete. The really
hard part will be going through all of it.Edited by error10 - 5/9/11 at 7:26pm