LinuxでDDS-3 DATドライブを使う時のメモ 2001/02/14 Ver.1 Turbo Linux Sever6.1でDDS-3 DATドライブを使用した時のメモを 作りました。 1.デバイスの確認方法 /proc/scsi/scsiをcatで表示する。「Type: Sequential-Access」となって いるデバイスが存在すればOK。 [root@svoskcss /root]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: DNES-318350W Rev: SAP0 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 00 Id: 05 Lun: 00 Vendor: HP Model: C1537A Rev: L810 Type: Sequential-Access ANSI SCSI revision: 02 [root@svoskcss /root]# 2.テープが挿入されているかどうかの確認 mtコマンドで確認。「BOT ONLINE IM_REP_EN」となればテープは 挿入されている。 [root@svoskcss /root]# mt -f /dev/nst0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x25 (DDS-3). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN テープが挿入されていない場合、下記のように「DR_OPEN IM_REP_EN」 となる。 [root@svngycss /root]# mt -f /dev/nst0 status SCSI 2 tape drive: File number=-1, block number=-1, partition=0. Tape block size 0 bytes. Density code 0x0 (default). Soft error count since last status=0 General status bits on (50000): DR_OPEN IM_REP_EN 3.主なコマンド [圧縮 ON] mt -f /dev/nst0 compression 1 [圧縮 OFF] mt -f /dev/nst0 compression 0 [ポジションの1つ先へ移動] mt -f /dev/nst0 fsf [ポジションの1つ前へ移動] mt -f /dev/nst0 bsf [テープ消去] mt -f /dev/nst0 erase [テープたるみ取り] mt -f /dev/nst0 retension [テープ巻き戻し] mt -f /dev/nst0 rewind [イジェクト] mt -f /dev/nst0 offline 4.tarによる実行例 # tar cvf /dev/nst0 /boot (/bootディレクトリの書き込み) # tar tvf /dev/nst0 (書き込みの確認) # tar xvf /dev/nst0 (リストア) 5.dumpによる実行例 # dump 0uBf 24000000 /dev/st0 (フルバックアップ) # restore rf /dev/nst0 (リストア)