Use this procedure when you need to change the default boot device.
Become superuser.
Halt the system by using the init(1M) command.
# init 0 |
The > PROM prompt is displayed.
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 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.
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 boot-device setting is written to the PROM.
# 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: |