Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Recovering a deleted file

  1. #1
    Join Date
    Aug 2013
    Beans
    29

    Recovering a deleted file

    Ok, I am running ubuntu 13.10 and I have deleted a file. I have been trying for days now to find a simple way to recover it and maybe I am truly out of luck.

    I have tried scalpel and foremost and ext4..something or other, with all of these I got partly way through then hit a snag, like unmount the partition, which I don't have access to, and do I unmount my /root or my /home and how would I unmount my /root isn't the operating system on it?

    I have used gparted to "attempt data rescue" and that scanned for over an hour and then came came up empty.

    Is there really no hope of recovering this file?

    Any suggestions greatly appreciated.

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,634
    Distro
    Ubuntu

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    I would try photorec

    To recover files from a unmounted root partition you would have to run the recovery software from a live cd/usb etc

  3. #3
    Join Date
    Aug 2013
    Beans
    29

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    sudo extundelete --restore-file tux/home/tony/Desktop/BV-rents.ods /dev/sda6
    [sudo] password for tony:
    WARNING: Extended attributes are not restored.
    WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.
    The partition should be unmounted to undelete any files without further data loss.
    If the partition is not currently mounted, this message indicates
    it was improperly unmounted, and you should run fsck before continuing.
    If you decide to continue, extundelete may overwrite some of the deleted
    files and make recovering those files impossible. You should unmount the
    file system and check it with fsck before using extundelete.
    Would you like to continue? (y/n)

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,391
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    courseinmiracles2; Hi !

    Here is the why recovery of files is so "difficult":
    http://linux.sys-con.com/node/117909?page=0,0
    And a few suggestions on how one might be able to recover a file.

    Not much help, but knowing why
    may make one feel better
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  5. #5
    Join Date
    Aug 2013
    Beans
    29

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    Hey Guys thanks for the responses but still no luck.

    Maybe it has been written over.

    I did use R-Linux to create an image of my /root dir but when I use it to recover the files it crashes 5 minutes into the process, i've done it twice.

    My wife finally has some ammo when talking about windows verse linux. What a bummer.

  6. #6
    Join Date
    Jan 2014
    Location
    Karlsruhe, Germany
    Beans
    12
    Distro
    Ubuntu Studio

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    As long as the ammo ain't the "Recycle bin" from Windows. Well, Linux has that, too. There's not much of a difference between Linux and Windows in that regard. Delete a file with the file manager, it goes to the "trash" or "recycle" bin. Delete a file on the terminal (rm on Linux or del in Windows) it's usually gone forever).

    Dennis

  7. #7
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    del used to have undelete counterpart. i dont' know if they still have it. there were also programes that could restore the files but you needed to know the first leter of the file.
    Easy to understand Ubuntu manual with lots of pics: http://ubuntu-manual.org/
    Do i need antivirus/firewall in linux?
    User friendly disk backup: Redobackup

  8. #8
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,552
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    Linux assumes you know what you want. If you order the system to delete a file, it will be deleted.

    (It should be possible to build an automatically emptying trash can. It can collect files indefinitely, but when disk space gets tight it can automatically permanently delete the oldest files.)

  9. #9
    Join Date
    Jan 2014
    Location
    Karlsruhe, Germany
    Beans
    12
    Distro
    Ubuntu Studio

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    Quote Originally Posted by mastablasta View Post
    del used to have undelete counterpart. i dont' know if they still have it. there were also programes that could restore the files but you needed to know the first leter of the file.
    Yes, I remember that from the Windows 3.x times. The command was undelete and you had to enter the first letter of each file you wanted to resurrect. This stems from the fact that on FAT file systems deleted files are marked by a special byte as the first letter of the file name.

    I never tried if there was an undelete for NTFS.

    Dennis

  10. #10
    Join Date
    Nov 2011
    Beans
    1,510
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Recovering a deleted file... I can't believe it's this hard - HELP!

    "Trash" and "Recycle Bin' are simply directories where so-called deleted files are moved. Nothing magical happening there on either OS.

    It's easy to alias the rm command to move files to Trash, or somewhere else, rather than delete them.

    Backups, though, eliminate these kind of headaches. Ahem.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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