系统管理指南:基本管理

Procedurex86: 如何交互式地引导系统

在需要指定替代内核或 /etc/system 文件时,使用此过程可引导系统。

  1. 如果系统显示 Press any key to reboot 提示,请按任意键以重新引导系统。

    在出现此提示时,您还可以使用“重置”按钮。如果系统已关闭,请使用电源开关打开系统。

    几分钟后将显示“主引导子系统”菜单。

  2. 从列表中选择 Solaris 分区(如果未标记为活动状态)。按 Enter 键。

    如果在五秒内未做出选择,系统将自动选择活动的引导分区。

    几分钟后将显示“当前引导参数”菜单。

  3. 键入 b -a 以交互式地引导系统。按 Enter 键。

    如果在五秒内未做出选择,系统会自动引导至运行级别 3。

  4. 应答以下系统提示:

    1. 系统提示时,请输入要用于引导的内核名称。

      按 Enter 键使用缺省的内核文件名。否则,请提供替代内核的名称,然后按 Enter 键。

    2. 出现提示时,请提供模块目录的替代路径。

      按 Enter 键使用缺省的模块目录。否则,请提供模块目录的替代路径,然后按 Enter 键。

    3. 系统提示时,请提供替代系统文件的名称。

      如果 /etc/system 文件已损坏,请键入 /dev/null

    4. 系统提示时,请输入 root 文件系统类型。

      按 Enter 键选择使用 UFS(缺省值)进行本地磁盘引导,或者输入 NFS 采用网络引导。

    5. 系统提示时,请输入 root 设备的物理名称。

      提供替代的设备名称或按回车键以使用缺省值。

  5. 如果系统未提示回答这些问题,请验证是否正确键入了 boot -a 命令。


示例 16–5 x86: 交互式地引导系统

在以下示例中,接受了缺省选择(显示在方括号 [] 中)。


Press any key to reboot.
Resetting...
.
.
.
Autobooting from bootpath: /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a


If the system hardware has changed, or to boot from a different
device, interrupt the autoboot process by pressing ESC.


Initializing system
Please wait...


                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>     to boot with options
or      i <ENTER>                              to enter boot interpreter
or      <ENTER>                                to boot with defaults
Running Configuration Assistant...
                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter: b -a
Enter default directory for modules [/platform/i86pc/kernel /kernel /usr/kernel]:
Press Enter
Name of system file [etc/system]: Press Enter
SunOS Release 5.10 Version amd64-gate-2004-09-30 32-bit
Copyright 1983-2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
DEBUG enabled
root filesystem type [ufs]: Press Enter
Enter physical name of root device[/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a]: Press Enter
Hostname: venus
NIS domain name is example.com
checking ufs filesystems
/dev/rdsk/c1d0s7: is logging.
venus console login: