![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Potential problems with long file names
From what I gather the FAT32 filesystem used on the Kobo's user-accessible partition has a limit of 65534 "entries" per directory, and a file with a filename of length N occupies 1+N/13 entries (rounded up). So for example a file with a 50 character filename would occupy 5 entries, and so no more than 13,106 such files could be created in a single directory.
The default file naming scheme in Calibre results in quite long pathnames. For example the book "The Door Through Space" by Marion Zimmer Bradley would be stored as: "/Bradley, Marion Zimmer/Door Through Space, The - Marion Zimmer Bradley.epub". The Kobo device stores the cover images for this book in three files named similar to: "file____mnt_onboard_Bradley,_Marion Zimmer_Door_Through_Space,_The_-_Marion_Zimmer_Bradley_epub - N3_LIBRARY_FULL.parsed" That is 3 files of about 120 characters each, with the files for all books stored in a single directory /.kobo/images/. If that was a typical book then the directory will only hold images for about 2000 such books. While space for 2000 books might be plenty for those with a 2GB micro SD card, it is likely to become a problem for those of us who have replaced the stock card with a larger one in the hope of storing more books. I have an 8GB card in my Glo and hope to have more than 2000 books some day, so I guess I will need to choose a more efficient file naming scheme than the one Calibre uses by default. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Good to know. Thanks for sharing
![]() |
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Yes, it's a known problem. It was discussed a couple of times last year. One of the reports hit a problem with about 3000 books. But, I think that was with a 1.9.x firmware version.
With the last few firmware versions, it isn't a problem for the SD card user. The cover images aren't stored at all. It also isn't quite as bad with the 2.x.x firmware. The 1.9.x firmware generated four cover images when a book was sideloaded. 2.x.x generates them as needed and only generates three (one for the home screen and sleep cover, one for the library lists and one for the details page). Changing the calibre save template is a simple way to slow down reaching the limit. The default is "{author_sort}/{title} - {authors}", so changing to "{author_sort}/{title}" would reduce the length of the name a lot without losing much info in the name. An alternative would be to rename the image files and update the database to match. Dropping "file..." prefix would save a bit. That wouldn't be to hard to automate. Or maybe a database trigger on insert? |
![]() |
![]() |
![]() |
#4 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
I am thinking about using {author_sort[0]}/{id} so each filename is just the Calibre library ID, which would allow about 5400 books. Quote:
Last edited by GeoffR; 03-11-2013 at 11:50 AM. Reason: punctuation |
||
![]() |
![]() |
![]() |
#5 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
As to the changes, I'll add it to my list to look at, but it won't be near the top. |
||
![]() |
![]() |
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi,
Had the same problem, although the metadata were already inside the files (so I didn't have to keep the filename). I was stuck at 10 000 books (converted word/odt/pdf and some gutenberg). Used Antrenamer to: - add a number at the end of each file (as a unique 5 digit ID) using the "enumeration" function, - strip the end of the file name except the first 8 characters (usually the author,'s name) to keep an alphabetical order, - replace accented characters in one single move (é->e; ï->i; '->_ ...) This way I could go to 11 700 files at the root of the sdcard. As my filename schema is still longer than the short 8.3 structure, I guess my limit will be around 32000 files instead of the 65000 normal limit of fat32. Other NOT working solution: 1) tried to format as exfat (fat64) : not recognised. A pity because this way I could have kept the long filenames. Hope this helps François |
![]() |
![]() |
![]() |
#7 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
The problem is that the Kobo stores all the cover images and thumbnails created from the books in a single directory, even if the .epub files are in seperate directories. This means that you have three image files per .epub, all in the same directory, and the filnames are very long, which causes the FAT limit on the number of files in the images directory to be reached much earlier than the limit on the number of books. Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi,
Thanks Geoffr. My first attempt at using subdirectories didn't succeed. My Kobo seemed not to see the content of subdir. I'll sure give it another try ;-) François |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I am not planning to put that many books on my Touch. But if I were in this situation, I would try to set the ImageID in the database of several books to the same value in order to make them share the same groupe of images. I would start with those epubs that have cover images showing the first page of text, since almost all of these cover images are useless for me. If there would be the need to save even more file names, I would dispense with other covers images too, since I am not much interested in them anyway.
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi ,
Subdirectories work fine... thank you very much Geoffr for teaching me this. I really don't know why it didn't work / I didn't find the books - when I first tried. ... and 102 Balzac books in a folder !! my collection will soon be a lot quicker to load in a explorer window :-) François |
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
- If you don't care about the covers, you can set the ImageId to null. This will use the text cover with just the title and type of book on it. No images are stored for them. - Ages ago someone, PeterT I think, suggested using subdirectories in the images folder. That needs a change to add a slash somewhere in the ImageId and moving and renaming the image files appropriately. I have never gotten around to testing it until now, but it seems to work. As with the other solutions, they need manual intervention but automating them wouldn't be to hard. |
|
![]() |
![]() |
![]() |
#12 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Quote:
I am not sure what solutions you are referring to. Last edited by tshering; 03-24-2013 at 02:36 PM. |
||
![]() |
![]() |
![]() |
#13 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
If you are using an SD card, setting the ImageId to null should prevent the generation of any cover images. Quote:
|
||
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
davidfor,
thank you for clarification. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there anything in Calibre that can fix long file names automatically? | dmunson | Calibre | 4 | 02-05-2012 06:12 PM |
File Names to long? | JTAL604622 | Calibre | 5 | 08-31-2011 03:21 AM |
Kindle 2 GSM version potential to cause problems? | vivekmreddy | Amazon Kindle | 9 | 12-09-2009 12:59 PM |
ADE and long chapter names in ToC | frabjous | Reading and Management | 3 | 08-14-2009 11:16 AM |
Files with long names? | cmhsieh54 | iRex | 0 | 08-05-2009 12:43 PM |