Database disk image is malformed sqlite repair
![database disk image is malformed sqlite repair database disk image is malformed sqlite repair](https://www.arysontechnologies.com/blog/wp-content/uploads/2018/08/sqlite-database-recovery.jpg)
DATABASE DISK IMAGE IS MALFORMED SQLITE REPAIR PC
If I plug the Libra back into the PC without calibre open, do nothing, and then eject the Libra, it goes back into the Importing Content screen, and then the My Books count is correct. If I plug the Libra back into the PC with calibre open, calibre doesn't think there are any books on the device. The usual Importing content screen and bar comes up on the Libra, but when the home screen appears the book doesn't show in the My Books count on the home page, although it DOES show when I go to the My Books section, and I can read it there. Calibre shows it's put a book onto the Libra, so I safely eject the Libra. I then put a book onto the Libra via Calibre (I've tried multiple different ones in case it's a specific book causing the problem). Calibre detects the Libra with its empty database, and when I check the database using KoboUtilities it comes back ok. I plug the Libra into the laptop and start Calibre.
![database disk image is malformed sqlite repair database disk image is malformed sqlite repair](https://user-images.githubusercontent.com/46449085/106378014-7fa2c880-63e4-11eb-95c9-36521f6bf3de.jpg)
No books downloaded from my Kobo account (I don't have any - I always sideload my books). I reset the Libra to factory settings, set up the Kobo account and get it back running with a completely empty database. The problem is that now I'm getting even more weird symptoms. Having googled and read lots of mobileread posts, I assumed there might have been a dodgy book or a dodgy cable, and that the database was lost beyond repair so reset the Libra to factory settings and started again with a completely blank, new setup. Last week in calibre when I plugged the Libra into the laptop I started getting odd error messages in calibre: 'unable to read database' and 'database corrupt' and 'disk i/o error' (different messages after various reboots of both the Libra and the laptop). I have the KoboUtilities Plugin, using the KoboTouchExtended driver, and up until last week it worked perfectly.
![database disk image is malformed sqlite repair database disk image is malformed sqlite repair](https://quickbooksrepairpro.com/img/Quickbooks-file-may-be-corrupted-truncated.png)
I plugged it into the laptop to load a few books onto it using Calibre, in exactly the same way as I have for the past 2 years. I've been very happy with my Kobo Libra H2O since I bought it almost exactly two years ago - until last week.