[fedora-arm] fedora-arm-image-installer.sh

Steven Falco stevenfalco at gmail.com
Sat Dec 20 17:32:35 UTC 2014


I think this script can be improved by adding bs=1M to the dd operation.
Otherwise, accesses will be in 512 byte blocks, which are very inefficient
on most flash devices.

I find that adding this speeds up the image transfer, and probably results
in less wear on the flash device (since flash erase blocks are much larger
than 512 bytes).

Here is the trivial patch:

--- fedora-arm-image-installer.sh.old   2014-12-20 12:28:15.595790202 -0500
+++ fedora-arm-image-installer.sh       2014-12-20 12:28:30.120757003 -0500
@@ -182,7 +182,7 @@
        echo "= Writing: "
        echo "= $IMAGE "
        echo "= To: $MEDIA ...."
-       xzcat $IMAGE | sudo dd of=$MEDIA; sync; sleep 3
+       xzcat $IMAGE | sudo dd of=$MEDIA bs=1M; sync; sleep 3
        echo "= Writing image complete!"
 # read the new partition table
        sudo partprobe "$MEDIA"

The same improvement could be made to the manual process described on the
wiki at: https://fedoraproject.org/wiki/Architectures/ARM/F21/Installation

	Steve


More information about the arm mailing list