A number of the NewIT SD image files have been specifically created allowing room for flash wear'n'tear.
This little script will 'short copy' prune the surplus space off the end of the
uncompressed SD image file, which will then enable the copy to be written to an undersized (already worn) SD card.
prune-img.sh
#!/bin/bash
# vim:ai:sw=2
set -e
if [ ! -r "$1" ] ; then
echo "Cannot read \"$1\""
echo -e "Usage:\n${0##*/} <diskfile.img>"
exit -1
fi
T=0
while read P S E A G ; do
if [ "$S" == "*" ] ; then
S=$E
E=$A
fi
if [ $E -gt $T ] ; then
T=$E
fi
done < <(fdisk -l "$1" | grep "^$1")
T=$(($T+1))
dd if=$1 of=$1-pruned bs=512 count=$T
If you are low on workspace, changing the last line to that below will truncate the original image rather than 'short copy' it.
dd if=/dev/null of=$1 bs=512 seek=$T
No Guarantees, No Safety Checks, No Responsibility Taken, Your Risk!