|
|
#46 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Nov 2010
Device: PB360
|
|
|
|
|
|
|
#47 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 12650
Join Date: Apr 2011
Device: PB903
|
thank you, friends
|
|
|
|
|
Enthusiast
|
|
|
|
#48 |
|
Connoisseur
![]() Posts: 58
Karma: 10
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
hi
I'm a new owner of a pb touch (622) so I'm loading and erasing many things, even only to test purpose. I noticed that in /mnt/ext1/system/state and in /mnt/ext1/system/config/'Active Contents' it left files related to deleted book even if you ask to optimize the database; did anyone make a script to delete (even interactively) those files? now I'm doing it by hand with poterm, but should be nice automate it
|
|
|
|
|
|
#49 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,244
Karma: 2818722
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1
|
I guess no one has such a script already. I don't think it needs to be interactive, because it just needs to find data in those directories that doesn't have an existing ebook for it, and then delete it. Thus, you wouldn't need to use the sh_ivtool application for interactivity. I think the script would be a lot simpler if it could use the Unix find utility to look for the .af0 files, since they are spread out in directories that match the structure where the ebooks are. If no one else comes up with such a script first, I'll try to write something over the next few days.
P.S. Deleting books using the Library application usually deletes the extra information, as well. If you are deleting using the USB connection, maybe you should use the Library app instead. Last edited by rkomar; 01-12-2013 at 03:33 PM. |
|
|
|
|
|
#50 |
|
Connoisseur
![]() Posts: 58
Karma: 10
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
thanks rkmoar
the interaction could be useful in case one would save annotations and highlights that sometimes became complex i use this this script named clean.app at the moment to delete empty dir i cd to the directory because with busybox once i deleted anything! #!/bin/sh cd /mnt/ext1/system/state path to find/find -depth -type d -epty - exec rmdir {} \; cd /mnt/ext1/system/config/Active\ Contents path to find/find -depth -type d -epty - exec rmdir {} \; i've to study more to compare paths as you suggested
|
|
|
|
|
|
#51 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,244
Karma: 2818722
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1
|
I wrote a script last weekend, but put off uploading it because I wanted to include a version of find for the older 3XX ereader models. However, I'm not sure that the notes are in the same format on those devices, so I think I'll just release the script for the Pro models only.
The script deletes all the state data and notes for ebooks that aren't on the device any longer. To make the script simpler, I used find and bash, and included them in the zip file. As you noted, deleting the notes may not be what is wanted. However, making the script interactive would make it tedious to use. If you want to save notes, I think it's better to just comment out the notes handling stuff in the script, and just use the Notes application to delete unwanted notes. |
|
|
|
|
|
#52 |
|
Connoisseur
![]() Posts: 58
Karma: 10
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
wow I'll test it
thanks a lot paolo
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trio of Picture Books - Simple Animals, Simple Shapes, and You're My Baby! | Manley Peterson | Author Self-Promotions | 5 | 01-06-2012 08:55 PM |
| Application update: application not installed error | Merischino | Kindle Fire | 4 | 12-01-2011 10:30 PM |
| erm, simple question , hope for simple answer! | al zymers | Amazon Kindle | 5 | 09-25-2010 01:01 PM |
| Simple question for a simple mind :) | PKFFW | OpenInkpot | 6 | 08-27-2009 09:00 PM |
| Television scripts for your handheld | Bob Russell | Lounge | 2 | 01-07-2006 06:22 PM |