MT was written to erase an old (tar) backup tape which Windows-XP backup refused to overwrite... but I got curious along the way, and added support for various tape functions:
so it is a cut down version of the rsm command, but without the complexity (which doesn't seem to be in the published API anyway...)
Download the source (under 35Kb, includes licence) executable (under 25Kb) or compressed package (under 25k zip for those who like to conserve bandwidth :-) This software is released under the GNU GPL (General Public Licence)Example | Description |
mt longerase | erase the tape in the first tape drive (tape0)... (the command mt was written for) |
mt drivestatus | show the status of the first drive (tape0) |
mt mediastatus tape1 | show the status of the tape in the second drive (tape1) |
mt rewind | rewind the tape in the first drive (tape0) |
mt eject tape2 | eject the tape in the third drive (tape2) |
mt read mytape.dmp | copy contents of the tape in the first drive (tape0) to the file mytape.dmp |
mt read tape1 mytape.dmp 32768 | copy 32768 bytes from the tape in the second drive (tape1) to the file mytape.dmp |
Copyright (c) 2001-2002 Peter Weston