start hacky experiment to support combining chars
[mu.git] / tools / image-data
blobfe46e3108ab3af5df867be1f2557c08ff878eb80
1 #!/bin/sh
2 # Create a disk image containing some (text) data.
4 if [ $# -eq 0 ]
5 then
6 echo "Fill disk of some capacity (in MB) from stdin"
7 echo "usage: image-data capacity"
8 exit 1
9 fi
11 dd if=/dev/zero of=data.img count=$(($1*2016)) # 32 * 63 sectors/track
12 dd of=data.img conv=notrunc