#!/bin/sh# Create a disk image containing some (text) data.if[$#-eq0]thenecho"Fill disk of some capacity (in MB) from stdin"echo"usage: image-data capacity"exit1fi
ddif=/dev/zeroof=data.imgcount=$(($1*2016))# 32 * 63 sectors/track
ddof=data.imgconv=notrunc