Bug#620422: Comment on how to recover lost data
Hello,
currently libreoffice calc keeps crashing whenever I
open the "save as" dialogue. This is not the case
if I use "open file" or if I use the export option.
Once, I managed to save a file, by switching file
type to odx (?) (template), then I could type
and save the correct file name incl. .ods in the end.
Next step will be to try if this bug is still when I
create a new user.
For those who have lost work like myself, here is
a fast list of what to do:
- run "foremost -t zip" to find oasis files (foremost
cannot detect this file type, alas.
- try to figure out what size your file was; delete
larger files using find like this:
cd recover/zip
find -size -10000c -exec rm {} \;
find -size +21000c -exec rm {} \;
# files less than 10k and over 21k deleted.
- rename real ODS files accordingly:
for i in $(grep mimetypeapplication/vnd.oasis.opendocument.spreadsheet
*zip |sed 's/[^0-9]*//g'); do mv $i.zip $i.ods; done
- use "file" to sort out real ODS files:
mkdir ODS
for i in $(file *ods |grep Spread |cut -f1 -d\: ); do mv $i ODS; done
- eventually, you will need "loook" (debian package available) in order
to search your ODF files for the right content!
Regards
Ralf
--
PGP/GnuPG: pub 1024D/E6DE0971
Reply to: