[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-arm
Subject:    [fedora-arm] fedora-arm-image-installer.sh
From:       Steven Falco <stevenfalco () gmail ! com>
Date:       2014-12-20 17:32:35
Message-ID: 5495B2B3.8030607 () gmail ! com
[Download RAW message or body]

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
_______________________________________________
arm mailing list
arm@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/arm
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic