Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2021, 05:05 PM   #1
leio
Junior Member
leio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Kindle
Problem with transferring library to new drive

Hi, so I just got a new external hard drive and I managed to successfully move some of my Calibre libraries to it without any issues. However when I try moving one of them (my largest one, it's nearly 30g) I *immediately* get an error, and my external drive becomes corrupted. I plug it out, plug it back in, windows tells me it has a problem, it scans the drive, finds no problems to fix and it works normally again. Some help would be greatly appreciated...

calibre, version 5.22.1
ERROR: Failed to move library: There was an error while moving the library. The operation has been aborted. Click "Show details" for details.

Traceback (most recent call last):
File "calibre\utils\filenames.py", line 593, in copytree_using_links
TypeError: 'NoneType' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\dialogs\choose_library.py", line 145, in do_move
File "calibre\db\cache.py", line 76, in call_func_with_lock
File "calibre\db\cache.py", line 2172, in move_library_to
File "calibre\db\backend.py", line 2039, in move_library_to
File "calibre\utils\filenames.py", line 595, in copytree_using_links
File "calibre\utils\filenames.py", line 544, in copyfile
File "shutil.py", line 279, in copyfile
File "shutil.py", line 192, in _copyfileobj_readinto
OSError: [Errno 22] Invalid argument
leio is offline   Reply With Quote
Old 07-10-2021, 05:32 PM   #2
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try this:
  • Remove the library from calibre via the Remove library action, don't worry it won't delete the library folder or anything in it.
  • Copy the library folder manually to the new drive
  • Add library on the new drive to calibre via the Switch/create->Use the previously existing library at the new location option
  • If all is OK delete the library on the old drive, use Shift+Del to avoid filling up the Recycle Bin
BR
BetterRed is online now   Reply With Quote
Advert
Old 07-10-2021, 05:47 PM   #3
leio
Junior Member
leio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
Try this:
  • Remove the library from calibre via the Remove library action, don't worry it won't delete the library folder or anything in it.
  • Copy the library folder manually to the new drive
  • Add library on the new drive to calibre via the Switch/create->Use the previously existing library at the new location option
  • If all is OK delete the library on the old drive, use Shift+Del to avoid filling up the Recycle Bin
BR
Wouldn't this delete the tags and other such info on the books though? I'd really like to keep those... is there a way to?
leio is offline   Reply With Quote
Old 07-10-2021, 06:02 PM   #4
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by leio View Post
Wouldn't this delete the tags and other such info on the books though? I'd really like to keep those... is there a way to?
No it wont, all it does is to 'unhook' the library from calibre. The tags etc are in the library database file (metadata.db) which is in the library folder.

BR
BetterRed is online now   Reply With Quote
Old 07-10-2021, 07:26 PM   #5
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by BetterRed View Post
No it wont, all it does is to 'unhook' the library from calibre. The tags etc are in the library database file (metadata.db) which is in the library folder.

BR
Is there any advantage to using calibre to transfer a library to another drive? I've always just copied the calibre library directory and then pointed calibre at the new directory.
hobnail is offline   Reply With Quote
Advert
Old 07-10-2021, 08:14 PM   #6
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,047
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 hobnail View Post
Is there any advantage to using calibre to transfer a library to another drive? I've always just copied the calibre library directory and then pointed calibre at the new directory.
Slight!
The tool also grabs the configuration folder.
The tools will/can do all KNOWN (to Calibre) Libraries
theducks is offline   Reply With Quote
Old 07-10-2021, 09:02 PM   #7
leio
Junior Member
leio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
No it wont, all it does is to 'unhook' the library from calibre. The tags etc are in the library database file (metadata.db) which is in the library folder.

BR
Damn I swore that happened to me once... must've misremembered then. I'll try that, thank you!
leio is offline   Reply With Quote
Old 07-10-2021, 09:13 PM   #8
leio
Junior Member
leio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Kindle
Quote:
Originally Posted by leio View Post
Damn I swore that happened to me once... must've misremembered then. I'll try that, thank you!
No dice, it transferred about 2GB but won't let me transfer any more than that. I get the same "A device which does not exist was specified." and related errors then when trying to transfer through the app
leio is offline   Reply With Quote
Old 07-10-2021, 09:31 PM   #9
Atherton25
Zealot
Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.
 
Posts: 124
Karma: 3804
Join Date: May 2016
Device: Kindle Oasis 2
That sounds like it's dropped a USB connection or something. If you're physically transferring it outside of Calibre and you're getting an error like that, there's a probably a hardware problem.
Atherton25 is offline   Reply With Quote
Old 07-10-2021, 09:40 PM   #10
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
↑ ↑ ↑ ✔

Quote:
Originally Posted by theducks View Post
Slight!
The tool also grabs the configuration folder.
The tools will/can do all KNOWN (to Calibre) Libraries
I think the OP was using the Move current library to new location option in the Library Switch/create tool. And I suspect you're thinking of Export/Import.

BR
BetterRed is online now   Reply With Quote
Old 07-10-2021, 10:09 PM   #11
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,047
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 BetterRed View Post
↑ ↑ ↑ ✔


I think the OP was using the Move current library to new location option in the Library Switch/create tool. And I suspect you're thinking of Export/Import.

BR
yup! to me, that is how to move to a new computer.
I wonder about the new drive file system type. Or if the OP is putting the Library folder as the root of the drive?
theducks is offline   Reply With Quote
Old 07-10-2021, 10:57 PM   #12
leio
Junior Member
leio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Kindle
So... I guess this either was a hardware issue from the start or it eventually turned into one. At this point my drive has become completely innaccessible so nevermind I guess. Sorry all and thanks for trying to help anyways lol
leio is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting up shared library on Google Drive CyberPotato Library Management 5 02-04-2013 05:01 PM
transferring library to different computer tponzo Library Management 6 09-16-2012 10:52 AM
Problem transferring from device to library covingtoncat73 Calibre 7 05-11-2012 03:00 PM
PRS-650 Transferring library from 505 mediax Sony Reader 2 12-07-2010 07:22 AM
PRS-600 problem transferring spidy Sony Reader 4 06-06-2010 12:59 PM


All times are GMT -4. The time now is 06:15 AM.


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