mtコマンドをインストールする

インストールするパッケージの確認

[root@centos5 ~]# yum search mt-st
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files



mt-st.i386                               0.9b-2.2.2             base            
Matched from:
mt-st
Install mt-st if you need a tool to control tape drives.
The mt-st package contains the mt and st tape drive management
programs. Mt (for magnetic tape drives) and st (for SCSI tape devices)
can control rewinding, ejecting, skipping files and blocks and more.

Install mt-st if you need a tool to  manage tape drives.

mt-stパッケージのインストール

[root@centos5 ~]# yum install mt-st
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
    • > Populating transaction set with selected packages. Please wait.
      • > Package mt-st.i386 0:0.9b-2.2.2 set to be updated
    • > Running transaction check
Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: mt-st i386 0.9b-2.2.2 base 38 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 38 k Is this ok [y/N]: y【Enter】 Downloading Packages: (1/1): mt-st-0.9b-2.2.2.i 100% |=========================| 38 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897 Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 Is this ok [y/N]: y【Enter】 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: mt-st ######################### [1/1] Installed: mt-st.i386 0:0.9b-2.2.2 Complete!

mtコマンドのテスト

[root@centos5 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 512 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN