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???
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.
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.
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! *
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)
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.