Discussion:
Corrupt odg file
(too old to reply)
pinnerite
2024-10-23 18:57:27 UTC
Permalink
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.

Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way tom repair it.
--
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
Paul
2024-10-23 20:11:06 UTC
Permalink
Post by pinnerite
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.
Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way tom repair it.
[Picture]

Loading Image...

Notice how in a hex editor, there are "PK" pairs in there.
That indicates ZIP components.

See if there is a ZIP tool with "recovery" capability.

The sample file I used, is from here.

https://wiki.documentfoundation.org/File:Poster_sample.odg

Name: Poster_sample.odg
Size: 316690 bytes (309 KiB)
SHA256: F12EED1A1CFE9460CE2A5CBB23E36E2152E1D9B749075F4384E9AE30FD44D553

You can see I opened the file in 7ZIP, and it identified that
the file has component-files inside it.

Paul
pinnerite
2024-10-23 20:45:18 UTC
Permalink
On Wed, 23 Oct 2024 16:11:06 -0400
Post by Paul
Post by pinnerite
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.
Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way tom repair it.
[Picture]
https://i.postimg.cc/cJmSjtDK/odg-is-a-zip.gif
Notice how in a hex editor, there are "PK" pairs in there.
That indicates ZIP components.
See if there is a ZIP tool with "recovery" capability.
The sample file I used, is from here.
https://wiki.documentfoundation.org/File:Poster_sample.odg
Name: Poster_sample.odg
Size: 316690 bytes (309 KiB)
SHA256: F12EED1A1CFE9460CE2A5CBB23E36E2152E1D9B749075F4384E9AE30FD44D553
You can see I opened the file in 7ZIP, and it identified that
the file has component-files inside it.
Paul
I tried unzipping it. The file name is: Conservatory_Plan.odg

What that produced was:

4096 Oct 23 21:34 Configurations2 //Contained several folders containing nothing
4096 Oct 23 21:34 META-INF // Contained one unhelpful file
994 Oct 21 19:49 meta.xml
43 Oct 21 19:49 mimetype
9756 Oct 21 19:49 settings.xml
13135 Oct 21 19:49 styles.xml

None of it solved the problem.

But thank you.
--
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
pinnerite
2024-10-23 20:47:15 UTC
Permalink
On Wed, 23 Oct 2024 21:45:18 +0100
Post by pinnerite
On Wed, 23 Oct 2024 16:11:06 -0400
Post by Paul
Post by pinnerite
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.
Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way tom repair it.
[Picture]
https://i.postimg.cc/cJmSjtDK/odg-is-a-zip.gif
Notice how in a hex editor, there are "PK" pairs in there.
That indicates ZIP components.
See if there is a ZIP tool with "recovery" capability.
The sample file I used, is from here.
https://wiki.documentfoundation.org/File:Poster_sample.odg
Name: Poster_sample.odg
Size: 316690 bytes (309 KiB)
SHA256: F12EED1A1CFE9460CE2A5CBB23E36E2152E1D9B749075F4384E9AE30FD44D553
You can see I opened the file in 7ZIP, and it identified that
the file has component-files inside it.
Paul
I tried unzipping it. The file name is: Conservatory_Plan.odg
4096 Oct 23 21:34 Configurations2 //Contained several folders containing nothing
4096 Oct 23 21:34 META-INF // Contained one unhelpful file
994 Oct 21 19:49 meta.xml
43 Oct 21 19:49 mimetype
9756 Oct 21 19:49 settings.xml
13135 Oct 21 19:49 styles.xml
None of it solved the problem.
Except a thumbnail of the plan!
Post by pinnerite
But thank you.
--
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
--
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
Paul
2024-10-23 21:12:45 UTC
Permalink
Post by pinnerite
On Wed, 23 Oct 2024 21:45:18 +0100
Post by pinnerite
On Wed, 23 Oct 2024 16:11:06 -0400
Post by Paul
Post by pinnerite
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.
Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way tom repair it.
[Picture]
https://i.postimg.cc/cJmSjtDK/odg-is-a-zip.gif
Notice how in a hex editor, there are "PK" pairs in there.
That indicates ZIP components.
See if there is a ZIP tool with "recovery" capability.
The sample file I used, is from here.
https://wiki.documentfoundation.org/File:Poster_sample.odg
Name: Poster_sample.odg
Size: 316690 bytes (309 KiB)
SHA256: F12EED1A1CFE9460CE2A5CBB23E36E2152E1D9B749075F4384E9AE30FD44D553
You can see I opened the file in 7ZIP, and it identified that
the file has component-files inside it.
Paul
I tried unzipping it. The file name is: Conservatory_Plan.odg
4096 Oct 23 21:34 Configurations2 //Contained several folders containing nothing
4096 Oct 23 21:34 META-INF // Contained one unhelpful file
994 Oct 21 19:49 meta.xml
43 Oct 21 19:49 mimetype
9756 Oct 21 19:49 settings.xml
13135 Oct 21 19:49 styles.xml
None of it solved the problem.
Except a thumbnail of the plan!
Post by pinnerite
But thank you.
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
There are ZIP tools, which will attempt repair.

But that does not mean the repair actually works.

There is no reason to suspect that archive manager
or libarchive has such a capability. It might be
WinZIP or PKZip. I don't think even the excellent
7ZIP, goes around repairing things.

I've seen messages that something is being
repaired, but most of the time it was really impossible
for a repair to work.

What you want to do now, is google on ZIP repair as a topic,
and see what is available.

There could be nested items. Which will complicate the job
for the tool to do.

There are two possibilities.

A single byte is flipped.

The entire file is zeroed.

There generally isn't any in-between.

Cases where I've seen a repair message, it was usually
repairing a large pile of zeros (which of course is not
possible).

The CRC32 which protects a ZIP file, has limited error
correction potential. It might only amount to a few bits of
error correcting power. Even a single byte flip might be too much.
It does not have to be that way, if Reed Solomon was retrofitted
to the thing. But ZIP was invented a long long time ago, and
we're stuck with the relatively simple implementation. That is
likely part of the attraction, of people using that stupid
thing all over the place. The simplicity.

*******

And no, AI does not help file repair :-) There's a link
on this site, you can try for fun.

https://www.easeus.com/video-repair-tips/repair-zip-file-online.html

Paul
pinnerite
2024-10-24 14:33:01 UTC
Permalink
On Wed, 23 Oct 2024 19:57:27 +0100
Post by pinnerite
Yesterday I employed LibreOffice Draw to draw a plan.
I was pleased with the result.
Last night I took a complete backup to another machine.
Today, I wanted to add some text.
The file wouldn't open. It is corrupt apparently.
I cannot find a way to repair it.
Despite everything, I overcame the problem in two different ways.

1) I had saved the image to a pdf file. I opened that in Gimp, added
the text that I needed and exported it to a pdf again.
2) This is a bit weird. For reasons unconnected, I rebooted my machine.
When I double-clicked on the odg file, it opened up without any problem.

Today after I booted up, I could not open Chromium Browser.
It appeared that my root partition was full.
Whether that had been near enough to cause the odg problem yesterday I
cannot say.
--
Linux Mint 21.3 kernel version 5.15.0-124-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda
Loading...