Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
13.  SPARC: Booting a System (Tasks) SPARC: Using the Boot PROM SPARC: How to Change the Default Boot Device SPARC: Examples--Changing the Default Boot Device  Previous   Contents   Next 
   
 

SPARC: How to Reset the System

Run the reset command from the ok prompt.

ok reset

This self-test program, which runs diagnostic tests on the hardware, is executed and the system is rebooted.

SPARC: Booting a System

If a system is turned off, turning it on starts the multiuser boot sequence. The following procedures show how to boot to different run levels from the ok PROM prompt. These procedures assume that the system has been cleanly shut down, unless stated otherwise.

Use the who -r command to verify that the system is brought to the specified run level. For a description of run levels, see Chapter 11, Run Levels and Boot Files (Tasks).

SPARC: How to Boot a System to Run Level 3 (Multiuser Level)

Use this procedure to boot a system (that is currently at run level 0) to run level 3.

  1. Boot the system to run level 3.

    ok boot

    The automatic boot procedure displays a series of startup messages, and brings the system to run level 3.

    For more information, see boot(1M).

  2. Verify that the system has booted to run level 3.

    The login prompt is displayed when the boot process has finished successfully.

    hostname console login:

SPARC: Example--Booting a System to Run Level 3 (Multiuser Level)

The following example displays the messages from booting a system to run level 3.

ok boot
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz)
OpenBoot 3.15, 128 MB memory installed, Serial #number.
Ethernet address number, Host ID: number.

Rebooting with command: boot
Boot device: disk:a  File and args: 
SunOS Release 5.9 Version Generic 64-bit
Copyright (c) 1983-2002 by Sun Microsystems, Inc.
configuring IPv4 interfaces: hme0.
Hostname: starbug
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c0t0d0s7: is clean.
/dev/rdsk/c0t0d0s4: is clean.
NIS domainname is Solar.COM
starting rpc services: rpcbind keyserv ypbind done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: 
gateway starbug
syslog service starting.
Print services started.
volume management starting.
The system is ready.

starbug console login: 

SPARC: How to Boot a System to Run Level S (Single-User Level)

Use this procedure to boot a system (that is currently at run level 0) to run level S.

  1. Boot the system to run level S.

    ok boot -s
  2. Type the superuser password when the following message is displayed.

    INIT: SINGLE USER MODE
    Type Ctrl-d to proceed with normal startup,
     
    (or give root password for system maintenance):  xxx
  3. Verify that the system is at run level S.

    # who -r
    .       run-level S  Jun 10 15:27     3      0 
  4. To bring the system up to multiuser state after you completed the system maintenance task, press Control-D.

SPARC: Example--Booting a System to Run Level S (Single-User Level)

The following example displays the messages from booting a system to run level S.

ok boot -s
.
.
.
SunOS Release 5.9 Version Generic 64-bit
Copyright (c) 1983-2002 by Sun Microsystems, Inc.
configuring IPv4 interfaces: le0.
Hostname: earth

INIT: SINGLE USER MODE

Type control-d to proceed with normal startup,
(or give root password for system maintenance): xxx
Sun Microsystems Inc.   SunOS 5.9  Generic May 2002
# who -r
   .       run-level S  Jul 14 11:37     3      0  ?
(Perform some maintenance task)
# Press Control-D

SPARC: How to Boot a System Interactively

Use this procedure to boot a system and you need to specify an alternate kernel or /etc/system file.

  1. Boot the system interactively.

    ok boot -a
  2. Answer the system prompts as described in the following table.

    System Prompt

    Action

    Enter filename [kernel/[sparcv9]/unix]:

    Provide the name of kernel to use for booting. Or, press Return to use the default kernel.

    Enter default directory for modules [/platform/`uname -i`/kernel /platform/`uname -m/kernel /kernel /usr/kernel]:

    Provide an alternate path for the modules directory. Or, press Return to use the default kernel modules directory.

    Name of system file [etc/system]:

    Provide the name of an alternate system file and press Return. Type /dev/null if your /etc/system file has been damaged. Or, press Return to use the default etc/system file.

    root filesystem type [ufs]:

    Press Return to use the default root (/) file system. Type UFS for local disk booting, or NFS for network booting.

    Enter physical name of root device

    [physical_device_name]:

    Provide an alternate device name and press Return. Or, press Return to use the default physical name of the root device.

  3. If you are not prompted to answer the questions in the preceding table, verify that you typed the boot -a command correctly.

 
 
 
  Previous   Contents   Next