Last Updated: February 25, 2016
· blacktulip

Calibre Libraries on NAS

Calibre does not take libraries on network drives. It will throw "Database locked" errors when you try.

But we can avoid this error by mounting the volume with nobrl option.

From the manual:

nobrl -
Do not send byte range lock requests to the server. This is necessary for certain applications that break with cifs style mandatory byte range locks (and most cifs servers do not yet support requesting advisory byte range locks).

So in the /etc/fstab:

// /home/username/nas cifs nobrl,username=username,password=xxxx,uid=1001,gid=1001 0 0

Then you can use the calibre libraries on this volume without errors.