![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
Database disk image is malformed?
I've been trying to find a way to fix this issue without having to reset the Kobo entirely. I have no idea what caused the database error; I have only ever used Calibre to load books and haven't had any issues with it before (I use the Kobo program only for updating the device).
When I run an integrity check I get this: Spoiler:
I've tried deleting and recreating the content_bookid_index like I saw suggested on an older thread here, but that doesn't seem to do anything. I've noticed that this only really seems to be affecting one book at a time (ones that I've added recently - I've got thousands of books and fanfics on the Kobo so I don't know if it's affecting things i Haven't opened in a while), and when I try to open the affected book on the Kobo I get told that it has Adobe DRM on it and I can't open it on the Kobo. Can anyone think of anything I can do to fix this without a factory reset? Thanks! P.S. I really know pretty much nothing about SQL files/editing, I had SQLite Studio and I've downloaded SQL Tools but don't really know how to use it. |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 37,344
Karma: 149856306
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Have you tried vacuuming the file? That and re-indexing are about the only non-destructive suggestions I can come up with.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@JDesat: The database gets corrupted because something went wrong. It could be a bug in the software, it could be that you didn't eject the device safely one time, it could have been a crash.
The only case I have been able to prove a reason for a corrupt database has been when reading CBZ or CBR files and then connecting to the PC. That was a bug on the device not freeing things properly. This was fixed recently in either the 4.28 or 4.30 firmware. Looking at the errors, the only way that might fix it is the VACUUM, or compress, of the database. That basically dumps the database out and reloads it. It should clean up everything. But, there is a chance that some data will be lost. Most of those errors should be harmless and a sign that some cleanup wasn't done. The first two are Rebuilding an index won't help. When that has been suggested, it was because the check showed that there was an index problem. And it named the index that needed to be rebuilt. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
Unfortunately, when I try to VACUUM the database (in SQLite Studio or with the Kobo Utilities plugin in Calibre) that's when I get the 'disk image is malformed' error and it doesn't work.
Any other ideas, maybe a way to force the VACUUM, or am I SOL? |
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 778
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
Edit: Oops, I see davidfor's suggestion above is to "VACUUM, or compress" the database, so I assume they are the same thing. Never mind. Last edited by icallaci; 01-26-2022 at 09:04 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 778
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
I think I read somewhere that logging out of my Kobo account (on the Kobo itself) and logging back in will rebuild the database... would that work? And if so, I seem to remember doing that once and nothing was in my collections or had covers anymore, is there a way to fix that?
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The covers should come from the books and should be regenerated by the device as they are needed. If you use calibre and use the option to send the covers to the device, the cover might not match or exist for some formats. |
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
Hmm... I have the Kobo Utilities plugin, so I could get my reading positions back on those, and the covers aren't a huge issue, really... but I sideload absolutely everything through Calibre, so losing the collections would be a pain... and I'd be annoyed at the fact that everything was messed up in my book list(s) because I always have it set for me to see recent books at the top... I'd say something like 80% of the 8,000 or so 'books' on my Kobo are fanfiction, and I tend to read things I've added recently more often than I do older stuff, so having to try to remember a name of a fic or author and trying to hunt it down would be an issue.
I suppose if this is my only option I'll have to do it, but for the moment, if no one can think of anything I can do to fix the database, I think I might just tough it out. So far it's only been 2 books that have caused an issue, both fanfic. One downloaded with FanFicFare, and another made into a docx file and then converted to epub in Calibre by me. Calibre doesn't let me delete them, but I can delete them on the Kobo itself without a problem. And, oddly, I've been able to get the docx one to work after several delete and resend attempts... that's when the other story started glitching. Anyway, thanks everyone so far for your suggestions, even if nothing has worked yet. |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
If you are using calibre to sideload the books, are you using it for collection management? If so, that should happen automatically as you get the books on the device. If you are not using it for collection management, there is a way to fetch the collections from the device to a column in calibre. Which needs calibre to still be able to connect to the device.
Reloading the device is also something I don't like because of the "Recent" sort. It is based on when the book was added and then the title within the batch. But, the Kobo Utilities plugin can set one of the date used by this (the other is the last read timestamp). I generally set it to the "Date" column in calibre as that is when the book was first added to the library. And will be reasonably close to when I first put it on the device. It isn't quite so good for books downloaded with FFF, as that will update the date when you update the book. But, the plugin can use any date column in the library. You can keep going as you are. But, I would expect this to get worse, not better. If it is working, at the least you can do some preparation and maybe choose when you do it, rather than get forced into it. And if it is more serious that it currently appears, it will be seen if you restart the device. That will mean the database is reread, and if there were problems writing it, then you may end up with old data. |
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,839
Karma: 131375596
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You can setup the Kobo Utilities plugin with Calibre to backup your Kobo database to the computer every time you connect your Kobo to your library. That way you'll have a fairly updated database backup. That way you can restore it if you have another database corruption.
|
![]() |
![]() |
![]() |
#13 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 110
Karma: 3098438
Join Date: Feb 2021
Location: Canada
Device: Kobo Sage
|
I had to deal with this issue recently (for only the second time in three years, that I recall), probably due to a loose cable. I haven't set Kobo Utilities to backup the database because I don't know what happens if the cable gets loose during the backup process.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2015
Device: kobo aura
|
Strange I have the same issue.
Never happened before. Just after upgrading to the latest firmware and uploading a new book with calibre. Tried with various SQLLite editor without success. I reseted my Kobo, but the error came back eventually, after a few transfer. Will try with another USB cable, but file copy had no issue. Aymeric |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
database disk image is malformed | fxp33 | Calibre | 10 | 09-02-2015 11:58 PM |
database disk image is malformed | bartveld | Devices | 5 | 01-27-2015 06:25 PM |
Database disk image is malformed | moonsjine | Library Management | 1 | 06-16-2012 04:03 AM |
Database disk image is malformed | alanpmcd | Calibre | 2 | 05-31-2012 04:12 PM |
database disk image is malformed | sirbruce | Calibre | 12 | 06-26-2009 09:06 PM |