about summary refs log tree commit diff stats
path: root/tools/image-data
blob: fe46e3108ab3af5df867be1f2557c08ff878eb80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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