Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > Ext3 filesystem - can undelete work ??

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 09-09-2004   #1 (permalink)
Just Joined!
 
Join Date: Sep 2004
Posts: 3
Ext3 filesystem - can undelete work ??

i googled for help on ext3 undelete, but all i found was for ext2fs.
can undelete be accomodated for an ext3 filesystem ???
ne suggestions??
thx
UnDetEctEd is offline  



Old 09-28-2004   #2 (permalink)
Just Joined!
 
bclark4444's Avatar
 
Join Date: Dec 2003
Posts: 41
ext3 is an extension of ext2. Basically, it is just ext2 with added journaling, therefore, if you have a utility that works for ext2 it will most likely work for ext3 as well. If you are concerned about doing that, ext3 is compatible with ext2 in both directions, so you could just do the following:
1) unmount ext3 partition
2) remount partition as ext2
3) do the undelete
4) umount ext2
5) remount as ext3
But in reality, you should just be able to run it even mounted as ext3.
bclark4444 is offline  
Old 09-28-2004   #3 (permalink)
Just Joined!
 
Join Date: Sep 2004
Posts: 3
unmounting, undeleting, and then remounting will be too much of a round-about way of doing things.
and no, ext2 undelete codes dont work properly in ext3, coz of the journal.
the journal is the main thing that is to be taken into consideration, otherwise undelete is not a problem ...

post if u hav ne more ideas to the solution to this ...
UnDetEctEd is offline  
Old 09-28-2004   #4 (permalink)
Linux Engineer
 
Join Date: Aug 2004
Posts: 826
this may be useful: http://www.mialug.org/modules.php?na...e=print&sid=45

if not, scroll to the bottom for suggestions on methods of deleting that will be helpful for future undeletes.
sether is offline  
Old 12-03-2004   #5 (permalink)
Just Joined!
 
Join Date: Dec 2004
Posts: 1
Nope...

You cannot undelete ext3 files with ext2 tools. This is because ext3 overwrites the block pointer in the file's inode with 0's. For more info, check out this:

http://batleth.sapienti-sat.org/proj.../ext3-faq.html

Your best chance is probably to grep the hard drive for a string, but this will usually only work on text files.

dan
Newcastle is offline  
Old 08-08-2005   #6 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 1
To recover anything from ext3, first umount the partition !
Here is the line that helped me recover some web scripts:

grep --binary-files=text -30 "<\%" /dev/hda6 >output

where:
30 is the context to display (how many lines before/after)
"<%" is the script delimiter, present in all the files I wanted to recover
/dev/hda6 is the partition where the files resided

Then simply browse through output and select what you want.
punkomat is offline  
Old 03-04-2007   #7 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 1
Hello,
Could you elaborate on this method. I need to recover some .doc file but have no idea how to do it.

Thank you.

Otherwise anyone know a good divorce lawyer, as these were my wife's work files
Zaug! is offline  
Old 03-22-2007   #8 (permalink)
Linux Newbie
 
Join Date: Dec 2002
Location: Texas
Posts: 223
Having a good backup strategy is priceless.
Everyone make sure you're running backups.
thehemi is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:11 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1