View Single Post
Old 12-01-2015, 02:45 PM   #168
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 donB006 View Post
This is probably too late so maybe this will help others.

When upgrading the OS why not make a backup along the way:
Code:
dd if=/dev/mmcblk0p1 of=/mnt/us/rootfs-3.3-dx.img conv=sync
dd if=/dev/mmcblk0p1 of=/mnt/us/rootfs-3.4-dx.img conv=sync
dd if=/dev/mmcblk0p1 of=/mnt/us/rootfs-3.4.2-dx.img conv=sync
Somebody else also suggested turning these services off before beginning:
Code:
/etc/init.d/powerd stop
/etc/init.d/netwatchd stop
When finished these services should be started again or just reboot.
A horrible example.
You are erasing and re-programming every erase block 4096 times for each block written.

The 'conv' option to dd does text file conversions, these are binary files, so 'conv=' is a sure way to trash the image.
Quote:
Originally Posted by man dd
sync pad every input block with NULs to ibs-size; when used with block or unblock, pad with spaces rather than NULs
And since the ibs default size is one byte ...

Translation:
Remove the 'conv=sync' option -
Add the bs=4096 option
knc1 is offline   Reply With Quote