View previous topic :: View next topic |
Author |
Message |
pmgas Tux's lil' helper
Joined: 23 Apr 2003 Posts: 97 Location: Austria
|
Posted: Thu Nov 25, 2004 2:53 pm Post subject: HELP - recover deleted files ... |
|
|
Hi
I have a very big problem ...
I deleted some important files and I MUST recover them ...
Is there a possibility for that?
FS is reiser4!
thxs |
|
Back to top |
|
|
chrism Guru
Joined: 15 Jul 2004 Posts: 526
|
Posted: Thu Nov 25, 2004 3:04 pm Post subject: |
|
|
I don't think so, at least I couldn't figure out a way to do this. I had the same problem some while ago.
Chris |
|
Back to top |
|
|
dohko Tux's lil' helper
Joined: 24 Sep 2004 Posts: 112 Location: São Paulo - Brasil
|
Posted: Thu Nov 25, 2004 6:03 pm Post subject: |
|
|
Hi,
There's a trick you can use to recover text files, but you are very lucky if it works.
First of all, stop using the partition where your deleted data was. This is to minimize the risk of something else overwriting the deleted inodes. Use a livecd for example.
So, suppose you've lost a text file that started with the string "architecture of ppc chips". You could then do the following:
Code: |
grep -a -B5 -A100 "architecture of ppc chips" /dev/sda4 > recover.txt |
Assuming the partition where your lost data was is /dev/sda4, what happens in the above command line is the following: grep will search the "binary file" /dev/sda4 as a text (-a) and output the five lines right before the occurence (-B5) and the following hundred lines (-A100). The output will be redirected to the file recover.txt.
If you're lucky enough, I'll ask you to pick up the lottery numbers for me
Tips: don't redirect the output to the same partition of the lost data because this may overwrite the precious deleted inodes.
Good luck! |
|
Back to top |
|
|
|