Results 1 to 7 of 7

Thread: Is there anyway to recover a file that's been saved over?

  1. #1

    Default Is there anyway to recover a file that's been saved over?

    I've spent the day developing a JavaScript file when my computer battery went flat and turned off. On reboot I'm shocked to see the file is completely blank.

    I've lost about 8 hours work.

    Is there any possible way to recover that file? Firefox cache or anything???


  2. #2

    Default Re: Is there anyway to recover a file that's been saved over?

    Is there some way I can extend the file size (currently 0) and see if the data is still on the disk or something?? This makes me sick to think about it.

  3. #3

    Default Re: Is there anyway to recover a file that's been saved over?

    sorry to keep adding posts, but I can't see an edit function.

    It's not in the Firefox cache (the empty file is cached though - great).

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: Is there anyway to recover a file that's been saved over?

    You better do not try anything until you gathered some usefull advices. In fact you should not use that file system until you either got it ot gave up. Thus if it is on e.g. a separate /home partition, better mount it read-only for the time being.

    In the mean time you could think about a better explaining about what you did. Never assume that other people see before their eyes what you did when you only say "I've spent the day developing a JavaScript file". I suppose you used a tool, some editor, a more sophisticated tool? Please explain as much as possible, not as minimal as possible.
    Last edited by hcvv; 08-Jun-2011 at 05:10.
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Is there anyway to recover a file that's been saved over?

    On 06/08/2011 12:36 PM, hcvv wrote:
    >
    > I suppose you used a tool, some editor, a more sophisticated tool?
    > Please explain as much as possible, not as minimal as possible.


    yes, a tool name would be very nice...perhaps _it_ saves every so often
    even if the user does not..

    but, since his only hint is looking in the firefox cache i must assume
    he was 'developing' in a cloud based/on-line environment..

    but, it seems to me anyone who would develop such an environment surely
    must anticipate the loss of networking (if not a battery running flat)
    and save incrementally every few minutes...so, the most that can be lost
    is a few minutes, rather than eight hours..

    recommendation: learn the keyboard short cut for save (usually [in say]
    Libre Office, Kwrite, and even clouded Google Docs will save with a
    simple Ctrl+s....and, battery or more catastrophic failure is no sweat..


    --
    dd CAVEAT: http://is.gd/bpoMD
    via NNTP openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10
    Acer Aspire One D255, 1.66 GHz Atom, 1 GB RAM, Intel Pineview graphics
    * When your gecko is broken you have a reptile dysfunction! *

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Is there anyway to recover a file that's been saved over?

    On 2011-06-08 12:06, wombatvvv wrote:
    >
    > Is there some way I can extend the file size (currently 0) and see if
    > the data is still on the disk or something?? This makes me sick to think
    > about it.


    Short answer: NO.

    However, IF you took the precaution of mounting that filesystem as
    read-only from second 0, then you could do a grep on the entire partition
    (raw) searching for a known (to you) string in your program.

    If you have the system running normally, most probably the clusters have
    been overwritten by now.

    However, depending on the app you used, it /might/ use temporary files, and
    it /might/ not have deleted them after this time (it is so important the
    read-only mode of above), so then you /might/ be able to find those
    temporary files.


    So, if you told that application to save, and it saved a file with zero
    bytes, till the file is closed, do not use that app ever again, or use a
    workaround.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  7. #7
    Join Date
    Dec 2008
    Location
    Debrecen, Hungary
    Posts
    108

    Default Re: Is there anyway to recover a file that's been saved over?

    I thing that probably he saved his work, but because of the hard shut down caused by the empty battery, the filesystem suffered some damage, maybe the file was saved in the exact time when the power runned out, which means that the file got a new place on the disk, but not the all data were written there and were not closed, but the fsck deleted the remainings at reboot - I emphasize that I think this may could happened.
    Anyway, I don't have a fix for this, but if it is right what I outlined, this is a bug in the filesystem.

Posting Permissions

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