Wiki source code of LTO Treiber implementieren

Last modified by René Schmidt on 2024/07/29 09:11

Hide last authors
René Schmidt 1.1 1 at first we open an Terminal Session:
2
3
4
5 In the demonstration, we show how to identify the device names in Linux using
6
7 Dmesg |grep scsi
8
9
10
11
12 **And then use mtx command to load and unload tape and query the inventory of the tape libraries. Once the tapes are loaded we use tar to read and write data and mt to check the status of the drives**.
13
14 **The mtx commands are**
15
16 ~-~--** note: replace sg2 with the device name identified from**
17
18 dmesg mtx f /dev/sg2
19
20 **~-~-status ~-~- reports back slot status.**
21
22 mtx -f /dev/sg2 unload 10 ~-~- unloads drive 0 to slot 10
23
24 **~-~-Status**
25
26 mtx -f /dev/sg2
27
28 **~-~-The tar commands are**
29
30 tar -cvf /dev/st0 *.txt
31
32 **~-~-create a tar archive on tape device 0 of all txt files**
33
34 tar -tvf /dev/sto
35
36 **– list files on the tape**
37
38 tar -xvf /dev/st0
39
40 **– restore files back from tape to the current directory**