Platform Notes: Ultra 450 Workstation and Ultra Enterprise 450 Server

Mapping From UNIX Logical Name to Disk Slot Number

This section describes how to translate from a known UNIX logical device name such as c0t0d0s0 to a disk slot number (0 through 19).

This example assumes a known UNIX logical device name of c0t0d0s0.

  1. Determine the UNIX physical device name from the UNIX logical device name.

    Use the ls -l command to display the link for the logical device name in the /dev/dsk directory:


    % ls -l /dev/dsk/c0t0d0s0
    lrwxrwxrwx   1 root   root   41 Jan 30 09:07 /dev/dsk/c0t0d0s0 -> ../../devices/pci@1f,4000/scsi@3/sd@0,0:a

    The resulting output shows the UNIX physical device name associated with the logical device name. In this case, the corresponding physical device name is /pci@1f,4000/scsi@3/sd@0.

  2. Determine the disk slot number using the prtconf command.

    Substitute the string disk@ for sd@ in the physical device name determined in Step 1. The result in this example is /pci@1f,4000/scsi@3/disk@0.

    Use the grep command to find this name in the output of the prtconf command:


    % prtconf -vp | grep /pci@1f,4000/scsi@3/disk@0
    bootpath:  '/pci@1f,4000/scsi@3/disk@0,0:a'
    disk:  '/pci@1f,4000/scsi@3/disk@0,0'
    disk0:  '/pci@1f,4000/scsi@3/disk@0,0'
        slot#0:  '/pci@1f,4000/scsi@3/disk@0'

    The resulting output indicates the corresponding disk slot number. In this example, the disk slot number is 0.

    If the output does not provide a slot number, the device is either a removable media device (CD-ROM or tape drive) or an external device.