Solaris Handbook for SMCC Peripherals
  Search only this book
Download this book in PDF
APPENDIX A

Booting Your System


This appendix describes how to boot your system in different modes.
If a system is powered off, turning it on starts the multiuser boot sequence. See below for procedures on how to boot to different states from the ok PROM prompt.
Switching to the ok Promptpage 69
Booting After Connecting a Peripheral Devicepage 69
Booting Automaticallypage 70
Booting to Multiuser State (Init State 3)page 70
Booting to Single-User State (Run Level S)page 71
Booting Interactivelypage 71
Aborting a Booting Processpage 72

· Switching to the ok Prompt

When the system is halted, the PROM monitor prompt is either the greater than sign (>) or ok.
· Switch from the > prompt to the ok prompt by typing the following command:

  > n  
  ok  

· Booting After Connecting a Peripheral Device

Booting your system to recognize all newly installed peripheral devices is usually done after:
  • Shutting down the operating system
  • Powering on the system
  • Interrupting the boot process
  • When the open boot process is not set for automatic boot
· Boot your system to recognize all newly installed peripheral devices by typing the
boot -r command:

  ok boot -r  


Note - The boot -r command adds newly installed peripheral devices if you did not perform the touch /reconfigure command in "Shutting Down the System" on page 3.

· Booting Automatically

Booting automatically is as easy as powering on the system. The system automatically loads the operating environment, recognizes all connected devices, and boots to multiuser mode.

Note - To boot automatically, the open boot PROM must be set for automatic boot.

· Booting to Multiuser State (Init State 3)

Booting to multiuser state is usually done after halting the system or performing some system hardware maintenance task. This is the default boot level where all resources are available and users can log into the system.
· Boot to run level 3 by typing the boot command:

  ok boot  

The automatic boot procedure starts, displaying a series of startup messages. The system is brought up in multiuser state.

· Booting to Single-User State (Run Level S)

Booting to single-user state is usually done after performing some system maintenance task such as backing up the system. At this level only some file systems are mounted and users cannot log into the system.
  1. Boot to run level S by using the boot -s command:


  ok boot -s  

The system boots to single-user state and prompts you for the root password:

  INIT: SINGLE USER MODE  
  Type Ctrl-d to proceed with normal startup,  
  (or give root password for system maintenance):            xxxxxxx  

  1. Enter the root password.

  2. To bring the system up to multiuser state after the system maintenance task is performed, press Control-d.

· Booting Interactively

You can boot interactively to make a temporary change to the system file or the kernel. Booting interactively lets you test your changes and recover easily if you have any problems.
This procedure assumes that the system is already shut down.
  1. Boot the system interactively, by typing:


  ok boot -a  

  1. Answer the system prompts as described in TABLE A-1.

    TABLE A-1 Interactive Boot Procedure Steps

If the System Displays ...Do the Following ...
Enter filename [kernel/unix]:Provide the name of another kernel to use for booting. Or, press Return to use the default kernel (kernel/ unix).
Name of system file [/etc/system]:Provide the name of an alternate system file and press Return.

Or, press Return to use the default /etc/system file.

Name of default directory for modules [/kernel /
usr/kernel]:
Provide an alternate path for the modules directory
and press Return.
Or, press Return to use the default modules directory
path.
root filesystem type [ufs]:Press Return to use the default root file system type: UFS for local disk booting or NFS for diskless clients.
Enter physical name of root device
[/sbus@1,f8000000/esp@0,800000/
sd@3,0:a]:
Provide an alternate device name and press Return.
Or, press Return to use the default physical name of
the root device.

· Aborting a Booting Process

Occasionally, you may need to stop the booting process. The specific abort key sequence depends on your keyboard type. See Step 1 below.
  1. Type the abort key sequence for your system.

    Use one of the following combination of key sequences:

  • Stop-a (type 5 keyboards)
  • L1-a (type 4 keyboards)
  • Break (tty terminals only)
The monitor mode command prompt is then displayed on the screen:

  ok  

  1. To synchronize the disks, type:


  ok sync  

  1. When you see the syncing file systems. . .done message, press the abort key sequence for your system again (Step 1).

  2. Type the appropriate boot command to restart the boot process.