diff --git a/idd.sh b/idd.sh index 1896f2a..2986275 100755 --- a/idd.sh +++ b/idd.sh @@ -1,5 +1,8 @@ #!/bin/bash +# DD Options +BLOCKSIZE="4" # in megabytes + # Paths MOUNTPATH="/mnt/mediadrive" DEVICEDIR="/dev" @@ -148,7 +151,7 @@ case "$1" in echo printf "${LCYAN}Please wait ...${NC}\n" echo - pv -tpreb ${filepath} | dd bs=1M of=${DEVICEDIR}/${devname} + pv -tpreb ${filepath} | dd bs=${BLOCKSIZE}M of=${DEVICEDIR}/${devname} echo printf "${YELLOW}Syncing buffers...${NC}\n";sync echo @@ -204,7 +207,7 @@ case "$1" in echo printf "${LCYAN}Please wait ...${NC}\n" echo - pv -tpreb ${filepath} | dd bs=1M of=${DEVICEDIR}/${devname} + pv -tpreb ${filepath} | dd bs=${BLOCKSIZE}M of=${DEVICEDIR}/${devname} echo printf "${YELLOW}Syncing buffers...${NC}\n";sync echo