Script - Tape Deletion
Below is an example script for Tape Deletion.
#!/bin/bash
# Script: Tape Erasing
echo "Erasing and Re-Tensioning Tape."
echo "mt -f /dev/st0 rewind"
time mt -f /dev/st0 rewind
echo "mt -f /dev/st0 retension"
time mt -f /dev/st0 retension
echo "mt -f /dev/st0 erase"
time mt -f /dev/st0 erase
echo "mt -f /dev/st0 rewind"
time mt -f /dev/st0 rewind
echo "mt -f /dev/st0 status"
mt -f /dev/st0 status
echo "mtx -f /dev/sg5 unload"
mtx -f /dev/sg5 unload
echo "Done."
done