From 51ff95afac09f38e69fba9d032d3e6bf088565fe Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 9 May 2017 21:27:59 -0700 Subject: [PATCH] idd.sh: Added block size flag to dd for speed increase --- idd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idd.sh b/idd.sh index 51dddea..cbf8795 100755 --- a/idd.sh +++ b/idd.sh @@ -127,7 +127,7 @@ case "$1" in echo printf "${LCYAN}Please wait ...${NC}\n" echo - pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync + pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync printf "${LGREEN}Done writing file${NC}\n" else echo "${0}: Please install 'pv' with your package manager" @@ -177,7 +177,7 @@ case "$1" in echo printf "${LCYAN}Please wait ...${NC}\n" echo - pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync + pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync printf "${LGREEN}Done writing file${NC}\n" else echo "${0}: pv command not found in /usr/bin"