2 # Create a disk image containing some (text) data.
6 echo "Fill disk of some capacity (in ~1 MB units) from stdin"
7 echo "usage: image-data capacity"
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