Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - recover deleted files ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pmgas
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2003
Posts: 97
Location: Austria

PostPosted: Thu Nov 25, 2004 2:53 pm    Post subject: HELP - recover deleted files ... Reply with quote

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
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Thu Nov 25, 2004 3:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
dohko
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2004
Posts: 112
Location: São Paulo - Brasil

PostPosted: Thu Nov 25, 2004 6:03 pm    Post subject: Reply with quote

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 :D

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum