Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Ooops.

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

  1. Noidly1

    Noidly1 Guest

    I accidentally deleted a couple of files and would like to know if there is an "Undelete" available.

    Thanks.


     
    1 person likes this.
  2. Kerms

    Kerms Guest

    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.
     
    1 person likes this.
  3. Noidly1

    Noidly1 Guest

    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 Guest

    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 Guest

    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.
     
    1 person likes this.

Share This Page