Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 06-25-2018, 04:50 PM   #1
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
Calibre keeps remounting the secondary drive

Every time after my laptop reboots and I've logged back in, Calibre mounts my D:\ drive (an SD card). I keep "Ejecting" the D: drive and it stays unmounted after the laptop repeatedly goes to Sleep or wakes up. Why does it keeps re-mounting it? 'Library > Switch/create' says Calibre's pointing to the (correct) library on my C:\ drive whether D: drive is mounted or not. And it seems to be the right library according to the fake books I added.

The only information I can find so far that might help is about Ignored Devices. Is it possible to NOT have to put D:\ in the Ignored Devices list? I do make and keep my backup library on the D: drive. I almost never point to it but I'd like to be able to once in a while.

Thanks for the pointers!
meghane_e is offline   Reply With Quote
Old 06-25-2018, 08:07 PM   #2
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: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Eject it from the Library DEVICE Menu, NOT the O/S.
Calibre remembers active settings like Connect to folder, and reconnects upon startup
theducks is offline   Reply With Quote
Advert
Old 06-26-2018, 01:36 AM   #3
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
I do Eject from the Device menu. Not Library menu. Does the Library menu have an 'Eject' option? Anyway, I only mention the Library menu simply to confirm that it is pointing to the correct active Library location on the C: drive. In other words Calibre points to the correct C: drive Calibre library whether the D: drive is mounted or not. I'm just providing that info in case it's relevant. Anyway, I Eject from Device button/menu/thing because the Device button only shows up when the D: drive is mounted. And when I have to reboot my laptop, D: is mounted again. So it doesn't seem to be saving the setting. Is there some other thing to mark off to force a save or anything?
meghane_e is offline   Reply With Quote
Old 06-26-2018, 01:44 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The relevant setting is Preferences->Tweaks->Specify a folder calibre should connect to at startup
kovidgoyal is offline   Reply With Quote
Old 06-26-2018, 01:57 AM   #5
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
Quote:
Originally Posted by theducks View Post
Eject it from the Library DEVICE Menu, NOT the O/S.
Hmm, what do you mean by 'not the O/S'? Are talking about the operating system? I have not been ejecting or unmounting my D: drive on my computer, OS or physical. Otherwise, not sure what O/S is standing for here.

To clarify, I'm doing 'Device > Eject' from the Calibre main toolbar. The Device menu button only shows up when Calibre mounts the D: drive. [Please correct my terminology because I suspect mine isn't quite right.] And it is not saving the 'Device > Eject' setting when I have to reboot my laptop.

1. Reboot laptop
2. Launch Calibre
3. Device button/menu visible. The toolbar that matches Toolbars & menus > 'main toolbar with device attached' is displayed.
4. so 'Device > Eject' D: unmounted.
5. No Device button visible, regular 'main toolbar' with no device attached displays correctly.
6. Close Calibre (I just use the upper right windows 'X' so maybe not saving the setting that way?)
7. Repeat steps 1 & 2.
8. Result: Calibre launches into step 3 again.

Last edited by meghane_e; 06-26-2018 at 10:41 AM.
meghane_e is offline   Reply With Quote
Advert
Old 06-26-2018, 02:21 AM   #6
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
Thanks, Kovid! I checked that variable. It looks like it's already pointing to the right location (see attachment). Are there any other places or variables to check? Or maybe a file I can check to see if it's pointing to D: somewhere?

I guess one other possibility I just thought of. My library is at '<me>\OneDrive\Calibre Library'. Could it be that the laptop is restarting too soon after Calibre closes and before the main metadata.db has a chance to sync? Since there are no current updates requiring computer restarts, I'll leave it on with Calibre closed down and wait to see if OneDrive completes a sync of the folder. Just in case.

RESULT: Dang it. I closed Calibre, then made sure OneDrive had completely sync'd my files, then rebooted. Calibre launches pointing at D: still. Dang it. So that didn't do it. :'(
Attached Thumbnails
Click image for larger version

Name:	folder to connect to.PNG
Views:	195
Size:	66.1 KB
ID:	164664  

Last edited by meghane_e; 06-26-2018 at 02:39 AM.
meghane_e is offline   Reply With Quote
Old 06-26-2018, 02:24 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That is the only variable that controls automatic connect to folder at startup. If your D: drive is being connected to despite that, then it is likely your drive is being detected as a device. Run calibre in debug mode and you should see what device it is being detected as in the debug log, then you can disable the device driver for that deive in Preferences->Plugins
kovidgoyal is offline   Reply With Quote
Old 06-27-2018, 04:01 PM   #8
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
debug

I attached the debug file for the steps:
1. Restart Calibre in debug mode
2. Visual inspection: Device attached, 'Main menu bar for device attached'
3.(approx. order sorry) Pick book, open book, close book, open metadata, close metadata
4. Eject device using Main menu bar > Device > Eject
5. Visual inspection: Main menu bar (no device attached)
6. (approx. order sorry) Pick book, open book, close book, open metadata, close metadata
7. Close Calibre

OK, the only variable I saw that seems (in my ignorant opinion) applicable is "SaveVirtualLibrariesToColumnGUI device connected". When Calibre launches it is set to True. After I eject the device it is set to False. However, I'm confused that there is no debug output for step 6 like there seemed to be for Step 3. The debug file just stopped after the Eject.

