How to Create a Persistent Device Alias for a USB Flash Drive (SPARC Only)

Ensure that your role has the appropriate rights profiles to perform this procedure. See Using Rights Profiles to Install Oracle Solaris.

With a persistent device alias, you would not need to re-create the alias provided that you reuse the same port for the USB drive.

  1. Shut down the system and leave it at the boot prompt.
  2. Display the available disks on the system.
    ok show-disks
    
  3. Select the device to use for the USB drive.

    This example shows the selection of the second device.

    {0} ok show-disks
          a) /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@3/disk
          b) /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@2/disk
          c) /pci@400/pci@0/pci@1/scsi@0/disk
          d) /iscsi-hba/disk
          q) NO SELECTION 
          
        Enter Selection, q to quit: b
          /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@2/disk has been selected.
          Type ^Y ( Control-Y ) to insert it in the command line. 
          e.g. ok nvalias mydev  
                  for creating devalias mydev for 
          /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@2/disk
    
  4. Set an alias for the USB flash drive.
    {0} ok nvalias usbdrive ^Y