06-05-2024, 07:06 AM | #1 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
MTP Android. Scanning entire SD card
Previously I set up which folder/directories should be scanned by Calibre. But now the "connect" job seems to be scanning everything. A 256 G card with 83 G byte free.
Unfortunately you can't stop that job (communicating with device), nor set up which folder/directories on which storage should be scanned until it has scanned. Separate issue: I also set separate default locations for epubs and pdfs, but when I "send to device" I have to explictly pick the SD card or else those are created on internal storage. Setting default of SD Card / Card A in "Send to Device" changes that for all devices, which isn't going to work for most Kindles, most Kobos, my Sony PSR-350 or my P47L (none have extra cards). |
06-05-2024, 07:09 AM | #2 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
It's likely to take a long time and timed out on the first attempt. Now at 10 minutes.
I know I could power off the Android tablet and use the SD card on a USB adaptor with "Send to Disk", but not a great solution. |
Advert | |
|
06-05-2024, 07:15 AM | #3 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Sorry, Calibre 7.10 on Linux Mint 21.3 with Mint Desktop. The "gvs-mtp-volume-monitor" is stopped before connecting any MTP device so that the device isn't mounted. (The "don't mount" GUI option works for Cinnamon, but not Mate).
Now at 18 minutes and still "finding objects" outside of the PDF book and ebook trees. |
06-05-2024, 07:35 AM | #4 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Code:
calibre, version 7.10.0 ERROR: Error: Error communicating with device Failed to upload file named: driveinfo.calibre to ('SD card',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info. 2:Error 2002: PTP General Error Traceback (most recent call last): File "calibre/gui2/device.py", line 111, in run File "calibre/gui2/device.py", line 565, in _books File "calibre/devices/mtp/driver.py", line 230, in books File "calibre/devices/mtp/driver.py", line 203, in get_driveinfo File "calibre/devices/mtp/driver.py", line 193, in _update_drive_info File "calibre/devices/mtp/driver.py", line 163, in put_calibre_file File "calibre/devices/mtp/base.py", line 24, in synchronizer File "calibre/devices/mtp/unix/driver.py", line 402, in put_file calibre.devices.errors.DeviceError: Failed to upload file named: driveinfo.calibre to ('SD card',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info. 2:Error 2002: PTP General Error |
06-05-2024, 07:39 AM | #5 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
You can't change scanned folder/directories (or even see what they are) unless the initial connection completes without error.
Time to look at the SD card directly. |
Advert | |
|
06-05-2024, 07:47 AM | #6 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Perhaps the flaw is that if a new folder/directory is added, by default it is scanned.
That seems to be the issue. so backing up extra ones and deleting content so I can untick them. |
06-05-2024, 07:51 AM | #7 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
The extra folders had about 60 Gbyte
|
06-05-2024, 08:30 AM | #8 | ||
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Quote:
This used to work |
||
06-05-2024, 09:16 AM | #9 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Other issues
You can't untick internal storage and SDcard folders at the same time. You have to OK main Device dialog and restart Calibre. I mounted a main filesystem folder and connected to it with the Android tablet disconnected. I put PDFs in PDF and epubs in ebooks in that folder, exited Calibre, "Continued" the gvfs-mtp-monitor and connected the tablet. Copied files to SD card. Double checked nothing on Internal Storage. Ejected and connected to Calibre. Calibre detected the new PDFs and ebooks but shows them in "Main". Sending to "Main" actually sends to SDCard. Shows as sent to Main. Sending to Card A fails. The MTP for actual transfer is about x2 speed of the SD Card mounted in a USB reader, no doubt because reader is a cheap USB 2.0 and tablet is maybe using USB 3.0 (USB-C cable to a PC USB-C USB 3.0 port). |
06-05-2024, 09:20 AM | #10 |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
So mysteriously I used to select Card A for the SD Card, but now the SD Card appears as and is used as "Main" on Calibre main interface and Send to Device, EXCEPT in the Device Config where you select/deselect folders and you see Internal and SD Card separately, and you can only change one or the other without OK and Restart Calibre. Odd.
|
06-05-2024, 12:21 PM | #11 |
creator of calibre
Posts: 44,483
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MTP is *extremely* flaky I wouldnt even try to make it work with more than a few hundred books. I suggest you temporarily move the extra folder off and then create and empy one and exclude it and then move it back, then it wont be scanned.
|
06-05-2024, 01:04 PM | #12 | |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
1. So I wondered could the default be that no new folder/directory is scanned unless manually added? 2. Why does the SD Card now appear as main on "Device" Column and Send to Device? Selecting Card A fails. 3. Is it a bug you can only change scanned folders on the SD Card OR Internal Storage, but not both at the same time? Was it always like that? Spoiler:
MTP is horrible Actually, about 80G was files on all my computers and server and just a copy, so I deleted the contents. SD card in USB reader is 5 Mbps and SD card via Tablet MTP on Caja is 8 to 11 Mbps. Too slow for 80 Gbyte! I'll set it up copying back when I go to bed. I'm glad my actual ereaders use USB Mass Storage. |
|
06-06-2024, 08:58 AM | #13 | |||
creator of calibre
Posts: 44,483
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Quote:
[/quote] Quote:
|
|||
06-06-2024, 09:36 AM | #14 | |
the rook, bossing Never.
Posts: 12,324
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
I'll probably use the Pocketbook app via Wifi on the tablet, Calibre Content server and "opds", as unlike MTP, it's perfect. Did you see my Kobo Libra 2 Stress test? 6200+ files in one go! No disconnects, crashes or DB corruptions (connect 2nd time for extra metadata). Give a shout if you or a friend is transiting Shannon Airport. I've a spare Likebook Mars 7.8″ Android eink (maybe 32G max SD card) and a spare Lenovo approx 10″ LCD tablet kind of thing, which works with at least 128G, so proably up to 1G. All my newer stuff takes SD cards to at least 1G (Oppo phone and TCL nxtpaper 11 and Raspberry Pi4b) All my smart phones (Android 4.x to 8.x) and tablets I had since 2007 take SD card, except the Apple 4S someone gave me. I even had a Win10 32 bit tablet for a while with SD card. Gave it away, though it was slightly better with 64 bit Mint. |
|
06-08-2024, 07:55 AM | #15 |
Onyx-maniac
Posts: 3,118
Karma: 12439909
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Why not explicitly sync directories?
You could put the commands in a script/batch/makefile. I just say, "make poke5" or "make motog". Code:
adbsync /acsu /s C:\Books sdcard/Books adbsync /acsu /s C:\Ref sdcard/Ref ... adbtime |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre rescans entire SD card each time device is connected | michaelmcd | Devices | 11 | 11-03-2021 09:35 AM |
Want to copy entire calibre library to sd card | OldLincoln | Library Management | 9 | 08-31-2020 02:56 PM |
Android Phone / MTP error | dmp1991 | Devices | 8 | 09-17-2018 08:36 PM |
Calibre won't see my Android MTP device, File system sees it fine. (linux) | setherd | Devices | 8 | 08-02-2014 06:12 AM |
I only see a driveinfo.calibre file in my MTP android tablet. | duxtin | Devices | 2 | 10-06-2013 07:54 PM |