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, 06: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: 846
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 offline   Reply With Quote
Old 03-28-2024, 07: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,532
Karma: 100606001
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
Advert
Old 03-28-2024, 08: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: 846
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 offline   Reply With Quote
Old 04-29-2024, 04: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: 846
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 offline   Reply With Quote
Old 04-29-2024, 07: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,532
Karma: 100606001
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
Advert
Old 05-31-2024, 07: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: 846
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; 05-31-2024 at 07:51 PM. Reason: add a PS
dhdurgee is offline   Reply With Quote
Old 05-31-2024, 07: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: 40,603
Karma: 157444382
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
Old 06-02-2024, 04:56 PM   #8
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: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
I just did the following via ssh on the pw4:

Code:
[root@kindle root]# fsck.vfat /dev/loop/0
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Clearing dirty flag
Long filename fragment ":6eh:1BL:2bg:2ZI:E7v:9jb:4JF:DgE:B-j:FqH:2ot:EtR:81U" found outside a LFN sequence.
  (Maybe the start bit is missing on the last fragment)
1: Delete fragment
2: Leave it as it is.
3: Set start bit
? 2
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  Has a large number of bad entries. (74/142)
Drop directory ? (y/n) n
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr/��1\221���\227.'�\226
  Bad file name.
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 4
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr/�\216�9pݷ\236.\221z�
  Bad file name.
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 4
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr/�y���)�.`�j
  Bad file name.
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 4
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr/�\234iX�̥\213.�@d
  Bad file name.
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 4
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr/ٹS���B0.\202v�
  Bad file name.
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 4
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  "." is missing. Can't fix this yet.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  ".." is missing. Can't fix this yet.
Leaving file system unchanged.
/dev/loop/0: 20752 files, 228014/817083 clusters
[root@kindle root]#
As you can see I took no action on any of these, as I want to be sure to take the proper ones.

How should I respond on my next pass to actually correct these various errors?

Dave
dhdurgee is offline   Reply With Quote
Old 06-04-2024, 02:16 PM   #9
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: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Any input from anyone on the output from fsck.vfat /dev/loop/0 above? Should I simply add the "-a" option which is documented as:

Code:
       -a  Automatically repair the filesystem.  No user intervention is necessary.  Whenever there is more than one  method  to
           solve a problem, the least destructive approach is used.
Dave
dhdurgee is offline   Reply With Quote
Old 06-08-2024, 02:45 PM   #10
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: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Given the lack of further assistance thus far I gave a try at this without success. Here is the results of my latest attempt:

Code:
dhdurgee@z560:~/Downloads$ ssh root@pw4


Welcome to Kindle!

[root@kindle root]# fsck.vfat /dev/loop/0
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Clearing dirty flag
Long filename fragment ":6eh:1BL:2bg:2ZI:E7v:9jb:4JF:DgE:B-j:FqH:2ot:EtR:81U" found outside a LFN sequence.
  (Maybe the start bit is missing on the last fragment)
1: Delete fragment
2: Leave it as it is.
3: Set start bit
? 1
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  Has a large number of bad entries. (74/142)
Drop directory ? (y/n) y
Reclaimed 63 unused clusters (516096 bytes).
Free cluster summary wrong (598754 vs. really 598817)
1) Correct
2) Don't correct
? 1
Leaving file system unchanged.
/dev/loop/0: 20210 files, 218266/817083 clusters
[root@kindle root]# fsck.vfat -a /dev/loop/0
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Clearing dirty flag
Long filename fragment ":6eh:1BL:2bg:2ZI:E7v:9jb:4JF:DgE:B-j:FqH:2ot:EtR:81U" found outside a LFN sequence.
  (Maybe the start bit is missing on the last fragment)
  Not auto-correcting this.
Checksum in long filename part wrong (90 vs. expected 57).
  Not auto-correcting this.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  Has a large number of bad entries. (65/142)
  Not dropping it in auto-mode.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  "." is missing. Can't fix this yet.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  ".." is missing. Can't fix this yet.
Performing changes.
/dev/loop/0: 20214 files, 218329/817083 clusters
[root@kindle root]# fsck.vfat -a /dev/loop/0
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Long filename fragment ":6eh:1BL:2bg:2ZI:E7v:9jb:4JF:DgE:B-j:FqH:2ot:EtR:81U" found outside a LFN sequence.
  (Maybe the start bit is missing on the last fragment)
  Not auto-correcting this.
Checksum in long filename part wrong (90 vs. expected 57).
  Not auto-correcting this.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  Has a large number of bad entries. (65/142)
  Not dropping it in auto-mode.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  "." is missing. Can't fix this yet.
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  ".." is missing. Can't fix this yet.
/dev/loop/0: 20214 files, 218329/817083 clusters
[root@kindle root]# fsck.vfat /dev/loop/0
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Long filename fragment ":6eh:1BL:2bg:2ZI:E7v:9jb:4JF:DgE:B-j:FqH:2ot:EtR:81U" found outside a LFN sequence.
  (Maybe the start bit is missing on the last fragment)
1: Delete fragment
2: Leave it as it is.
3: Set start bit
? 1
/documents/Downloads/Items01/Holy Rebel_ Armed with Truth, Stand Your Ground, and Rebel Against Hell:20Ps Agenda._B0BM1XM884.sdr
  Has a large number of bad entries. (74/142)
Drop directory ? (y/n) y
Reclaimed 63 unused clusters (516096 bytes).
Free cluster summary wrong (598754 vs. really 598817)
1) Correct
2) Don't correct
? 1
Leaving file system unchanged.
/dev/loop/0: 20210 files, 218266/817083 clusters
[root@kindle root]# exitConnection to pw4 closed.
dhdurgee@z560:~/Downloads$

What I find puzzling is I tell it to make corrections, yet it does NOT do so. I have also tried some work from my laptop while plugged in, specifically trying to delete the /documents/Downloads/Items01 sub-directory, without success. I don't even see the above referenced sub-directory, so I can't delete it only from there.

Further suggestions appreciated.

Dave
dhdurgee is offline   Reply With Quote
Old 06-08-2024, 03:25 PM   #11
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,532
Karma: 100606001
Join Date: Apr 2011
Device: pb360
It seems to me that your kindle's internal flash memory is worn out.
j.p.s is offline   Reply With Quote
Old 06-08-2024, 03:43 PM   #12
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: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by j.p.s View Post
It seems to me that your kindle's internal flash memory is worn out.
I would find that a more believable possibility if I were not able to mount the PW4 using sftp and then manually copy new books onto it which are completely accessible.

I am also able to keep current with magazine subscriptions via Kindle Unlimited.

Given I am able to add books in this manner the flash memory is obviously functioning. The puzzle is why does a USB mount result in problems and why can't fsck.vfat correct the problems.

Dave
dhdurgee is offline   Reply With Quote
Old 06-08-2024, 04:55 PM   #13
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,532
Karma: 100606001
Join Date: Apr 2011
Device: pb360
Did you run fsck on the kindle or your PC? Running it on a mounted partition is a bad idea anytime, and it is my understanding that, at least in the case of a kindle, what shows up over usbfs is not the real partition.
Code:
[root@kindle root]# grep mmc /etc/fstab
/dev/mmcblk0p1    /             ext3   suid,exec,auto,nouser,async,rw,noatime,nodiratime 0      1
/dev/mmcblk1p1    /mnt/base-mmc vfat   defaults,noatime,nodiratime,utf8,noexec,shortname=mixed              0      0
fsp#/mnt/base-mmc /mnt/mmc      fuse   rw,max_write=65536,max_readahead=65536,noatime,exec,nosuid,nodev,nonempty     0      0
[root@kindle root]# grep mnt/us /etc/fstab
fsp#/mnt/base-us  /mnt/us       fuse   allow_other,umask=0,uid=0,gid=0,rw,max_write=65536,max_readahead=65536,noatime,noexec,nosuid,nodev,nonempty     0      0
/dev/mmcblk1p1 is the OS partition
/dev/mmcblk1p1 is the user store partition

Note the presence of the 2 fuse file systems.

If /dev/mmcblk1p1 is corrupted I guess you could disable usbfs by enabling usbnetworking and ssh in and unmount /mnt/us and /mnt/mmc and /mnt/base-mmc
then run fsck on /dev/mmcblk1p1

I have no idea how to run fsck on a fuse system.
j.p.s is offline   Reply With Quote
Old 06-08-2024, 05:21 PM   #14
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: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by j.p.s View Post
Did you run fsck on the kindle or your PC? Running it on a mounted partition is a bad idea anytime, and it is my understanding that, at least in the case of a kindle, what shows up over usbfs is not the real partition.
Code:
[root@kindle root]# grep mmc /etc/fstab
/dev/mmcblk0p1    /             ext3   suid,exec,auto,nouser,async,rw,noatime,nodiratime 0      1
/dev/mmcblk1p1    /mnt/base-mmc vfat   defaults,noatime,nodiratime,utf8,noexec,shortname=mixed              0      0
fsp#/mnt/base-mmc /mnt/mmc      fuse   rw,max_write=65536,max_readahead=65536,noatime,exec,nosuid,nodev,nonempty     0      0
[root@kindle root]# grep mnt/us /etc/fstab
fsp#/mnt/base-us  /mnt/us       fuse   allow_other,umask=0,uid=0,gid=0,rw,max_write=65536,max_readahead=65536,noatime,noexec,nosuid,nodev,nonempty     0      0
/dev/mmcblk1p1 is the OS partition
/dev/mmcblk1p1 is the user store partition

Note the presence of the 2 fuse file systems.

If /dev/mmcblk1p1 is corrupted I guess you could disable usbfs by enabling usbnetworking and ssh in and unmount /mnt/us and /mnt/mmc and /mnt/base-mmc
then run fsck on /dev/mmcblk1p1

I have no idea how to run fsck on a fuse system.
I had looked through the mounts on the PW4 and found:

Code:
[root@kindle root]# mount | grep vfat
/dev/loop/0 on /mnt/base-us type vfat (rw,noexec,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
[root@kindle root]#
Given this I had been running my fsck.vfat on /dev/loop/o with the results you see above.

I get the following with the commands you used:

Code:
[root@kindle root]# grep mmc /etc/fstab
/dev/mmcblk0p1    /             ext3   suid,exec,auto,nouser,async,rw,noatime,nodiratime 0      1
/dev/mmcblk1p1    /mnt/base-mmc vfat   defaults,noatime,nodiratime,utf8,noexec,shortname=mixed              0      0
fsp#/mnt/base-mmc /mnt/mmc      fuse   rw,max_write=65536,max_readahead=65536,noatime,exec,nosuid,nodev,nonempty     0      0
[root@kindle root]# grep mnt/us /etc/fstab
fsp#/mnt/base-us  /mnt/us       fuse   allow_other,umask=0,uid=0,gid=0,rw,max_write=65536,max_readahead=65536,noatime,noexec,nosuid,nodev,nonempty,hard_remove     0      0
This appears to be identical, unless I am missing something.

I am using ssh via WiFi, so would it be sufficient to umount the three and then run the fsck.vfat?

Thank you for any further pointers you may have.

Dave
dhdurgee is offline   Reply With Quote
Old 06-08-2024, 05:39 PM   #15
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,532
Karma: 100606001
Join Date: Apr 2011
Device: pb360
I don't know. I have no experience with running fsck on loop devices or fuse file systems, and have no idea what complicated scheme is used to map the /dev/mmcblk1p1 device eventually to /mnt/us
j.p.s 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 24 08-31-2024 09:01 AM
Calibre fails to work with system tray in Linux Mint 18.2 Cinnamon benmordecai Library Management 2 07-01-2017 01:31 AM
Kindle Fire - Linux Mint problem cbalmforth Devices 8 12-07-2012 03:14 PM
Edge not mounting via mini USB on a Linux system. kenjennings enTourage Archive 5 04-09-2010 01:07 PM
Mounting cybook under linux Hanselda Bookeen 4 03-06-2008 10:15 AM


All times are GMT -4. The time now is 07:47 PM.


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