snippetbashTip
mt — Control magnetic tape drive operation (commonly LTO tape). More information: <https://manned.org/mt>
Viewed 0 times
commandtapeoperationdriveclimtcontrolmagnetic
linux
Problem
How to use the
mt command: Control magnetic tape drive operation (commonly LTO tape). More information: <https://manned.org/mt>.Solution
mt — Control magnetic tape drive operation (commonly LTO tape). More information: <https://manned.org/mt>.Check the status of a tape drive:
mt -f {{/dev/nstX}} statusRewind the tape to beginning:
mt -f {{/dev/nstX}} rewindMove forward a given files, then position the tape on first block of next file:
mt -f {{/dev/nstX}} fsf {{count}}Rewind the tape, then position the tape at beginning of the given file:
mt -f {{/dev/nstX}} asf {{count}}Position the tape at the end of valid data:
mt -f {{/dev/nstX}} eodRewind the tape and unload/eject it:
mt -f {{/dev/nstX}} ejectWrite EOF (End-of-file) mark at the current position:
mt -f {{/dev/nstX}} eofCode Snippets
Check the status of a tape drive
mt -f {{/dev/nstX}} statusRewind the tape to beginning
mt -f {{/dev/nstX}} rewindMove forward a given files, then position the tape on first block of next file
mt -f {{/dev/nstX}} fsf {{count}}Rewind the tape, then position the tape at beginning of the given file
mt -f {{/dev/nstX}} asf {{count}}Position the tape at the end of valid data
mt -f {{/dev/nstX}} eodContext
tldr-pages: linux/mt
Revisions (0)
No revisions yet.