how to recover home data, got deleted with the profile
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.