12-31-2015, 01:46 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: Kobo
|
Can I fix a corrupt .mobi file?
Hi,
Happy New Year. Hope I am in the right place to get an answer. When I try to open a .mobi book in Calibre, I get... 'calibre, version 2.46.0 ERROR: Could not open ebook: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00' The complete error message is: Traceback (most recent call last): File "site-packages\calibre\gui2\viewer\main.py", line 37, in run File "threading.py", line 763, in run File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 112, in __enter__ File "site-packages\calibre\customize\conversion.py", line 241, in __call__ File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 33, in convert File "site-packages\calibre\ebooks\mobi\reader\mobi6.py", line 79, in __init__ MobiError: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00' Is there any way I can get into the file to rectify the book type and what would I put instead of all the noughts? I tried Winrar and Winzip without success and changing from mobi to pdc didn't work either. I'm on a PC with Windows 7. Thanks for any help. |
12-31-2015, 01:56 PM | #2 |
Member Retired
Posts: 3,183
Karma: 11721895
Join Date: Nov 2010
Device: Nook STR (rooted) & Sony T2
|
Try opening it in hex editor or notepad. Compare the header and end to several healthy mobi files and change it to that. back up file first oviously.
|
Advert | |
|
12-31-2015, 05:08 PM | #3 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
File Signatures
'\x00\x00\x00\x00\x00\x00\x00\x00' might possibly be a File Signature.
File signatures are data used to identify or verify the content of a file. Such signatures are also known as 'magic numbers'. Example: ico 00 00 01 00 Example: jpg FFD8 Example: pdf \x25\x50\x44\x46 It is possible that the extension is .mobi but it is not at all a real .mobi file. What I suggest is to open the binary ebook file with a text editor (e.g. Notepad), and inspect the first line for an indication of what the file type really is. A few examples from one of my libraries: epub: mimetypeapplication/epub+zip PK mobi: BOOKMOBI pdf: pdf cbz: PK Based on what you find, try renaming the file extension to what it seems to really be, and opening it with an application that can open that file type. DaltonST |
12-31-2015, 05:16 PM | #4 |
Grand Sorcerer
Posts: 12,283
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
If you have Alf in place do ensure its up to date; I'm sure people have seen corruption in the past from Alf's tools.
|
01-01-2016, 09:44 AM | #5 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: Kobo
|
Unfortunately the file won't open in Notepad and in Dreamweaver it's all gobbledygook, so I can't decipher any code at all. It seem that it's pretty well corrupted.
Any other suggestions would be gratefully accepted and thanks both for your help so far. |
Advert | |
|
01-01-2016, 10:18 AM | #6 | |
Well trained by Cats
Posts: 30,002
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(And saving from an TXT editor, will probably damage it more) The instructions called for a HEX editor. That allows Byte level edits |
|
01-01-2016, 11:41 AM | #7 |
Wizard
Posts: 1,081
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
if you need a good simple hex editor, I like xvi32 at http://www.chmaas.handshake.de
|
01-01-2016, 11:46 AM | #8 |
Grand Sorcerer
Posts: 12,283
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Dumb question; where did the mobi originate?
|
01-01-2016, 11:54 AM | #9 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: Kobo
|
|
01-01-2016, 12:09 PM | #10 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: Kobo
|
Quote:
Thanks all the same, thus will be useful another day. |
|
01-01-2016, 12:33 PM | #11 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
01-02-2016, 11:10 PM | #12 |
Addict
Posts: 306
Karma: 679580
Join Date: Dec 2011
Location: Brisbane, Australia
Device: K3, K4NT, KPW2, Voyage, iP4, iP6, iPad Mini, HP TouchPad, Kobo Mini
|
I think the clue is in the ERROR line - all those zeros in the book type.
The file may have a .mobi extension, but I think you will find it is not actually a .mobi file at all. |
01-08-2016, 08:47 AM | #13 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: Kobo
|
Thanks, I'll try varios and see where it leads me.
|
Tags |
mobi error, unknown book type |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting DX: File system corrupt? | hfrummer | Amazon Kindle | 2 | 01-19-2015 04:50 AM |
Fix Kobo corrupt database | Chris Jones | Related Tools | 4 | 10-06-2014 12:19 AM |
PRS-T1 Cannot delete corrupt file | meigel | Sony Reader | 1 | 12-03-2011 08:55 AM |
DR800 Corrupt file or not | Franky | iRex | 2 | 06-17-2011 12:59 PM |
My Metadata file seems corrupt | gandor62 | Calibre | 3 | 03-27-2010 08:40 PM |