View Single Post
Old 05-04-2015, 11:45 AM   #2170
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Ken Maltby View Post
In the Kobo Start Menu 7 there is, under "Tools", a "koreader diverse.msh" which has a script "delete dead history entries.sh", that might meet your needs. (I have my external uSD card mounted as read/write, and the script says it doesn't try to delete those with a mnt/sd location, so I just delete them myself.)

To be able to write to and delete from your external drive, including using the File Manager's long press options for deleting files, the mnt/sd must be remounted as read/write. To do so I add this to the koreader.sh file, just before "reader.lua" is called:

#remount SD card as read/write
mount -o remount,rw /mnt/sd

Luck;
Ken
In KSM (in "configure"), there is a key "deleteSDRsOnboard" in the section "[Koreader]". If you set it to true all sdr folders that have a corresponding lua file in the history folder, get deleted each time you exit Koreader. Therefore, I would enable this option and run (and exit) koreader, before deleting any files of the history folder.

The reason why "delete dead history entries.sh" does not affect history-files that refer to books on the external sd, is that it cannot decide whether a book has actually been remove from the currently inserted external sd or maybe lives on another sd card (for instance, when you are switching between several sd cards).

Last edited by tshering; 05-04-2015 at 11:50 AM.
tshering is offline   Reply With Quote