Browse Source

use dd if fallocate fails (ext3?)

K. Lange 2 years ago
parent
commit
6598a4cb9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/mkdisk.sh

+ 1 - 1
util/mkdisk.sh

@@ -7,7 +7,7 @@ OUTDIR=`dirname $1`
 
 rm -f $OUT
 mkdir -p cdrom
-fallocate -l 64M $OUT
+fallocate -l 64M $OUT || dd if=/dev/zero bs=1M count=64 of=$OUT
 mkfs.fat $OUT
 
 #echo "Turning $IN into $OUT"