Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2017, 06:03 AM   #1
ExecutorElassus
Junior Member
ExecutorElassus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: kindle paperwhite
Calibre-3.8.0 sets kindle paperwhite dirty

I'm running Calibre-3.8.0 on gentoo Linux. I have a 1st-gen Kindle Paperwhite from … 2013, I think?

Calibre consistently sets the device read-only, setting the dirty bit. If I connect via regular USB and check with the OS, I see this:

Code:
[156873.009797] sd 10:0:0:0: [sdg] Synchronizing SCSI cache 
[156873.009852] sd 10:0:0:0: [sdg] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK 
[156873.465571] usb 6-5: new high-speed USB device number 5 using ehci-pci 
[156874.017538] usb 6-5: device not accepting address 5, error -71 
[156887.060876] usb 6-5: new high-speed USB device number 7 using ehci-pci 
[156887.218012] usb-storage 6-5:1.0: USB Mass Storage device detected 
[156887.218201] scsi host10: usb-storage 6-5:1.0 
[156888.246073] scsi 10:0:0:0: Direct-Access     Kindle   Internal Storage 0100 PQ: 0 ANSI: 2 
[156888.246257] sd 10:0:0:0: Attached scsi generic sg6 type 0 
[156888.255063] sd 10:0:0:0: [sdg] Attached SCSI removable disk 
[156890.330907] sd 10:0:0:0: [sdg] 2797568 512-byte logical blocks: (1.43 GB/1.33 GiB) 
[156890.552748] sd 10:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 
[156890.774035]  sdg: sdg1
However, if I start Calibre, it not only fails to detect the device, it sets it read-only. I have no problem putting files on the Paperwhite directly with the file manager, but Calibre cannot.

When I run Calibre's device debug, I see the following:

Code:
Devices possibly connected: Kindle 2/3/4/Touch/PaperWhite/Voyage Device Interface, User Defined USB driver,  
Trying to open Kindle 2/3/4/Touch/PaperWhite/Voyage Device Interface ... failed 
Trying to open User Defined USB driver ... failed 
Opening of the following devices failed 
<calibre.devices.kindle.driver.KINDLE2 object at 0x7f53e222f510> 
Traceback (most recent call last): 
  File "/usr/lib64/calibre/calibre/devices/__init__.py", line 158, in debug 
    dev.open(det, None) 
  File "/usr/lib64/calibre/calibre/devices/usbms/device.py", line 825, in open 
    self.open_linux() 
  File "/usr/lib64/calibre/calibre/devices/usbms/device.py", line 599, in open_linux 
    self.filter_read_only_mount_points() 
  File "/usr/lib64/calibre/calibre/devices/usbms/device.py", line 637, in filter_read_only_mount_points 
    %self.__class__.__name__) 
DeviceError: The main memory of KINDLE2 is read only. This usually happens because of file system errors.
This happens every time. When I run 'fsck.vfat -a /dev/sdg' to repair the filesystem, it finds no errors, resets the dirty bit, and the whole process starts over.

Any ideas what's going on here, or how I can debug it?

Cheers,

EE
ExecutorElassus is offline   Reply With Quote
Old 11-18-2017, 06:12 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre accesses USB devices using standard filesystem calls. Presumably some area of your kindle drive that calibre accesses is failing causing the OS to set it to readonly. Either replace the kindle oir reformat the drive, whioch should allow it to last a little longer.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-18-2017, 08:45 AM   #3
ExecutorElassus
Junior Member
ExecutorElassus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: kindle paperwhite
When you say "reformat the device," do you mean a factory reset? And will I lose all the progress on all my books when I do, or does simply copying the documents folder to my computer, and then back onto the reset kindle restore them?

If it's a problem with a file itself being corrupted, how do I address that?

Cheers,

EE

Last edited by ExecutorElassus; 11-18-2017 at 08:49 AM. Reason: re-formulated the question.
ExecutorElassus is offline   Reply With Quote
Reply

Tags
calibre, kindle, mount filesystem, troubleshooting, usb


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
icon sets for use in calibre columns ? whismerhill Related Tools 1 05-19-2016 09:44 AM
Troubleshooting Kindle Paperwhite Help - Won't Recognize on Kindle for PC (+Calibre/collections prob) kyera Amazon Kindle 3 08-09-2015 08:46 PM
Separating a library in two independent sets in the Calibre interfase MrClockwise Library Management 4 07-31-2012 11:07 PM
Calibre sets my reader to R/O Nathanael Calibre 7 09-09-2010 12:42 AM
Dirty PDFs and the Kindle Austin Amazon Kindle 5 03-26-2008 10:47 PM


All times are GMT -4. The time now is 03:33 PM.


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