fedora-arm-image-installer.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux