User`s guide
Example 8–11 (Cont.) Mknod Examples
OSF/1> cd /dev
OSF/1> /usr/sbin/mknod rza18a b 8 34816
This creates the block mode device special file in the /dev directory
for the "a" partition for this HSZ40 unit. The device special file would
have the name
rza18a
.
OSF/1> cd /dev
OSF/1> /usr/sbin/mknod rrza18a c 8 34816
This creates the character mode device special file in the /dev
directory for the
a
partition for this HSZ40 unit.
The device special file would have the name
rrza18a
.
WARNING
When using the mknod utility, no verification process exists to ensure
that the correct minor number was used. If a calculation error was made
and the wrong minor number is used, the mknod utility will not signal
any errors. The result of using that DEC OSF/1 device name would be
unpredictable, such as accessing the wrong partition, accessing the wrong
HSZ40 unit, and so forth.
Take care when using the mknod utility.
If there are many HSZ40 units to configure, a DEC OSF/1 block mode special file
and a character mode special file must be created for every partition on those
HSZ40 units.
Currently, no script file comes with the DEC OSF/1 operating system that creates
all special files for all HSZ40 units.
However, there is a script file that comes with the DEC OSF/1 operating system.
It is called MAKEDEV. This utility can create some special files, providing a
specific naming format is used. However, MAKEDEV can only be used for those
HSZ40 units that have a LUN of ‘‘0’’ in the unit designator. That is, MAKEDEV
can only be used on those units whose "‘‘L’’ character is zero (0).
For example, if an HSZ40 unit has the unit designator D201, MAKEDEV should
not be used (because the LUN designator is one (1)).
8.14 MAKEDEV Utility
The MAKEDEV utility is located in the /dev directory. The text in this section is
based upon current versions of DEC OSF/1 including Version 3.2–4.
MAKEDEV is a script that can be used to create device special files. However, it
requires that a specific naming format be used. For SCSI devices it requires the
following format:
rzxxx
where xxx can only be numeric characters, for example: rz0, rz10, rz130, and so
forth.
8–36 Operating System Support