#!/bin/bash
FILES="02_loader 03_unos 04_config 05_ramdisk 06_mark 07_mark 08_savesetboot 09_bootpart 10_mark"

# density code 0x05 for 45/60 MB (not Writable) 8000 BPI
#              0x10 for 150 MB                  10000 BPI
DEV=/dev/nst0
echo "Rewinding Tape"
mt -f $DEV rewind || exit 1
mt -f $DEV setdensity 0x10 || exit 1

for i in $FILES
do
  echo -n $i" "
  dd if=$i of=/dev/nst0 bs=512 || exit 1
done

mt -f $DEV rewind || exit 101_header

