Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2014, 04:26 PM   #556
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by JSWolf View Post
In my CSS, I specified all sizes from 1px to 30px. I even tried em and pt. I also tried with and with an ending semicolon. I did not specify any font size in body as these are not relative sizes but absolute sizes (except for em).

They all came out at whatever size was specified by the font size slider.
Everything from 1 to 30? Try more like 12 to 120; use BIG jumps to make sure you're avoiding the "11px and 12px are the same effective size" and "that's too small to see" problems.

Further, if you're specifying px sizes, the font slider should have no effect on the display. That it does tells me that there's a problem elsewhere in the CSS, resulting in the reader never even seeing this set of rules.

I was proofreading a book recently that looked fine in iBooks and Calibre Edit, but completely shattered under Adobe Digital Editions. I was looking at the CSS for the affected rules, and everything looked good; I didn't get what the problem was. When I looked at the whole document, though, an early rule looked like this:

.c1 {
font-size: 1.25em;mx
}

That syntax error was causing ADE to ignore everything after that line, which was most of the rules, including the ones I was looking at. So even though the specific rules I was scrutinizing were fine, they weren't even being parsed.
Rev. Bob is offline   Reply With Quote
Old 12-12-2014, 04:34 PM   #557
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,277
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Rev. Bob View Post
Everything from 1 to 30? Try more like 12 to 120; use BIG jumps to make sure you're avoiding the "11px and 12px are the same effective size" and "that's too small to see" problems.

Further, if you're specifying px sizes, the font slider should have no effect on the display. That it does tells me that there's a problem elsewhere in the CSS, resulting in the reader never even seeing this set of rules.

I was proofreading a book recently that looked fine in iBooks and Calibre Edit, but completely shattered under Adobe Digital Editions. I was looking at the CSS for the affected rules, and everything looked good; I didn't get what the problem was. When I looked at the whole document, though, an early rule looked like this:

.c1 {
font-size: 1.25em;mx
}

That syntax error was causing ADE to ignore everything after that line, which was most of the rules, including the ones I was looking at. So even though the specific rules I was scrutinizing were fine, they weren't even being parsed.
Please have a look at the following ePub and see if you can find anything not quite right with it.

https://www.mobileread.com/forums/att...2&d=1418401497
JSWolf is offline   Reply With Quote
Advert
Old 12-12-2014, 05:17 PM   #558
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by JSWolf View Post
Please have a look at the following ePub and see if you can find anything not quite right with it.
Well, let's see...

