mu/tools/image-data

13 lines
287 B
Plaintext
Raw Normal View History

2021-08-10 15:59:00 +00:00
#!/bin/sh
# Create a disk image containing some (text) data.
if [ $# -eq 0 ]
then
echo "Fill disk of some capacity (in MB) from stdin"
echo "usage: image-data capacity"
exit 1
fi
dd if=/dev/zero of=data.img count=$(($1*2016)) # 32 * 63 sectors/track
dd of=data.img conv=notrunc