Become superuser.
Halt the system by using the init(1M) command.
# init 0 |
If the > PROM prompt is displayed, type n and press Return.
> n ok |
The ok PROM prompt is displayed.
Change the boot-device setting by using the setenv command.
ok setenv boot-device device[n] |
boot-device |
Identifies the parameter for setting the device from which to boot. |
device[n] |
Identifies the boot-device value such as a disk or the network. The n can be specified as the disk number. |
Use the probe-scsi-all command if you need help identifying the disk number.
Verify the default boot device change by using the printenv command.
ok printenv boot-device |
Save the new boot-device value by using the reset command.
ok reset |
The new boot-device setting is written to the PROM.
In this example, the default boot device is set to disk.
# init 0 # INIT: New run level: 0 . . . The system is down. syncing file systems... done Program terminated ok setenv boot-device disk boot-device = disk ok printenv boot-device boot-device disk disk ok reset Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard OpenBoot 3.15, 128 MB memory installed, Serial #nnnnnnnn. Ethernet address 8:0:20:a5:d3:4b, Host ID: nnnnnnnn. Boot device: disk File and args: SunOS Release 5.8 Version 64-bit . . . pluto console login: |
In this example the default boot device is set to the network.
# init 0 # INIT: New run level: 0 . . . The system is down. syncing file systems... done Program terminated ok setenv boot-device net boot-device = net ok printenv boot-device boot-device net disk ok reset Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard OpenBoot 3.15, 128 MB memory installed, Serial #nnnnnnnn. Ethernet address 8:0:20:a3:d54:4b, Host ID: nnnnnnnn. Boot device: net File and args: . . . pluto console login: |