The NCX has loads of invalid entries. The font files aren't declared with the correct MIME type or even the right name. You're still going from 1-30 by single pixels instead of, as I recommended, a wider range by larger jumps. There are a lot of unnecessary rules in the CSS file, as well as a proprietary property (oeb-column-number) in the BODY rules that could possibly cause problems. (Yes, I know it's in the spec.)

Try this version. I multiplied all the pixel sizes by ten (so it's 10-300 instead of 1-30), removed the bad NCX entries, fixed the font references, and removed the O-C-N property. Pulls up fine in ADE, but try it on your device.
Attached Files
File Type: epub Kobo Test ePub.epub (234.8 KB, 222 views)

Last edited by Rev. Bob; 12-12-2014 at 05:20 PM.
Rev. Bob is offline   Reply With Quote
Old 12-12-2014, 06:01 PM   #559
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,082
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
Quote:
Originally Posted by Rev. Bob View Post
The last time this happened to me, I did two things to fix it.

0. If you have a recent backup of the database, restore it; problem solved. If not, smack yourself gently on the face with a red snapper.

1. Use an SQLite utility to go to the database table (make a backup first!) that has all the shelves, mark everything "false" in the "_IsSynced" column, and mark everything "true" in the "_IsDeleted" and "_IsVisible" columns. (You can do that with one statement for each column, but the syntax eludes me at the moment.) Then go through and find the shelves you want to keep, marking them "false" in the "_IsDeleted" field. Make another backup, then disconnect the reader and see if the shelf list matches what you want. If it doesn't, try again until it does. Sync the reader to send the changes up to the cloud, and make sure nothing changed on the reader in the process. If you're good, delete the two backup databases and make a fresh backup of the "blessed by sync" version.

2. Make periodic backups, at least of the database. How periodic? Only you can answer that, but "after significantly changing the contents of the reader" is a good time. Note that with the Kobo, this means after letting it scan newly-added books, so the database is up to date and won't have to start by adding several entries. Yes, you'll have to reconnect the device to the computer. Small price to pay.
I don't have a backup (or a red snapper) and as much as i'd love to make one, once my kobo is back to normal, I don't quite understand your instructions. Sorry once you talk in techie code language my brain sort of freezes over
Josieb1 is offline   Reply With Quote
Old 12-12-2014, 09:02 PM   #560
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by Josieb1 View Post
I don't have a backup (or a red snapper) and as much as i'd love to make one, once my kobo is back to normal, I don't quite understand your instructions. Sorry once you talk in techie code language my brain sort of freezes over
Okay, lemme try more of a "do this, do that" approach...

I'm assuming here that you want to repair the shelves instead of just deleting them and starting over. I'm also assuming that when the dust clears, you want one shelf representing each set of duplicates, and that shelf should contain everything that was on any of its duplicates. That is, if you have five "Freebie" shelves, you want to end up with one that has all the books that are on any "Freebie" shelf, and so on.

TOOLS:

I use an add-on for Firefox called "SQLite Manager" - grab that and you're most of the way there. Once you have that installed, connect your reader to your PC, go to your reader's .kobo folder, and make a backup copy of KoboReader.sqlite. Now start the SQLite Manager add-on and open .kobo/KoboReader.sqlite with SM.

PROCESS:

In the left panel, you should see a few options, starting with "Master Table". Right under that, there's a "Tables" entry that, on my machine, shows 26 entries inside it. Click the little triangle beside "Tables (26)" to open it, and scroll down to the one that says "Shelf". Click on the word.

The main part of the window should now show all the shelves/collections on your device. The sixth column, "Name", should look very familiar, but the fourth column, labeled "InternalName", is more important. Click on that header, and it'll sort the shelves by name - very useful for finding duplicates, which is where your problems are coming from. As you scan over the list, you should see groups of duplicated shelves with different ID values but the same Name (and, perhaps, InternalName). If they don't have different IDs, we're in trouble and you should stop now (while you haven't changed anything) and let me know that. Otherwise, assuming all the ID values are different, we're in good shape; continue below.

First, we need to make sure all our changes are going to be sent to the server when you sync. Click on the "Execute SQL" tab and paste the following line into the white box:

UPDATE "main"."Shelf" SET "_IsDeleted" = "true", "_IsSynced" = "false"

Click the "Run SQL" button, and you should get a "no errors" message in the "Last Error" box. That's good. What you've just done is told your device to get rid of all your shelves, so you shouldn't stop there! You still have some work to do. Click back on "Browse & Search" and click "Name" to sort everything.

Now you have to fix that "same name" problem and tell the device NOT to delete the shelves you want to keep. It's tedious, and it means editing every row, but it has to be done, since it's the only way to separate the shelves. What I did was add a number to the end of each duplicate's Name and InternalName.

Double-click on a row and it'll bring up an "Edit Record" box. If it's a shelf you're renaming, edit fields 3 and 5 (InternalName and Name) so they match each other, but no other row. For instance, if you have four "Pending" shelves, leave one alone for now and change the rest to "Pending1" through "Pending3" so you can tell them apart. That way, you're keeping one "real" shelf from each set. On the one you don't rename, edit field 7 (_IsDeleted) to say "false". On each row, when you're done with your edits, click OK and confirm the change. The plugin should then tell you to click on Cancel to exit the box.

You may have to visit multiple pages, since the utility only shows 100 rows at a time. The bottom line under this big area handles that; it'll say something like "1 - 100 of 260" with arrows and double-arrows around it. The single-arrow advances to the next page; the double-arrow zips to the end.

Once you're done with those changes, go to Database at the top left, then click Close Database in that menu. (It saves automatically as you work.) Close SM, make a new backup of the changed file, disconnect the reader, and open up your collections view. Poke around a bit to make sure everything looks like you want. (All the "numbered" shelves should now contain zero books, if they're even visible, and the "not-numbered" ones should contain everything they're supposed to.) If that looks good, go ahead and sync. That should remove all the duplicated shelves from the cloud and update the shelves you're keeping, since we've told the device that all the shelves need to be updated.

Is that clearer, maybe?
Rev. Bob is offline   Reply With Quote
Advert
Old 12-12-2014, 11:53 PM   #561
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,082
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
Quote:
Originally Posted by Rev. Bob View Post
Is that clearer, maybe?
Thanks so much for posting all that, I'm out today so on Sunday I'll copy in all to a word doc and see if I can follow it.
Josieb1 is offline   Reply With Quote
Old 12-13-2014, 01:32 PM   #562
samhy
Wizard
samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.
 
samhy's Avatar
 
Posts: 1,821
Karma: 9503859
Join Date: Dec 2012
Location: France
Device: (Sony (J) PRS 650), Kobo Mini, Kobo Glo HD (broken), Kobo Clara BW
Quote:
Originally Posted by Josieb1 View Post
I've got the duplicated shelves problem back on my Kobo Aura H20 as a result 3.12. I mistakenly left the wifi on

I can't remember how to fix it, can anyone enlighten me, shelves are impossible now I've got 260 instead of three pages.
Maybe you can look here
samhy is offline   Reply With Quote
Old 12-13-2014, 01:42 PM   #563
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,082
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
Quote:
Originally Posted by samhy View Post
Maybe you can look here
Thanks Samhy, I'm just waiting for some announcement as to when the fix is in Calibre.
Josieb1 is offline   Reply With Quote
Old 12-13-2014, 04:03 PM   #564
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,340
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by Josieb1 View Post
Thanks Samhy, I'm just waiting for some announcement as to when the fix is in Calibre.
It's already in the place it belongs; Kobo Utilities plugin.
PeterT is offline   Reply With Quote
Old 12-13-2014, 04:28 PM   #565
ethan3686
Junior Member
ethan3686 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2014
Device: Kobo Glo
Quote:
Originally Posted by ethan3686 View Post
Whenever i go into the browser of my kobo glo and search MARS [planet] or any other topic on wikipedia website it tries to load it but the screen freezes in loading. I have to charge or reset the kobo glo to bring it back from the freeze state or it just crashes and automatically goes back to kobo home screen and work normal again. Why is this happening?
^ Can Someone help me with this?
ethan3686 is offline   Reply With Quote
Old 12-13-2014, 04:53 PM   #566
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,340
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Unfortunately not much we can do. About the best any of us can do is to pass it o to to Kobo. (Yes.. I did try and yes.. I had a device freeze)
PeterT is offline   Reply With Quote
Old 12-13-2014, 07:42 PM   #567
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Not sure if this is the right place, but anyway...

The Kobo firmware accepts incomplete KoboRoot.tgz (cancelled download, lost connection, ...) and corrupts itself when extracting them. This is because it uses zcat to verify the KoboRoot.tgz, which fails to raise any error for incomplete files, and tar subsequently extracts half an update and even leaves outright corrupted files (like half a library). Worst case the device is bricked. Using tar instead of zcat to verify the tar file would catch most of such errors.

(in /etc/init.d/rcS)

Code:
zcat /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
should be

Code:
tar tzf /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
# or alternatively
tar Ozf /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
(same for Kobo.tgz)

Last edited by frostschutz; 12-13-2014 at 08:31 PM.
frostschutz is offline   Reply With Quote
Old 12-13-2014, 07:48 PM   #568
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,277
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by frostschutz View Post
Not sure if this is the right place, but anyway...

The Kobo firmware accepts incomplete KoboRoot.tgz (cancelled download, lost connection, ...) and corrupts itself when extracting them. This is because it uses zcat to verify the KoboRoot.tgz, which fails to raise any error for incomplete files, and tar subsequently extracts half an update and even leaves outright corrupted files (like half a library). Worst case the device is bricked. Using tar instead of zcat to verify the tar file would catch most of such errors.
Are you saying to change from using zcat to tar and all will be well?

Last edited by JSWolf; 12-13-2014 at 08:40 PM.
JSWolf is offline   Reply With Quote
Old 12-13-2014, 08:34 PM   #569
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
I'm suggesting that the best tool to test tar files might be tar, and not zcat. As long as you don't use checksums, anyway.

Last edited by frostschutz; 12-13-2014 at 08:50 PM.
frostschutz is offline   Reply With Quote
Old 12-14-2014, 08:45 AM   #570
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 frostschutz View Post
Not sure if this is the right place, but anyway...

The Kobo firmware accepts incomplete KoboRoot.tgz (cancelled download, lost connection, ...) and corrupts itself when extracting them. This is because it uses zcat to verify the KoboRoot.tgz, which fails to raise any error for incomplete files, and tar subsequently extracts half an update and even leaves outright corrupted files (like half a library). Worst case the device is bricked. Using tar instead of zcat to verify the tar file would catch most of such errors.

(in /etc/init.d/rcS)

Code:
zcat /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
should be

Code:
tar tzf /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
# or alternatively
tar Ozf /mnt/onboard/.kobo/KoboRoot.tgz > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -C /
(same for Kobo.tgz)
Could you please explain this a little more. zcat will throw an error as soon as a single byte of KoboRoot.tgz is missing. Won't it?
tshering is offline   Reply With Quote
Reply

Tags
pocket app


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Probably a Kobo bug. eXistenZ Kobo Reader 19 06-13-2014 09:16 PM
[Old Thread] Bug in downloading metadata Dasun Library Management 3 03-21-2011 07:31 PM
Possible bug or misfeature when a thread is closed tompe Feedback 7 10-05-2010 09:38 AM


All times are GMT -4. The time now is 11:10 AM.


MobileRead.com is a privately owned, operated and funded community.