[Next] [Previous] [Up] [Top] [Contents]

CHAPTER 10 Special Files

10.3 SunOS 5.X

For SunOS 5.X if you install the binary compatibility package the SunOS 4.X compatible names are created in /dev, but these are just links to the SysV type logical names in sub-directories, which are in turn links to the actual device names in /devices. The logical names are what you would generally use.

Under SunOS 5.X /dev is no longer a flat space, but has sub-directories for the types of devices:

dsk block disk devices
rdsk raw or character disk devices
rmt tape devices
term serial line devices
cua dial-out modems
pts pseudo terminals
fbs frame buffers
sad STREAMS administrative driver

The SunOS 4.X compatible names link you to the SysV type names, e.g.:

2 lrwxrwxrwx 1 root root 13 Mar 1 09:54 /dev/sd0a -> dsk/c0t3d0s0

2 lrwxrwxrwx 1 root root 12 Mar 1 09:54 /dev/rsd0a -> rdsk/c0t3d0s0

2 lrwxrwxrwx 1 root root 51 Dec 22 10:01 /dev/dsk/c0t3d0s0 -> ../../devices/sbus@1,f8000000/esp@0,800000/sd@3,0:a

2 lrwxrwxrwx 1 root root 55 Dec 22 10:01 /dev/rdsk/c0t3d0s0 -> ../../devices/sbus@1,f8000000/esp@0,800000/sd@3,0:a,raw

For the logical names the raw devices are in /dev/rdsk and the block devices are in /dev/dsk. The controller, target number, disk number, and slice number (partition) are described by the:

c# t# d# s#

entries, respectively, in the name, e.g.:


which corresponds to the SunOS 4.X compatible entry for a SPARCstation of:


and the physical name:


For the physical names:

sbus@1 indicates the slot number

esp@0 indicates the SCSI Host Adaptor

sd@3 indicates the SCSI Target Number

0 is the SCSI Logical Unit Number

a is the partition

10.3.1 - Reconfiguring the /devices directory (SunOS 5.X)

Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]