
After Configuring a Tape Drive
5-4 Peripherals Configuration (R1001H) HP-UX version 11.00.01
7. Verify that you can read and write to and from the device. One way to do this
is through the tar command. In the following example, the first tar
command writes the /etc/passwd file to tape using a device special file
shown in the ioscan output from step 6. The second tar command displays
the contents of the tape.
# tar cvf /dev/rmt/c0t3d0BEST /etc/passwd
a /etc/passwd 2 blocks
# tar tvf /dev/rmt/c0t3d0BEST
For information about tape drives operation and maintenance, see the Continuum
400 Series: Tape-Drive Operation for the HP-UX Operating System (R003H), the
HP-UX Operating System: Continuum Central-Office Series 400 Tape-Drive
Operation (R022H), or the Continuum 600 and 1200 Series: Tape-Drive Operation
Guide (R442).
After Configuring a Tape Drive
Table 5-1 lists the man pages that describe commands and special files related to
typical tape drive tasks and capabilities.
NOTE
By default, insf creates device special files that write tapes with data
compression enabled if the tape drive doing the writing supports data
compression. If you have to write a tape on a tape drive that supports
data compression, but you need to read it on a tape drive that does not
support data compression, you must create the tape using a device
special file with data compression disabled, using mksf.
Table 5-1. Tape-Drive Commands and Special Files
Man Page Description of Command
cpio(1) Copy file archives in and out
dd(1) Convert, reblock, translate, and copy a file
ftio(1) Faster tape I/O
fjauto(1) Magnetic tape manipulating program for the T403
autoloader
mediainit(1) Initialize disk or cartridge tape media; partition DDS
mt(1) Magnetic tape manipulating program
Komentáře k této Příručce