much love
[mu.git] / tools / image-data
blobe73b6d7dab0aa77b267dc3ad32aa2ea70514435a
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 ~1 MB units) 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 tracks * 63 sectors/track of 512-byte sectors
12 dd of=data.img conv=notrunc