mt
Control magnetic tape drive operation (commonly LTO tape). tldr-pages
On Linux
Linux
Check the status of a tape drive
mt -f /dev/nstX statusIdentifyRewind the tape to beginning
mt -f /dev/nstX rewindIdentifyMove forward a given files, then position the tape on first block of next file
mt -f /dev/nstX fsf countIdentifyRewind the tape, then position the tape at beginning of the given file
mt -f /dev/nstX asf countIdentifyPosition the tape at the end of valid data
mt -f /dev/nstX eodIdentifyRewind the tape and unload/eject it
mt -f /dev/nstX ejectIdentifyWrite EOF (End-of-file) mark at the current position
mt -f /dev/nstX eofIdentify