Skip Navigation Links | |
Exit Print View | |
![]() |
Booting and Shutting Down Oracle Solaris on x86 Platforms Oracle Solaris 11 Information Library |
1. Booting and Shutting Down an x86 Based System (Overview)
2. Booting an x86 Based System to a Specified State (Tasks)
Booting an x86 Based System to a Specified State (Task Map)
Booting an x86 Based System to a Specified State
Determining a System's Current Run Level
Booting an x86 Based System to a Multiuser State (Run Level 3)
How to Boot a System to a Multiuser State (Run Level 3)
Booting an x86 Based System to a Single-User State (Run Level S)
How to Boot a System to a Single-User State (Run Level S)
3. Shutting Down a System (Tasks)
4. Rebooting an x86 Based System (Tasks)
5. Booting an x86 Based System From the Network (Tasks)
6. Modifying Boot Parameters on an x86 Based System (Tasks)
7. Creating, Administering, and Booting From ZFS Boot Environments on x86 Platforms (Tasks)
8. Keeping an x86 Based System Bootable (Tasks)
The following procedures describe how to boot an x86 based system to a specified state, also known as run level booting.
To determine a system's current run level, use the who -r command.
Example 2-1 Determining a System's Run Level
The output of the who -r command displays information about a system's current run level, as well as previous run levels.
$ who -r . run-level 3 Dec 13 10:10 3 0 S $
|
If a system is turned off, turning it on, or using the reboot command, starts the multiuser boot sequence.
Use the who -r command to verify that the system is brought to the specified run level. See Determining a System's Current Run Level.
Use this procedure to boot an x86 based system that is currently at run level 0 to run level 3.
# reboot
If the system displays the Press any key to reboot prompt, press any key to reboot the system.
You can also use the Reset button at this prompt. If the system is shut down, turn the system on with the power switch.
When the boot sequence begins, the GRUB main menu is displayed.
If you do not select an entry within 10 seconds, the system automatically boots to run level 3.
The login prompt is displayed when the boot process has finished successfully.
hostname console login:
$ who -r . run-level 3 Mar 2 09:44 3 0 S
Booting a system to a single-user state is used for system maintenance, such as backing up a file system or troubleshooting other system issues.
# reboot
If the system displays the Press any key to reboot prompt, press any key to reboot the system.
You can also use the Reset button at this prompt. If the system is shut down, turn the system on with the power switch.
When the boot sequence begins, the GRUB main menu is displayed.
If you cannot use the arrow keys, use the caret (^) key to scroll up and the letter v key to scroll down.
From here, you can add options and arguments to the kernel or kernel$ line.
Note - To specify other boot behaviors, replace the -s option with the appropriate boot option.
The following alternate boot behaviors can be specified in this manner:
Perform a reconfiguration boot
Boot the system with the kernel debugger
Redirect the console
For more information, see the boot(1M) man page.
# who -r . run-level S Jun 13 11:07 S 0 0
Booting a system interactively is useful if you need to specify an alternate kernel or the /etc/system file during the boot process. Use the following procedure to boot a system interactively. Alternatively, you can resolve a problem with the /etc/system file by booting an alternative boot environment. See Initiating a Reboot of a System to a Newly Activated or Alternate Boot Environment.
# cp /etc/system /etc/system.bak # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig # echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk
# bootadm update-archive -v
# reboot
Name of system file [etc/system]: /etc/system.bak
Pressing Return without providing any information accepts the system defaults.
# reboot