Find the answer to your Linux question:
Results 1 to 8 of 8
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...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    Just Joined! bclark4444's Avatar
    Join Date
    Dec 2003
    Posts
    55
    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.

  3. #3
    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 ...

  4. #4
    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.

  5. #5
    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

  6. #6
    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.

  7. #7
    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

  8. #8
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242
    Having a good backup strategy is priceless.
    Everyone make sure you're running backups.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •