View Single Post
Old 02-05-2016, 09:53 AM   #31
Whitefox
Member
Whitefox began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2014
Device: kindle 4, kindle paperwhite
I tried the script on the kindle, it seems it works
Code:
[root@kindle root]# time ./copycmp.sh /dev/mmcblk0p2 /mnt/us/blk0p2.img
Termination on block boundary. (0+0.0+0)
Blocks: 16384, plus Bytes: 0, Total skips: 10804, Total bytes: 67108864
real    7m 27.90s
user    2m 35.82s
sys     3m 59.96s

[root@kindle root]# ./dc3dd if=/dev/mmcblk0p2 hof=/mnt/us/blk0p2.img hash=sha1 s
sz=4096 nwspc=on verb=on

dc3dd 7.1.614 started at 1970-01-01 03:05:26 +0200
compiled options:
command line: ./dc3dd if=/dev/mmcblk0p2 hof=/mnt/us/blk0p2.img hash=sha1 ssz=4096 nwspc=on verb=on
device size: 131072 sectors (probed)
sector size: 4096 bytes (set)
67108864 bytes (64 M) copied (100%), 19.9833 s, 3.2 M/s                       
output hashing (100%)                                                         
input results for device `/dev/mmcblk0p2':
   16384 sectors in
   0 bad sectors replaced by zeros
   9c43dafd7af42504b2684eeae838ced7e31b5eea (sha1)
output results for file `/mnt/us/blk0p2.img':
   16384 sectors out
   [ok] 9c43dafd7af42504b2684eeae838ced7e31b5eea (sha1)
dc3dd completed at 1970-01-01 03:05:46 +0200
Now should I try to do something like this?
Code:
./copycmp.sh /mnt/us/rootfs.img /dev/mmcblk0p1
and check it with
Code:
./dc3dd if=/mnt/us/rootfs.img hof=/dev/mmcblk0p1 hash=sha1 ssz=4096 nwspc=on verb=on
correct?

I got some problem coping the rootfs.img with usb, the file copied had a different md5 hash, so I had to split in a bunch of chunks, copy them(one at time), and join them using the serial console

Last edited by Whitefox; 02-05-2016 at 09:59 AM. Reason: Forget dc3dd parameters
Whitefox is offline   Reply With Quote