Specifications
To determine the number of the device you are using, view the file
/etc/conf/cf.d/mscsi and note the order of tape device entries in
this file. It lists devices in the order in which they were installed;
the order determines the device number. For example, the first
tape device is number 0, the second device is number 1, the third
device is number 2, and so on. Using the device number for n in
the following command, enter:
1s -1 /dev/*Stpn
This command lists all the device special files for the device
number you are using.
Here is a sample listing:
crw-rw-rw- 1 root root 46, 8 Aug 27 1991 /dev/nrStp0
crw-rw-rw- 1 root root 46, 0
Aug 27 1991 /dev/rStp0
crw-rw-rw- 1 root root 46, 128 Aug 27 1991 /dev/xStp0
The two numbers displayed before the date fields are the major
and minor numbers, respectively. The minor number determines
the type of device: 8 for no-rewind and 0 for raw. nrStp0 is a
mnemonic for a no-rewind device, and rStp0 is a mnemonic for a
raw device, as shown in the table below.
Minor number
Device name
Action
8 nrStpn no rewind
0 rStpn rewind
If the device filename you use has the minor number 0, the tape is
rewound automatically after the command completes. The
following command rewinds the tape after the tar(C) command is
finished:
tar cvf /dev/rStpO
On some versions of SC0 UNIX System V/386 Release 3.2,
Version 2.0, the device names are reversed. A device named
/dev/rstpn does not rewind the tape if it has a minor number of 8.
In this case, use the device name /dev/nrstpn to rewind the tape.
Installing Software Drivers
for
UNIX
7-11










