View Single Post
Old 01-27-2025, 08:08 PM   #1464
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,549
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by JSWolf View Post
Would you get a corrupt database if you plugged into the USB port without calibre running to have a look?
If the database has NOT been closed correctly on the Kobo then any USB connection will cause corruption.

If you look at the udev script on the Kobo that is launced when a USB connection is made, it does an unmount of both the file system that contains the Kobo database and the (no longer supported on new hardware) external SD card.

Simply put the ONLY option might be a modification to the udev script to perform some checking on the size of the wal and shm files, and if non-zero prevent the dismount.
PeterT is offline   Reply With Quote