Using "prtconf" to determine the Solaris boot device

There are may times when you as a sysadmin need to find out which device, whether it's the primary boot disk, mirror boot disk or even a network location that a Solaris systems has booted from. Using the prtconf command, will give you the path to the current boot disk, that you've booted from.

For example:

% prtconf -pv | grep bootpath
bootpath: '/pci@1e,600000/ide@d/disk@0,0:a'
% prtconf -pv | grep bootpath
bootpath:  '/pci@1f,700000/scsi@2/disk@0,0:a'

Notice the output in the above examples also gives you the device aliases similar to that of the devalias command found in OBP.