Ooops.

Discussion in 'Command Line' started by Noidly1, Aug 14, 2012.

  1. Noidly1

    Noidly1 New Member

    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    0
    I accidentally deleted a couple of files and would like to know if there is an "Undelete" available.

    Thanks.

    DevynCJohnson likes this.
  2. Kerms

    Kerms New Member

    Messages:
    59
    Likes Received:
    12
    Trophy Points:
    0
    Well, if you "deleted" in a graphical-way (ie, right-click, delete) I suggest looking in the trash.
    If you actually did a rm on it, I'd shutdown the system and refrain from using it until you completely declare that the recovery was (un)successful.

    I would also use extundelete if you're using an EXTended filesystem. Moreover, I would do it on a live session.
    DevynCJohnson likes this.
  3. Noidly1

    Noidly1 New Member

    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    0
    I know little about linux and was hoping that deleted files in linux were renamed (*.*_) like in dos and windows so I could do a search for (*.*_) and change (_) back to it's original (*) and restore it back.

    Story> I rooted my android phone to delete the factory sprint crap, which worked, but accidentally deleted a file that the txt app needs. I can receive txt's and view them, but it freezes a couple of seconds later and tells me that the app failed and I can't send any txt's.

    I have tried to update the app with no avail and think it is one of the base files.

    Thanks.
  4. devnull

    devnull New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    this is a method to recover files but I've never tried it.

    search in google: linux-ext3-ext4-deleted-files-recovery-howto.html

    Regards.
  5. Kerms

    Kerms New Member

    Messages:
    59
    Likes Received:
    12
    Trophy Points:
    0
    After one annoying google search, It seems that Android was using YAFFS2 up until 2.3, and ext4 from then on.
    First, I would Plug the phone into the computer without auto mounting, and copy the entire internal storage chip with dd (ie. `dd if=/dev/androidsdx1 of=/android.phonename.yyyy.mm.dd.fstype.img'), and perform ext/yaffs file recovery with a copy of the image (dd even copies the unused space). And if all goes well, you can copy the file(s) manually, or perform the recovery on the phone itself (I would do the former with `cp -prv').

    If that fails, I would see if the appstore has the same texting app, and reinstall it.
    And if that fails and you do mind about lost data (reflashing the phone (of course, you made an image, so you could theoretically restore the data)), I would copy the file(s) from a friend's rooted phone.
    And if all else fails, I would just reflash the phone completely.
    DevynCJohnson likes this.
  6. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,220
    Likes Received:
    1,019
    Trophy Points:
    113

Share This Page