15.8. Erasing data from tape devices
You can erase data from a tape device by using the erase option.
Prerequisites
-
You have installed the
mt-stpackage. For more information, see Installing tape drive management tool. - Data is written to the tape device. For more information, see Writing to rewinding tape devices or Writing to non-rewinding tape devices.
Procedure
Erase data from the tape device:
# mt -f /dev/st0 eraseUnload the tape device:
# mt -f /dev/st0 offline