System Administration Guide, Volume I

SPARC: How to Change the Default Boot Device

Use this procedure when you need to change the default boot device.

  1. Become superuser.

  2. Halt the system by using the init(1M) command.


    # init 0
    

    The > PROM prompt is displayed.

  3. If the > PROM prompt is displayed, type n and press Return.


    > n
    ok

    The ok PROM prompt is displayed.

  4. Change the boot-device setting by using the setenv command.


    ok setenv boot-device disk[n]

    boot-device

    Identifies the parameter for setting the device from which to boot. 

    disk[n]

    Identifies the boot-device value and in this case, n is the disk number.

    Use the probe-scsi-all command if you need help identifying the disk number.

  5. Verify the default boot device change by using the printenv command.


    ok printenv boot-device
    
  6. Save the new boot-device value by using the reset command.


    ok reset
    

    The boot-device setting is written to the PROM.

SPARC: Example--Changing the Default Boot Device


# init 0
# 
INIT: New run level: 0
.
.
.
The system is down.
syncing file systems... [11] [10] [5] done
Program terminated
Type  help  for more information
ok setenv boot-device disk
boot-device =         disk
ok printenv boot-device
boot-device           disk                    disk
ok reset
SPARCstation 10 (1 X 390Z50), No Keyboard
ROM Rev. 2.14, 32 MB memory installed, Serial #3383708.
Ethernet address 8:0:20:1f:33:9f, Host ID: 7233a19e.
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0  File and args: kadb -v
.
.
.
pluto console login: