Discussion:
Any ways to recover a broken file?
(too old to reply)
Toshiyuki (Toshi) Meshii
2004-07-27 11:30:35 UTC
Permalink
Hello,

I just found out that my Mathematica 5.1 notebook (size 40MB, WinXP) cannot
be opened.
Every time I try to open it, Mathematica is shut down.
As you can guess from it's size, it has all the data I have been working
with recently.
Unfortunately, I have no backup file of it since the end of May.

Does anyone know some way to recover or open the notebook?

Toshi
Selwyn Hollis
2004-07-29 12:01:28 UTC
Permalink
Toshi,

The same thing happened to me recently, and I solved it by deleting the
cache data from the file. Here's how: Open the file with a text editor.
Then delete the CacheID line that appears near the top. Then scroll
down to where the cached data begins (near the end) and delete
everything starting there. Save the file and try to open it with
Mathematica.

Hope that helps,
-----
Selwyn Hollis
http://www.appliedsymbols.com
(edit reply-to to reply)
Post by Toshiyuki (Toshi) Meshii
Hello,
I just found out that my Mathematica 5.1 notebook (size 40MB, WinXP)
cannot
be opened.
Every time I try to open it, Mathematica is shut down.
As you can guess from it's size, it has all the data I have been
working
with recently.
Unfortunately, I have no backup file of it since the end of May.
Does anyone know some way to recover or open the notebook?
Toshi
Urijah Kaplan
2004-07-29 12:02:28 UTC
Permalink
Try File->Open Special and the option Ignore File Outline Cache. That
might help. Or you can open the notebook in a text editor and copy and
paste the cells individually into mathematica, which can interpret it.

Wolfram has a page about recovering corrupted notebooks here
<http://support.wolfram.com/mathematica/interface/notebooks/fixingcorrupted.html>


--Urijah Kaplan
Post by Toshiyuki (Toshi) Meshii
Hello,
I just found out that my Mathematica 5.1 notebook (size 40MB, WinXP) cannot
be opened.
Every time I try to open it, Mathematica is shut down.
As you can guess from it's size, it has all the data I have been working
with recently.
Unfortunately, I have no backup file of it since the end of May.
Does anyone know some way to recover or open the notebook?
Toshi
Dr A.H. Harker
2004-07-29 12:44:09 UTC
Permalink
Dear Toshi,

There is a function called RestoreNotebook in the AuthorTools
add-on package. Other people may have had success with it, but it's
never done the business for me.

I have, on the other hand, managed to recover corrupted notebooks for
students taking my course. In most cases what had happened was that a
file had been corrupted by trying to save a large amount of graphics
information using a Windows Terminal Server system with a disk quota
system in operation: the WTS server seems not to send an appropriate
'insufficient disk space' message to Mathematica, or Mathematica doesn't
interpret it properly, and the graphics overwrites the end of the file.

As long as you can open the file in a plain vanilla text editor
(Mathematica files are, thank goodness, plain ASCII), you can cut your
input

(i.e. Cell[BoxData[{......}], "Input"] )

a cell at a time out of the corrupt file and paste it into a new
Mathematica notebook. It's a bit tedious, but it works. Don't
cut-and-paste the output -- just run the new notebook when you've
recovered the input.

Of course, if you can't open the file in a text editor you need to go
a level deeper with file utilities such as Norton or an equivalent to
recover a readable form.

Good luck!

Tony

Dr A.H. Harker
Director of Postgraduate Studies
Deputy Head, Condensed Matter and Materials Physics Group
Department of Physics and Astronomy
University College London
Gower Street
LONDON
WC1E 6BT
(44)(0)207 679 3404
***@ucl.ac.uk


]->-----Original Message-----
]->From: Toshiyuki (Toshi) Meshii [mailto:***@mech.fukui-u.ac.jp]
]->Sent: 27 July 2004 12:02
]->To: ***@smc.vnet.net
]->Subject: Any ways to recover a broken file?
]->
]->Hello,
]->
]->I just found out that my Mathematica 5.1 notebook (size 40MB, WinXP)
]->cannot
]->be opened.
]->Every time I try to open it, Mathematica is shut down.
]->As you can guess from it's size, it has all the data I have been
working
]->with recently.
]->Unfortunately, I have no backup file of it since the end of May.
]->
]->Does anyone know some way to recover or open the notebook?
]->
]->Toshi

Continue reading on narkive:
Loading...