Mobileread
Calibre keeps disconnecting my kindle.
#1  Pigi_102 02-13-2020, 03:41 PM
Hi all,
I'm trying to figure out what's the problem.

I have a Kindle ( super basic edition ) that has started to give me some problems while sending books to it.

What happens is this.
I run calibre, which starts normally. I then connect my kindle to usb port and it get detected from the system ( linux ) and calibre.
I can see what's inside it but if I try to send a new book to it I see the kindle screen as it has been disconnected, and calibre gives me this error :
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pigi'
[Errno 13] Permission denied: '/mnt/sdb1/documents'

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 90, in run
File "site-packages/calibre/gui2/device.py", line 594, in _upload_books
File "site-packages/calibre/devices/usbms/driver.py", line 324, in upload_books
File "site-packages/calibre/devices/usbms/device.py", line 998, in create_upload_path
File "os.py", line 150, in makedirs
File "os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/mnt/sdb1/documents'

and in the dmesg I get:
[ 1220.207223] sd 6:0:0:0: [sdb] tag#0 access beyond end of device
[ 1220.207228] blk_update_request: I/O error, dev sdb, sector 17 op 0x1WRITE) flags 0x0 phys_seg 1 prio class 0
[ 1220.207231] Buffer I/O error on dev sdb1, logical block 1, lost async page write
[ 1220.207250] sd 6:0:0:0: [sdb] tag#0 access beyond end of device
[ 1220.207252] blk_update_request: I/O error, dev sdb, sector 8380 op 0x1WRITE) flags 0x0 phys_seg 2 prio class 0
[ 1220.207254] Buffer I/O error on dev sdb1, logical block 8364, lost async page write
[ 1220.207255] Buffer I/O error on dev sdb1, logical block 8365, lost async page write

I've tracked down this one as it happens because the mount point get somehow disconnected.


At this point the only chance I get is to disconnect the usb port and connect again, but as soon as I try to write to the kindle I get the same error.

Initially I thought that the problm could have been on kindle filesystem or flash, thus I did an fsck to it and also tried on an other computer but with the same results.

If, instead, I do close calibre, mount the kindle by hand ( mount /dev/sdb1 /mnt/sdb1 ) I can write to it the books or whatever I want without any problem.
I can the read those book without any problem.
This mean ( to me ) that kindle is perfectly working, and also that the usb side of my linux is working too.

Any hint on how to track down the problem ?

Thanks in advance

Pigi_102
Reply 

#2  jhowell 02-14-2020, 08:08 AM
This thread may be related: [Kindle] calibre losing sight of device after one transfer
Reply 

Today's Posts | Search this Thread | Login | Register