mt: add page (#7273)

feature/windows-fix-syntax-2
funwaa 2021-11-23 03:54:37 +01:00 committed by GitHub
parent 7a17f0cdcf
commit 1c448d3056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
pages/linux/mt.md Normal file
View File

@ -0,0 +1,32 @@
# 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}} status`
- Rewind the tape to beginning:
`mt -f {{/dev/nstX}} rewind`
- Move 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}} eod`
- Rewind the tape and unload/eject it:
`mt -f {{/dev/nstX}} eject`
- Write EOF (End-of-file) mark at the current position:
`mt -f {{/dev/nstX} eof`