I don't know what "SaveVirtualLibrariesToColumnGUI device connected" really means. The number of books whether the "SaveVirtualLibrariesToColumnGUI device connected" is true or false is the same and it seems like all the same books, so it doesn't seem like it's thinking it's a different library. And that's about where my brain ends. My search on the Calibre docs, the forum, and Google for "SaveVirtualLibrariesToColumnGUI device connected" and "SaveVirtualLibrariesToColumnGUI" turned up literally no results.

Thank you for help, pointers or workarounds!
-Meghan
Attached Files
File Type: txt tmpwirbbx.txt (5.1 KB, 123 views)
meghane_e is offline   Reply With Quote
Old 06-27-2018, 07:30 PM   #9
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: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@meghane_e - I think that "Save Virt..." message comes from the Save Virtual Libraries To Column plugin.

You need that plugin if you want a custom column that shows the virtual libraries in which a book appears in an external application, most especially Calibre Companion.

Try disabling/removing that plugin.

BR
BetterRed is offline   Reply With Quote
Old 06-27-2018, 10:08 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is nothing in that debug log that indicates calibre is what is mounting D: It's not being detected as a device.

The only other suggestion I have is run calibre with --ignore-plugins and see if the problem goes away.
kovidgoyal is offline   Reply With Quote
Old 06-28-2018, 10:01 AM   #11
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by meghane_e View Post
Thanks, Kovid! I checked that variable. It looks like it's already pointing to the right location (see attachment).
Go to the tweak again and remove the path. You currently have calibre set to automatically connect to C:\\Users\\megha\\OneDrive\\Calibre Library as a device. This tweak needs to be empty or it will always connect to this folder as a device on startup.

# Specify a folder calibre should connect to at startup

auto_connect_to_folder = 'Clear the path found here, click apply, then restart'
.
Attached Thumbnails
Click image for larger version

Name:	folder to connect to.PNG
Views:	116
Size:	66.1 KB
ID:	164701  
DoctorOhh is offline   Reply With Quote
Old 06-28-2018, 12:46 PM   #12
meghane_e
Connoisseur
meghane_e began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Sep 2016
Device: Kindle
Quote:
Originally Posted by DoctorOhh View Post
Go to the tweak again and remove the path.
...
auto_connect_to_folder = 'Clear the path found here, click apply, then restart'
Thanks for response, Doc. To clarify, Kovid suggested checking that variable. I interpreted that he meant setting it to the folder the Library was at, but you're saying not to because it is being read as a device? Is this because the Library is on OneDrive or is it because auto_connect translates to any folder path reading as a device, even C: drive?

TEST: Last night I moved my library from OneDrive to C: drive. To understand your suggestion, I changed the auto_connect_to_folder variable to the new path, 'C:\\Users\\megha\\Calibre_Library_laptop'; applied change; quit/restarted calibre. No change; it restarted with a device attached.

Then I set the auto_connect_to_folder path to ''; applied change; quit/restart. SUCCESS!! No device attached. Thank you SO much for giving me a solution!

I never saw that variable prior to Kovid's suggestion, but the folder path was already set when I checked. So something I did from the GUI set it or a plugin did. For posterity: it seems like auto_connect to a folder might as well be auto_connect a device, yes?

Thank you everyone for working the problem! Thank you, Doc, for the solution

Last edited by meghane_e; 06-28-2018 at 12:53 PM.
meghane_e is offline   Reply With Quote
Old 06-28-2018, 02:38 PM   #13
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: 29,804
Karma: 54830978
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 meghane_e View Post
Thanks for response, Doc. To clarify, Kovid suggested checking that variable. I interpreted that he meant setting it to the folder the Library was at, but you're saying not to because it is being read as a device? Is this because the Library is on OneDrive or is it because auto_connect translates to any folder path reading as a device, even C: drive?

TEST: Last night I moved my library from OneDrive to C: drive. To understand your suggestion, I changed the auto_connect_to_folder variable to the new path, 'C:\\Users\\megha\\Calibre_Library_laptop'; applied change; quit/restarted calibre. No change; it restarted with a device attached.

Then I set the auto_connect_to_folder path to ''; applied change; quit/restart. SUCCESS!! No device attached. Thank you SO much for giving me a solution!

I never saw that variable prior to Kovid's suggestion, but the folder path was already set when I checked. So something I did from the GUI set it or a plugin did. For posterity: it seems like auto_connect to a folder might as well be auto_connect a device, yes?

Thank you everyone for working the problem! Thank you, Doc, for the solution
It is a Device setting, not the Start with Library setting.
Folder devices are commonly used when the manufacturers device can't be identified (specific device detection fails) or when a user wants to use "sneaker net" (SD cards) to get books to devices
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre on External Drive KyBunnies Calibre 21 06-21-2019 12:00 AM
View Calibre listings in secondary device jenrar Library Management 2 07-31-2014 08:45 PM
New Hard Drive and Calibre taxesed Library Management 6 03-24-2012 12:39 AM
How do I install calibre on D: instead of C: drive? ottovdv Calibre 3 02-14-2011 04:39 PM
Calibre on a flash drive rcuadro Calibre 5 02-13-2009 09:44 AM


All times are GMT -4. The time now is 09:04 AM.


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