On 8/12/07, Brad Parker <brad at heeltoe.com> wrote:
Here's the maketape.sh script from 2.11
#!/bin/sh
# File Blocksize Content
# 0 512 mtboot
# 512 mtboot
# 512 boot
# 1 1024 disklabel
# 2 1024 mkfs
# 3 1024 restor
# 4 1024 icheck
# 5 10240 root.dump
# 6 10240 file6.tar
# 7 10240 file7.tar
# 8 10240 file8.tar
TAPE=nrst0
cat mtboot mtboot boot | dd of=/dev/nrst0 obs=512
dd if=disklabel of=/dev/nrst0 obs=1024
dd if=mkfs of=/dev/nrst0 obs=1024
dd if=restor of=/dev/nrst0 obs=1024
dd if=icheck of=/dev/nrst0 obs=1024
dd if=root.dump of=/dev/nrst0 obs=10240
dd if=file6.tar of=/dev/nrst0 obs=10240
dd if=file7.tar of=/dev/nrst0 obs=10240
dd if=file8.tar of=/dev/nrst0 obs=10240
-brad
I believe that script will not actually work in practice to create a
bootable 2.11BSD tape without inserting padding to 512 byte boundaries
after the mtboot files.
The mtboot files here are only 490 bytes. If you use the maketape
program found there it takes care of padding to block boundaries.
http://www.tribug.org/pub/tuhs/PDP-11/Distributions/ucb/2.11BSD/