This commit is contained in:
Kartik K. Agaram 2021-10-10 08:35:59 -07:00
parent 1fca8ee13c
commit ee1b0d19b6
1 changed files with 2 additions and 2 deletions

View File

@ -3,10 +3,10 @@
if [ $# -eq 0 ]
then
echo "Fill disk of some capacity (in MB) from stdin"
echo "Fill disk of some capacity (in ~1 MB units) 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 if=/dev/zero of=data.img count=$(($1*2016)) # 32 tracks * 63 sectors/track of 512-byte sectors
dd of=data.img conv=notrunc