View Single Post
Old 06-13-2012, 04:32 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by cscat View Post
I skipped the quote here so that the typo's would not be duplicated.
s/mmcblk0pt/mmcblk0p/g

The eMMC flash can only change its contents in erase block increments. The erase block size for this device is 4K:
s/1K/4K/g
or: bs=4096 rather than bs=1024

Whitespace is the normal IFS (Input Field Separator) of *nix shells.
You have to quote directory and file names that contain whitespace.
s/MY KT 5.1.0/myKT-5.1.0/g
or: any other name avoiding whitespace
or: put that name in quotes wherever it appears on the command line.

- - -
Enough with the *nix nit picking...

p1 = "Main filesystem"
p2 = "Diags filesystem"
p3 = "User data filesystem"
p4 = "User area"
I found that p4 (partition 4) title in the scripting but have not read enough of the system files to know what they are putting on that partition or even if it has a file system on it.

To investigate your system image files (as read-only here for safety) on your non-Kindle Linux system:
Code:
cd
sudo mkdir my_main
sudo mount -o ro mmcblk0p1.img my_main
# fiddle, fiddle, fiddle, read
sudo umount mmcblk0p1.img
The above makes the current directory your home (~) directory.
Adds a mount point name.
Mounts the Kindle system image (assuming it is in the current directory) read-only.
Allows you to read files and/or grep for uses of blk0p4.
Un-mounts the Kindle system image.
Note: You must change directory away from the ~/my_main directory and its sub-tree before you un-mount otherwise you will get a "device busy" error.

GM can better answer your specific questions about what procedure you should follow.

Last edited by knc1; 06-13-2012 at 04:38 AM.
knc1 is offline   Reply With Quote