Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2015, 03:45 PM   #1
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question Calibre Library errors after NTFS > ext4 Conversion

I just completed dumping Windows 10 (dual boot with Mint Linux) for a Linux only setup.

As part of the process, I converted my Calibre libraries, which are on a separate large NTFS HD from the Linux system drive. I use the safe method of:

1. Copy all files and folders from NTFS drive to another hard drive
2. Format NTFS drive to Linux ext4
3. Copy all files and folders back onto the ext4 drive

The drives mount in /media/username/xxxxx and it mounts and displays files fine when I boot directly into Linux with no more dual-boot or Windows involvement; eBook epub and mobi files open and display correctly in other eReader apps.

But Calibre gives me a error when I try to change to the new libraries. The main error is:

calibre, version 1.48.0
ERROR: Unhandled exception: <b>IOError</b>:[Errno 13] Permission denied: u'/media/username/xxxxxx/Calibre Libraries/Calibre Master Fiction/calibre_test_case_sensitivity.txt'

The proper files appear to be there:

-rw-rw-rw- 1 username adm 54989824 Nov 1 16:35 metadata.db
-rw-rw-rw- 1 username adm 16816 Jul 26 09:26 metadata_db_prefs_backup.json

'username' is a member of 'adm' group as well.

There is more verbage to the error message and I will be glad to post if, but though this might be enough if someone has seen this before.

The file 'calibre_test_case_sensitivity.txt' is nowhere to be found, however. This makes me suspect it may be a Linux case sensitive issue, but no clue on how to troubleshoot further.

Thanks,

Monty
MontyJ is offline   Reply With Quote
Old 11-06-2015, 03:59 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,181
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
First update to latest calibre, then run library maintenance, you will have to do manual fixes for most of the problems.
Suggestion copy the library to a new library keeping current settings, then remove all books from the original library, check the old library with file manager, any folders books left in the old library need to be checked to see if they where copied over to the new.

Make backups before you start.
bernie

P.S.

I just copied my library from my mint 17 pc to a windows 10 tablet.

Last edited by gbm; 11-06-2015 at 04:01 PM.
gbm is offline   Reply With Quote
Advert
Old 11-06-2015, 04:27 PM   #3
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by gbm View Post
First update to latest calibre, then run library maintenance, you will have to do manual fixes for most of the problems.
Suggestion copy the library to a new library keeping current settings, then remove all books from the original library, check the old library with file manager, any folders books left in the old library need to be checked to see if they where copied over to the new.

Make backups before you start.
bernie

P.S.

I just copied my library from my mint 17 pc to a windows 10 tablet.

Thanks! I had just taken what was in the default repository, which appears to be pretty old, LoL.

Anyway, I thought it would simply update my current setup, but it gave me a whole new install. I have a pretty complicated setup/layout so would like to use my original config files, if that install link in your post didn't wipe it out! I backed out of the setup as soon as I saw the Wizard come up...

Can I still copy over the old config files or are they probably gone? What dir are they in in Linux?
MontyJ is offline   Reply With Quote
Old 11-06-2015, 04:52 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The configuration directory is:
Code:
~/.config/calibre/   # Linux
%APPDATA%\calibre\   # Windows
If you copy it over, it should work more or less. One thing that will definitely break is the library locations, you will need to re-add them.


Installing the official binaries vs. the repository version will not interfere with your configuration!


The error message seems to imply that calibre cannot write a new file to the containing directory:
Code:
/media/username/xxxxxx/Calibre Libraries/Calibre Master Fiction/
Directories have write permissions too.


To fix permission issues with a shotgun use:
Code:
sudo chmod -R 644 /media/username/xxxxxx/Calibre Libraries/
sudo chmod -R a+X /media/username/xxxxxx/Calibre Libraries/
sudo chown -R username:username /media/username/xxxxxx/Calibre Libraries/
eschwartz is offline   Reply With Quote
Old 11-06-2015, 05:37 PM   #5
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by eschwartz View Post
The configuration directory is:
Code:
~/.config/calibre/   # Linux
%APPDATA%\calibre\   # Windows
If you copy it over, it should work more or less. One thing that will definitely break is the library locations, you will need to re-add them.


Installing the official binaries vs. the repository version will not interfere with your configuration!


The error message seems to imply that calibre cannot write a new file to the containing directory:
Code:
/media/username/xxxxxx/Calibre Libraries/Calibre Master Fiction/
Directories have write permissions too.


To fix permission issues with a shotgun use:
Code:
sudo chmod -R 644 /media/username/xxxxxx/Calibre Libraries/
sudo chmod -R a+X /media/username/xxxxxx/Calibre Libraries/
sudo chown -R username:username /media/username/xxxxxx/Calibre Libraries/
Those permissions changes you suggested did the Trick!! Much Thanks
MontyJ is offline   Reply With Quote
Advert
Old 11-07-2015, 06:58 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You're welcome, and thanks for the karma.

On filesystems which understand permissions (unlike FAT32) if you are going to be switching OSes, user accounts, etc. I would always advise using the shotgun method of fixing permissions.
All kinds of things can go wrong when you accidentally mess up the permissions. And it's easy to get it wrong.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
errors syncing huge Calibre Library from USB stick to Ubuntu netbook beep_dave_1d Library Management 9 05-07-2013 12:35 PM
Calibre conversion without adding to library Starganderfish Calibre 2 01-02-2011 04:31 AM
Calibre Conversion Errors mrbillb Calibre 16 09-10-2010 11:21 PM
eBook Library Conversion in Calibre river Calibre 1 07-15-2009 11:16 AM
Calibre conversion errors? nick_f Sony Reader 2 03-03-2009 05:44 AM


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


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