8.3.3. Simple Script for Tape Deletion¶
Tape Deletion Script Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/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
|