LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2008, 11:27 AM   #1
manishgarg21
LQ Newbie
 
Registered: May 2008
Posts: 16

Rep: Reputation: 0
how to recover home data, got deleted with the profile


Hi,

i have deleted my complete home (/home/username) while deleting one profile which was sharing same home folder with my home. This has been done under root. After doing that i switched off the machine and hard disk was removed to avoid any overwriting. I have tried with two professional data recovery companies, they are not able to recover it. I am having HP Workstation xw8200 with RedHat EL3. I will really be very thankful if some body can help me in this.

Regards
Manish.
 
Old 05-27-2008, 12:23 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
If you are using ext3, it has an anti-file-recovery mechanism. Files are deleted for good.

From the ext3 FAQ ( 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.
Try reading http://linux.sys-con.com/read/117909.htm
 
Old 05-27-2008, 05:59 PM   #3
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
The two professional data recovery companies didn't fail without a reason.

You could create a copy of the disk using 'dd' and parse the created file for certain known filetypes (based on specific file headers or tail information) but this is extremely painfull and takes a lot time. If you want to get back images or fonts, then it could work. To retrieve textfiles you will have to read your way through the dd file. For complex binary files like office documents it will be a horrible task. You could write a few programs to parse the contents based on what you are looking for, if the value of the contents is worth the effort. I don't think that there is any existing single application that does it all, just the way you want it to be.

Sharing home directories is not a good idea, as it seems.

Linux Archive

Last edited by seraphim172; 06-25-2008 at 04:36 AM.
 
Old 05-28-2008, 12:31 AM   #4
manishgarg21
LQ Newbie
 
Registered: May 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,

Thank you for both of the replies.
Would you recommend any company for doing this task.

Regards
Manish
 
Old 05-28-2008, 06:08 AM   #5
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
I cannot recommend any company that will write a custom program to search the disk for whatever file types you lost. What you need to understand is that most of your data is gone for good, even though, at great expense, you might recover a few bits.
 
Old 05-28-2008, 07:16 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I have to say that I have had some success with photorec (even with ext3), which can be found on the internet for free. It is very likely that larger files (especially video) will have been badly mangled but pictures and text documents should have survived. You need to bear in mind that recovery can be quite time consuming: not only does the program take time to scan your drive, everything will be renamed in the process as a format does not destroy data so much as their meta-data (i.e. file names and the like) so you'll need to check and sort the results manually.
 
  


Reply

Tags
data, recovery


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reiserfsck stops when rebuilding tree at 50% - trying to recover deleted data vangelis Linux - Software 6 10-23-2006 12:34 PM
need to recover data in a deleted inode wilsonsamm Linux - General 6 08-30-2006 11:34 AM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
Software to help me recover 'Deleted' FAT32 Partition Data? flamesrock Linux - Software 8 07-26-2005 10:39 PM
Help: Recover /ect/profile npd Linux - Newbie 4 08-09-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration