--- system-image-sh4/dev-environment.sh +++ system-image-sh4.patched/dev-environment.sh @@ -41,9 +41,9 @@ export PATH=/sbin:/usr/sbin:$PATH fi - truncate -s ${HDBMEGS}m "$HDB" && - mke2fs -q -b 1024 -F "$HDB" -i 4096 && - tune2fs -j -c 0 -i 0 "$HDB" + dd if=/dev/zero of="$HDB" bs=1 count=0 seek=${HDBMEGS}M && + mke2fs -i 4096 -q -b 1024 -F "$HDB" && + tune2fs -c 0 -i 0 "$HDB" [ $? -ne 0 ] && exit 1 }