Google Answers Logo
View Question
 
Q: Undelete a file in Fedora Core 3 ( No Answer,   1 Comment )
Question  
Subject: Undelete a file in Fedora Core 3
Category: Computers > Operating Systems
Asked by: nomishk-ga
List Price: $10.00
Posted: 26 Sep 2005 06:24 PDT
Expires: 27 Sep 2005 03:12 PDT
Question ID: 572716
I am using Fedora Core 3. And I have accidentally deleted an important
file from the harddisk. How could I recover it, even not complete is
okay! (maybe a large part of it is useful. Thanks)
p.s. By the way, it was deleted by ANT, so it does not exist in the trash bin....
I tried the 'grep -a -B2 -A200 "xxxx" /dev/sda'  method, but it says
memory exhausted...
and not able to add too many hardware to it, since it is not my
computer, it's my organization's server.
Thanks in advance...

Request for Question Clarification by leapinglizard-ga on 26 Sep 2005 10:34 PDT
What kind of file system is installed on the disk partition containing
the deleted file? It's probably ext2 or ext3, but which one? There are
several courses of action open to you if it's ext2. With ext3, the
only thing you can do is grep for the file contents. If you have to
grep, I suggest that you do so using the longest phrase you can
remember from the document. Is it a text file, by the way?

leapinglizard
Answer  
There is no answer at this time.

Comments  
Subject: Re: Undelete a file in Fedora Core 3
From: bozo99-ga on 26 Sep 2005 17:43 PDT
 
1.  Stop (or at least minimise) change on the affected filesystem until you have
    taken a copy of it.

2.  Copy that filesystem to somewhere you can work on it, which if you have
    sufficient space could be another FS on the same machine.
    (I've dome this with some success copying to another machine.)
    e.g.   dd if=/dev/hda5 of=/spare/recover/hda5.img bs=81920k

3.  Chop the image into pieces of manageable size and examine them to see
    which (if any) contain what you want.  For these tasks you can do much
    better than split and grep: have a look at
        http://www.notatla.org.uk/SOFTWARE/file_recovery/index.html

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy