Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

is it possible to undelete files from Linux EXT3?.

Posted on 2007-11-28
10
Medium Priority
?
2,414 Views
Last Modified: 2013-12-05
Dear sir,
i want to recover file from ext3 partition,is it possible to recover files using journal?
waiting for your reply
Thanks  
0
Comment
Question by:davinder101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 5

Expert Comment

by:pavaneeshkumar
ID: 20371495
it is really painfull to recover files in ext 3.

Have a look on this article hope this will help.

http://linux.sys-con.com/read/117909.htm
http://linux.sys-con.com/read/117909_2.htm
0
 
LVL 12

Assisted Solution

by:ibu1
ibu1 earned 100 total points
ID: 20371526
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.
0
 

Author Comment

by:davinder101
ID: 20371829
thanks for your suggestions,
  sir,i am providing some useful information which might  help you to guide me.
   in journal data structure,all the updations are recorded in descriptor of journal with their sequence no.
   we can get the inode no. from directory entry,it will give us the related block group
   in which that inode table resides,finally we can find out the corresponding block no.
   in journall there would many references to that block,
   but how can i get  the  reference which gives the previous inode entry of deleted file.
   Thanks
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 100 total points
ID: 20371872
As already mentioned, it's going to be tricky.  One thing you may want to consider in the future (apart from having good backups) is using GIIS.

http://sourceforge.net/projects/giis/
0
 

Author Comment

by:davinder101
ID: 20371919
i have accidentally deleted some files,but i did not install GIIS(in GIIS it would not recover the files which have been deleted before its installation)
how can i recover those files?
0
 
LVL 5

Accepted Solution

by:
pavaneeshkumar earned 300 total points
ID: 20371958
did you checked links posted before.
In your case this is the only way to recover deleted filed.

http://linux.sys-con.com/read/117909.htm
http://linux.sys-con.com/read/117909_2.htm

0
 

Author Comment

by:davinder101
ID: 20380191
ok,what wre the steps to recover files in ext3,using debugfs?
is it recover all types of files?
0
 
LVL 5

Expert Comment

by:pavaneeshkumar
ID: 20380293
what wre the steps to recover files in ext3,using debugfs?
             steps are already given in the article.

is it recover all types of files?
            yes .
0
 

Author Comment

by:davinder101
ID: 20393889
sir,i followed the steps of journal based recovery
the output is given below

debugfs:logdump -i <12>
inode 12 is at group 0,block 0,offset 4580
journal starts at block 0,transaction 125

but it did not show the block pointers of inode 12
where am i going wrong?
is this method recovers files which have not  been deleted recently?

0
 

Expert Comment

by:emadmoh
ID: 20626786
i have the same problem , some of my files are deleted , i tried to install recovery data for linux from recoverytools.com , but it's not working , and i when i tried the debugfs command , i got a message can't open file system , all my data are stored on SAN Storage  , any way to recover please , Help
0

Featured Post

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question