From 1c448d30562b745324c490c60c4cb958f54a4a84 Mon Sep 17 00:00:00 2001 From: funwaa <56044926+funwaa@users.noreply.github.com> Date: Tue, 23 Nov 2021 03:54:37 +0100 Subject: [PATCH] mt: add page (#7273) --- pages/linux/mt.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/mt.md diff --git a/pages/linux/mt.md b/pages/linux/mt.md new file mode 100644 index 000000000..c02c73cd6 --- /dev/null +++ b/pages/linux/mt.md @@ -0,0 +1,32 @@ +# mt + +> Control magnetic tape drive operation (commonly LTO tape). +> More information: . + +- 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`