Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2024, 05:32 PM   #1
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
kindle mounting read-only on linux mint system

I am encountering a problem today that my pw4 is mounting read-only on my linux mint system. I have tried restarting the PW4, but that makes no difference. the mount command shows:

Code:
dhdurgee@z560:~/Downloads$ mount | grep /media/dhdurgee/Kindle
/dev/sdc on /media/dhdurgee/Kindle type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
dhdurgee@z560:~/Downloads$
Needless to say this is causing a problem using Calibre to add books. How do I fix this?

I do have usbnet installed and can ssh to the pw4 if more information is available from there or if the fix can be done there.

Dave
dhdurgee is online now   Reply With Quote
Old 03-28-2024, 06:19 PM   #2
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,299
Karma: 98804578
Join Date: Apr 2011
Device: pb360
The EMMC on your PW4 might be worn out.

You can try enabling USBnet, ssh to the kindle, and try touch on a new or existing file somewhere in /mnt/us

Also try mounting the root filesystem "/" rw and creating a new file in /etc/or somewhere.
j.p.s is offline   Reply With Quote
Old 03-28-2024, 07:00 PM   #3
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by j.p.s View Post
The EMMC on your PW4 might be worn out.

You can try enabling USBnet, ssh to the kindle, and try touch on a new or existing file somewhere in /mnt/us

Also try mounting the root filesystem "/" rw and creating a new file in /etc/or somewhere.
I worked around this with a sftp mount of the kindle to which I was then able to copy the books using fcl.

I have not tried to use Calibre again with it plugged into the USB. Obviously I will do so the next time I want to copy a book over.

If it dosn't work at that time I guess I will check and see if there is a way for Calibre to use sftp to do its work.

Thanks for the suggestion.

Dave
dhdurgee is online now   Reply With Quote
Old 04-29-2024, 03:13 PM   #4
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
I am still encountering this problem and wondering how to correct it.

Will there be any messages logged on the PW4 when I plug it in that might clarify why it is only allowing a read-only mount? I have USBNetworking installed and can SSH into the PW4 over WiFi, so I should be able to issue commands to retrieve messages from the log.

Any help appreciated.

Dave
dhdurgee is online now   Reply With Quote
Old 04-29-2024, 06:03 PM   #5
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,299
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by dhdurgee View Post
I am still encountering this problem and wondering how to correct it.

Will there be any messages logged on the PW4 when I plug it in that might clarify why it is only allowing a read-only mount? I have USBNetworking installed and can SSH into the PW4 over WiFi, so I should be able to issue commands to retrieve messages from the log.

Any help appreciated.

Dave
Code:
dmesg | tail
on both the kindle and your computer shortly after connecting them by USB might provide some clues.

I never put any of my kindles into USB mass storage mode and use scp to copy files in either direction.

With no USB connection, can you write to /mnt/us using an on kindle terminal or ssh?
j.p.s is offline   Reply With Quote
Old Yesterday, 06:15 PM   #6
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
I finally got around to looking into this a bit more. I did ssh into the PW4 and confirmed that I could dmesg | tail there, but I found that after plugged in the USB connection that the session froze and I later got a "[root@kindle root]# client_loop: send disconnect: Broken pipe" and was unable to retrieve anything from there. Here is what I saw on the linux side:

Code:
dhdurgee@z560:~/Downloads$ dmesg | tail
[29683.225009] scsi host6: usb-storage 2-1.1:1.0
[29684.239152] scsi 6:0:0:0: Direct-Access     Kindle   Internal Storage 0401 PQ: 0 ANSI: 2
[29684.240379] sd 6:0:0:0: Attached scsi generic sg3 type 0
[29684.241729] sd 6:0:0:0: Power-on or device reset occurred
[29684.242626] sd 6:0:0:0: [sdc] Media removed, stopped polling
[29684.253800] sd 6:0:0:0: [sdc] 13090733 512-byte logical blocks: (6.70 GB/6.24 GiB)
[29684.466062] sd 6:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[29684.466120] sdc: detected capacity change from 0 to 13090733
[29684.466130] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[29684.688948]  sdc:
[29785.419318] FAT-fs (sdc): error, corrupted directory (invalid entries)
[29785.419369] FAT-fs (sdc): Filesystem has been set read-only
[29786.926014] FAT-fs (sdc): error, corrupted directory (invalid entries)
dhdurgee@z560:~/Downloads$ dmesg | tail
[30026.765434] scsi 6:0:0:0: Direct-Access     Kindle   Internal Storage 0401 PQ: 0 ANSI: 2
[30026.766542] sd 6:0:0:0: Attached scsi generic sg3 type 0
[30026.767067] sd 6:0:0:0: Power-on or device reset occurred
[30026.767901] sd 6:0:0:0: [sdc] Media removed, stopped polling
[30026.776464] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[30026.888270] sd 6:0:0:0: [sdc] 13090733 512-byte logical blocks: (6.70 GB/6.24 GiB)
[30027.109915] sd 6:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[30027.109952] sdc: detected capacity change from 0 to 13090733
[30027.111816]  sdc:
[30027.548698] FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
The first delay was when I opened Calibre and received the read-only error. The second was when I unplugged in hope of getting the PW4 side and then plugged in again.

So it seems I have some corruption, which I assume should be fixed via the PW4 ssh terminal and not using fsck on linux. What is the appropriate command to issue there?

Dave

PS:

Taking a quick look at mounts on the PW4 I assume that /mnt/base-us is the system to check, but the appropriate options for the fsck command are needed.

Last edited by dhdurgee; Yesterday at 06:51 PM. Reason: add a PS
dhdurgee is online now   Reply With Quote
Old Yesterday, 06:50 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,505
Karma: 145748888
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Not sure if this is installed on a Kindle but you could try:

sudo umount /dev/sdc

sudo dosfsck -t -a -w /dev/sdc

You may need to set the device name properly (sdc1 or whatever).
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Linux Deploy——Install Linux system on your kindle XTxiaoting14332 Kindle Developer's Corner 23 10-04-2022 11:30 AM
Calibre fails to work with system tray in Linux Mint 18.2 Cinnamon benmordecai Library Management 2 07-01-2017 12:31 AM
Kindle Fire - Linux Mint problem cbalmforth Devices 8 12-07-2012 02:14 PM
Edge not mounting via mini USB on a Linux system. kenjennings enTourage Archive 5 04-09-2010 12:07 PM
Mounting cybook under linux Hanselda Bookeen 4 03-06-2008 09:15 AM


All times are GMT -4. The time now is 12:58 PM.


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