Go to main content

Automatically Installing Oracle® Solaris 11.4 Systems

Exit Print View

Updated: August 2021

SPARC: How to Create a Persistent Device Alias for a USB Flash Drive

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.

Before You Begin

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

  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 
  4. Set an alias for the USB flash drive.
    {0} ok nvalias usbdrive ^Y