Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2021, 03:42 PM   #16
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,772
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@BewilderedUser - a calibre library has author directories and within those there are book directories. So, your Vivek Chibber directory will have three book directories. What you see in File Explorer is a count of author directories, plus the files at the root of the library directory (e.g metadata.db, metadata_db_prefs_backup.json, metadata_pre_restore.db).

BR
BetterRed is offline   Reply With Quote
Old 02-28-2021, 03:42 PM   #17
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,560
Karma: 240526511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by BewilderedUser View Post
Hmm, sounds like a plan...but how exactly do I re-create a new library (on my SSD), please?
Switch/create new library -> Create an empty library at the new location. You might have to create a new, empty folder somewhere on your local disk and point Calibre to that folder.

After that, if you can't access the old libraries on the card with Calibre to copy the books to the new library, you may have to import the books via the Add Books button.
Sirtel is offline   Reply With Quote
Old 02-28-2021, 03:45 PM   #18
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,560
Karma: 240526511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by BewilderedUser View Post
Oops -- never mind; just found out how!

But I'm still curious...why doesn't what worked before work anymore?

Why's Calibre now telling me that any directory I try to point it at is either "not an existing calibre library" or "not empty"???
Frankly, no idea why it no longer recognizes your libraries on the micro SD. If you have never moved the files around manually outside the Calibre program (that would immediately mess up the database), then your card might have a corruption problem or something like that (I'm not very familiar with microSD cards).
Sirtel is offline   Reply With Quote
Old 02-28-2021, 04:02 PM   #19
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Quote:
Originally Posted by BetterRed View Post
@BewilderedUser - a calibre library has author directories and within those there are book directories. So, your Vivek Chibber directory will have three book directories. What you see in File Explorer is a count of author directories, plus the files at the root of the library directory (e.g metadata.db, metadata_db_prefs_backup.json, metadata_pre_restore.db).

BR
Yes, that's certainly true -- and all the directories I'm trying to point Calibre at are fully of such author folders and so forth so I'm puzzled why Calibre's suddenly not recognizing that.
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 04:05 PM   #20
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Quote:
Originally Posted by Sirtel View Post
Frankly, no idea why it no longer recognizes your libraries on the micro SD.
Actually, it does still recognize the "main" "Calibre Library" directory (that I'm trying to consolidate everything into); it just doesn't recognize any other directory with Calibre author files and so forth anymore now.

Quote:
Originally Posted by Sirtel View Post
If you have never moved the files around manually outside the Calibre program (that would immediately mess up the database), then your card might have a corruption problem or something like that (I'm not very familiar with microSD cards).
Yes, I'm wary of my card -- it's 1TB and I've once heard these huge denominations can be problematic for some reason or other. That's partially why I'm trying to consolidate all my eBooks under Calibre: to make backup easier!
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 04:13 PM   #21
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,094
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by BewilderedUser View Post
Yes, that's certainly true -- and all the directories I'm trying to point Calibre at are fully of such author folders and so forth so I'm puzzled why Calibre's suddenly not recognizing that.
The crucial thing a calibre library folder has to have is a metadata.db file. That is the actual library database.
jhowell is offline   Reply With Quote
Old 02-28-2021, 04:16 PM   #22
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Each Library is a self contained set of files and folders. the files BetterRed controls the interface (what you see). These are a lock stepped SET, which is why you do not change things OUTSIDE of the Calibre GUI or CLI.

If something keeps disappearing, you had a storage / AV issue.
You mentioned a 1T flash. There are a lot of fakes (reports way larger than the chip stores). I suspect you metadata.db's are getting stomped upon

Also Flash can fail with no notice. Usually HD's start making small errors that should be taken as a warning :"clone me now"
theducks is offline   Reply With Quote
Old 02-28-2021, 04:17 PM   #23
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Quote:
Originally Posted by jhowell View Post
The crucial thing a calibre library folder has to have is a metadata.db file. That is the actual library database.
Ah, this makes sense!

So is there a way I can just get some kinda generic Calibre metadata.db file for all the directories with eBooks I'd like Calibre to add??

Turns out I'm missing such a crucial file from all these directories for some reason!
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 04:24 PM   #24
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,560
Karma: 240526511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by BewilderedUser View Post
Ah, this makes sense!

So is there a way I can just get some kinda generic Calibre metadata.db file for all the directories with eBooks I'd like Calibre to add??

Turns out I'm missing such a crucial file from all these directories for some reason!
There is no other way than to use Restore Database (from Library Maintenance) and hope Calibre can rebuild the database. Otherwise you have to add the books manually to your new library, as there's no way to make Calibre "see" a library with no database file.
Sirtel is offline   Reply With Quote
Old 02-28-2021, 04:25 PM   #25
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Question

Quote:
Originally Posted by theducks View Post
Each Library is a self contained set of files and folders. the files BetterRed controls the interface (what you see). These are a lock stepped SET, which is why you do not change things OUTSIDE of the Calibre GUI or CLI.
Yeah, I didn't realize any of this until starting to consolidate my collection today! But surely there's a way to slap Calibre on the head and say, "there boy there, fetch! Sic! Kill!"

I mean, how can I make Calibre know that these are eBooks already arranged in nice Calibre author-name folders??

Quote:
Originally Posted by theducks View Post
If something keeps disappearing, you had a storage / AV issue.
You mentioned a 1T flash. There are a lot of fakes (reports way larger than the chip stores). I suspect you metadata.db's are getting stomped upon
Well, the counterfeit stuff is supposed to fail basically right away -- and I didn't get the card off Amazon but from B&H which isn't a total Wild West kind of place. But I was just referring to Flash technology's inherent limitations; I got a SanDisk 1TB microSD for $250 instead of something like a $400 top-of-the-line Samsung one.

Quote:
Originally Posted by theducks View Post
Also Flash can fail with no notice. Usually HD's start making small errors that should be taken as a warning :"clone me now"
Yup! That's why I thought it's about time all my eBooks from various different installations of Calibre across different computers should be consolidated now -- on my microSD as well as a compact portable HDD!
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 04:28 PM   #26
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Question

Quote:
Originally Posted by Sirtel View Post
There is no other way than to use Restore Database (from Library Maintenance) and hope Calibre can rebuild the database. Otherwise you have to add the books manually to your new library, as there's no way to make Calibre "see" a library with no database file.
But that's just the thing: I can't get Calibre "pointed at" the directory in the first place so that it can then run Restore Database over it. Or is there some way to do what you're saying without Calibre being able to recognize the folder as what it calls a "calibre library"??

Right now, all I know is to click the big Calibre Library icon on top...which isn't working now 'cause of those missing db files I guess.
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 04:39 PM   #27
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,560
Karma: 240526511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by BewilderedUser View Post
But that's just the thing: I can't get Calibre "pointed at" the directory in the first place so that it can then run Restore Database over it. Or is there some way to do what you're saying without Calibre being able to recognize the folder as what it calls a "calibre library"??

Right now, all I know is to click the big Calibre Library icon on top...which isn't working now 'cause of those missing db files I guess.
Hmm yes, you're right. Well, I did try to create an empty text file in my test library (which had no database file) and I renamed that file metadata.db. Calibre was then able to recognize the folder as a library (with a blank list of books, of course) and rebuilt the database. But you should certainly run the library check after the database has been restored.
Sirtel is offline   Reply With Quote
Old 02-28-2021, 04:45 PM   #28
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BewilderedUser View Post
Yeah, I didn't realize any of this until starting to consolidate my collection today! But surely there's a way to slap Calibre on the head and say, "there boy there, fetch! Sic! Kill!"

I mean, how can I make Calibre know that these are eBooks already arranged in nice Calibre author-name folders??



Well, the counterfeit stuff is supposed to fail basically right away -- and I didn't get the card off Amazon but from B&H which isn't a total Wild West kind of place. But I was just referring to Flash technology's inherent limitations; I got a SanDisk 1TB microSD for $250 instead of something like a $400 top-of-the-line Samsung one.



Yup! That's why I thought it's about time all my eBooks from various different installations of Calibre across different computers should be consolidated now -- on my microSD as well as a compact portable HDD!
You did it and it quickly failed again. Library maintainence:restore

That builds a fresh db using metadata_db_prefs_backup.json to create a empty DB matching the old DB custom structure. THEN it reads the metadata.opf in every folder in that file tree.
IMHO get a USB H drive. 5T is under $100
theducks is offline   Reply With Quote
Old 02-28-2021, 05:04 PM   #29
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Quote:
Originally Posted by Sirtel View Post
Hmm yes, you're right. Well, I did try to create an empty text file in my test library (which had no database file) and I renamed that file metadata.db. Calibre was then able to recognize the folder as a library (with a blank list of books, of course) and rebuilt the database. But you should certainly run the library check after the database has been restored.
Oh Math bless you! That did it -- thanks!!

Hey you ever think about running for President?? ;-)
BewilderedUser is offline   Reply With Quote
Old 02-28-2021, 05:18 PM   #30
BewilderedUser
Member
BewilderedUser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2021
Device: Surface Pro 7
Quote:
Originally Posted by theducks View Post
You did it and it quickly failed again. Library maintainence:restore

That builds a fresh db using metadata_db_prefs_backup.json to create a empty DB matching the old DB custom structure. THEN it reads the metadata.opf in every folder in that file tree.
Yes, I can see how that works now...came across something about it in the manual but couldn't quite "put two and two together" at the time (a bit like how Warren Buffett reads the same news we do but somehow manages to make billions out of it).

Quote:
Originally Posted by theducks View Post
IMHO get a USB H drive. 5T is under $100
Indeed, I've got a WD 4TB HDD in addition to the 1TB microSD!
BewilderedUser is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are all the blind people? leebase General Discussions 106 01-25-2020 04:11 PM
adaptation of calibre for blind people Ptitprince Calibre 3 06-01-2018 09:57 PM
Blind Calibre User 2-color GUI agalus Calibre 0 10-24-2014 06:38 PM
Blind spot pvdas Onyx Boox 0 12-28-2012 08:51 PM


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


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