![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
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! |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
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?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,188
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The relevant setting is Preferences->Tweaks->Specify a folder calibre should connect to at startup
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
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. :'( Last edited by meghane_e; 06-26-2018 at 02:39 AM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,188
Karma: 27110894
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
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
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 |
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,621
Karma: 29710338
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 |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,188
Karma: 27110894
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. |
![]() |
![]() |
![]() |
#11 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
# Specify a folder calibre should connect to at startup auto_connect_to_folder = 'Clear the path found here, click apply, then restart' . |
|
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle -> Something new (Kobo or Boox probably)
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#13 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
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:
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 |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |