HP-UX 11i v3 Mass Storage Device Naming
# insf -C disk
• To re-install all default device files for all devices bound to the estape driver:
# insf -d estape -e
insf: Installing special files for estape instance 2 address 64000/0xfa00/0x5
insf: Installing special files for estape instance 3 address 64000/0xfa00/0x10
Note: When no DSF is created, insf does not display any message. That is the case for instance if insf
is run without the -e option and there is no new device on the system.
Creating device files using mksf
The following examples show how you can use the mksf command to manually create device files
with default names, your own device file name, and custom device file corresponding to certain
device options.
• To create the default block device file for disk device with instance 98 and hardware path
64000/0xfa00/0x13 using the instance number to identify the device:
# mksf -C disk -I 98
# ls -l /dev/disk/disk98*
brw-r----- 1 bin sys 1 0x000013 Jan 16 22:27 /dev/disk/disk98
• To create the default raw device file for disk device with instance 98 with hardware path
64000/0xfa00/0x13 using the hardware path to identify the device:
# mksf -r -H 64000/0xfa00/0x13
# ls -l /dev/rdisk/disk98*
crw-r----- 1 bin sys 11 0x000013 Jan 16 22:28 /dev/rdisk/disk98
• To create the device file for the first disk partition of the disk with hardware path
64000/0xfa00/0x13. Note that the system allocates a new minor number (0x000027) to
be associated with the partition.
# mksf -H 64000/0xfa00/0x13 -s 1
# ls -l /dev/disk/disk98*
brw-r----- 1 bin sys 1 0x000013 Jan 16 22:27 /dev/disk/disk98
brw-r----- 1 bin sys 1 0x000027 Jan 16 22:35 /dev/disk/disk98_p1
# mksf -r -H 64000/0xfa00/0x13 -s 1
crw-r----- 1 bin sys 11 0x000013 Jan 16 22:28 /dev/rdisk/disk98
crw-r----- 1 bin sys 11 0x000027 Jan 16 22:46 /dev/rdisk/disk98_p1
• To create a device file name /mydev/disk19_partition2 corresponding to the second
partition of disk19. Note that the directory /mydev should already exist. Also note that the
system allocates a new minor number (0x000028) for the second disk partition.
# mksf -C disk -I 19 -s 2 /mydev/disk19_partition2
# ls -l /mydev
total 0
brw-r----- 1 bin sys 1 0x000028 Jan 16 22:58 disk19_partition2
# lssf /mydev/disk19_partition2
esdisk section 2 at address 64000/0xfa00/0x13 /mydev/disk19_partition2
Note: It is not recommended to create device files outside /dev unless for test purposes and in a
temporary manner. Not doing so may affect certain commands or subsystems, which assume that
their device files are under /dev.
7/13