Creating device nodes
![]()
Applications access tape devices by device nodes. Your distribution might create device nodes for you, but you can also create your own device nodes.
About this task
If no device nodes are created for you, you must create them yourself, for example, with the mknod command. See the mknod man page for further details.
Tip: Use the device names to construct your
nodes.
Example: Defining standard tape nodes
In this example, the tape major number is assumed to be
254. The nodes use the standard form /dev/<device_name> for
the device nodes and the assignment of minor numbers is according
to the tape naming scheme.
# mknod /dev/ntibm0 c 254 0 # mknod /dev/rtibm0 c 254 1 # mknod /dev/ntibm1 c 254 2 # mknod /dev/rtibm1 c 254 3 # mknod /dev/ntibm2 c 254 4 # mknod /dev/rtibm2 c 254 5 ...