LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2007, 07:31 PM   #1
alix123
Member
 
Registered: Nov 2004
Posts: 63

Rep: Reputation: 15
Red face Urgent :how to undelete the directory and files in redhat linux


By mistake i did rm -rf /dir (on a directory in linux). (its really painfull i have been working from last one week and all my work is gone. Can somebody please help ?? All my scripts,directories and files are gone are gone no files/ no directory ..nothing is left.. with me

Can somebody help in recovering my files and directories . I'am using redhat enterprise linux version 4 and my filesystem is ext3
If required i can talk it over the phone to recover files.

Last edited by alix123; 05-15-2007 at 08:02 PM.
 
Old 05-15-2007, 08:28 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by alix123
By mistake i did rm -rf /dir (on a directory in linux). (its really painfull i have been working from last one week and all my work is gone. Can somebody please help ?? All my scripts,directories and files are gone are gone no files/ no directory ..nothing is left.. with me

Can somebody help in recovering my files and directories . I'am using redhat enterprise linux version 4 and my filesystem is ext3
If required i can talk it over the phone to recover files.
There is no "undelete" when using the command line. You will need to use one of several filesytem recovery tools.

While we are waiting for someone who knows these things, don't write anything to that disk. Ideally, don't use it at all. In principle, the files are recoverable unless something gets written on top of them.
 
Old 05-15-2007, 09:25 PM   #3
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
I'm not sure, but the knoppix std live cd might have what you need.
 
Old 05-15-2007, 09:47 PM   #4
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
The rm command is one of the most devastating commands in the hands of the unwary. I've trashed my entire system a couple times with it. There is no recovery. Theoretically, if the portion of the drive disk where this information previously was has not been written over, then it should still be there... and be recoverable. However, that is a job for a hard disk dissection expert. You'll have to pay someone to do that for you at a shop somewhere. It's usually not worth it. That service starts at $300US or so.

I'm sorry this happened to you.
 
Old 05-15-2007, 10:17 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
http://batleth.sapienti-sat.org/proj.../ext3-faq.html
Quote:
Q: How can I recover (undelete) deleted files from my ext3 partition?
Actually, you can't! This is what one of the developers, Andreas Dilger, said about it:

In order to ensure that ext3 can safely resume an unlink after a crash, it actually zeros out the block pointers in the inode, whereas ext2 just marks these blocks as unused in the block bitmaps and marks the inode as "deleted" and leaves the block pointers alone.

Your only hope is to "grep" for parts of your files that have been deleted and hope for the best.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
undelete files DonaldUK Linux - General 2 03-08-2006 07:55 AM
can ntfsundelete be used to undelete a whole directory? eantoranz Linux - Software 1 12-14-2005 11:13 PM
How can I undelete some files in Linux ? Menestrel Slackware 5 08-30-2004 04:17 AM
Undelete files? deWin Linux - Newbie 5 06-10-2004 11:11 AM
Undelete Files twantrd Linux - General 11 03-24-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration