>While I'm still off topic and speaking of data recovery, has anyone
>every recovered data from a ext3 filesystem after all utilities have
>been tried to repair them?  I've tried all the utilities off of
>freshmeat.net and nothing works.  I've got bad blocks and i-nodes.  Any
>suggestions are welcome and you can email me off list.


as i had mentioned yesterday, i had written a script some time ago that
dealt a little with this.  i have since found it (or a version of it) in
dead tree form- so i retyped it and am sure there are several things wrong
with it.

i am not sure what all the components do anymore- i did not document it well
:P

now that i've looked at it, it's really for getting to files that are
unlinked etc..... so i am not sure it will do you any good.

to bring this more on topic, i would like to see what ways something like
this can be improved- it served useful to me in the past, but i'm sure it
can be made more useful:::


#!/usr/bin/perl

# added proper things when retyping it:
use warnings;
use diagnostics;
use strict;
#-------------------

my $cfile = "/tmp/commands.file";
my $filesystem ="/dev/hda6";
my @path = ("/tmp/recover","","/recover","",".ebu");  #making a path to put
my $date="Oct"; #just files from October                #stuff later

open (OUT,">$cfile");
print OUT "open $filesystem\n";# i wonder what this is for?

foreach (`/sbin/debugfs -R lsdel /dev/hda6`){#why did i hard code /dev/hda6?

#debugfs let's me list a bunch of inodes and i stick the list in a file

        m/(\d+)/;
        $path[3]=$1;   #had to split this regex to dead with some edge case 
        $1=~m/(\d)/;    # but i can't recall what....

        $path[1]=$1;
        my $quatch = join("",@path);
        my $place= "path[0]$path[1]";
        print OUT("dump <$path[3]> $quatch\n") if ((m/$date/));

        `mkdir $place`;
}


-----------------

then i chmod 755 command.file?  or is it a file used by another tool???

i just don't remember!!!

hope others can clarify?  

it's funny about code... since i've written this, i've learnt how to
document things far more completely....



good lesson to learn!


willy

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to