You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,15 @@ Basic facts about tapes and how they are operated with `mt` and `tar`:
30
30
- To write the second file, make sure the `status` shows `File number=1` and `EOF`.
31
31
- Same command, `tar -cvf /dev/nst0 sourcedirectory1 sourcedirectory2`, will now write the second tar file and the head should move to `File number=2`.
32
32
- If you overwrite the first file, all subsequent files will be lost. Pay attention to where the head is before each write operation. You can use `mt` to forward to the end of the tape to be sure.
33
+
- For long operations run manually via cli, you can use `screen` so you don't have to keep a shell open.
33
34
34
35
### Reading from tape:
35
36
36
37
- You can seek to the beginning of files with the command `mt -f /dev/nst0 asf X` with X being the file number (starting with 0).
37
38
- To copy the first file from tape to the current folder on the local machine, rewind via `mt -f /dev/nst0 rewind` (or via `mt -f /dev/nst0 asf 0`).
38
39
- Use the tar command to extract from tape: `tar -xvf /dev/nst0`. It will read the first file all the way to the EOF, and extract it to the local disk.
39
40
- To copy the second file from tape, seek to it via `mt -f /dev/nst0 asf 1` and extract via `tar -xvf /dev/nst0`.
41
+
- For long operations run manually via cli, you can use `screen` so you don't have to keep a shell open.
40
42
41
43
There are plenty more `mt` commands and arguments listed on its manpage: https://linux.die.net/man/1/mt
0 commit comments