|
 |

|
Using ¼ inch Magnetic Tape for Solaris 2.5
-
Use the SCSI cable to connect the tape drive
to either the Sun SCSI port at the back of the Sparc or the SCSI
port of another device.
- The SCSI address should be set to '4' using the
push tabs on the back of the tape drive.
- Insert the ¼" tape cartridge with the
label side up. Push the slide lock to the right so that the cartridge
is locked.
- Run a tension pass to ensure even distribution
of tension throughout the tape with the command:
% mt -f /dev/rmt/0 retension
This command will also show that the proper electrical,
mechanical and signal connections have been made.
- To view the contents of the tape, type the command:
% tar tvf /dev/rmt/0
Note the path to each file. It should read "./<filename>".
This path will be used in the extract command.
- To extract the entire contents of the tar tape
file to the hard disk current directory, change the current working
directory to the destination hard disk directory into which you
wish to copy the files. Then enter the extract (x) option of
the tar command.
% cd sine/data
% tar xvf /dev/rmt/0 .
If you wish to extract only some of the files on
the tape, you may use wild cards and whole filenames.
% tar xvf /dev/rmt/0 ./abc* ./xyz
./*.001
This command extracts all files with names starting
with 'abc', then extracts the one file 'xyz' and then extracts
all files with names that end with '.001'.
- To copy the entire contents of a hard disk directory
onto the tape, change the current working directory to the source
hard disk directory from which you wish to copy the files. Then,
enter the create (c) option of the tar command.
% cd sine/data
% tar cvf /dev/rmt/0 .
If you wish to copy only some files to the tape,
you may use wild cards and whole filenames.
% tar cvf /dev/rmt/0 abc* xyz
*.001
This command will copy all files with names starting
with 'abc', then copy the one file 'xyz' and then copy all files
with names that end with '.001'.
|
|