系统管理指南:基本管理

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

需要指定替代内核或 /etc/system 文件时,请使用此引导选项。

开始之前

要在使用 boot -a 命令以交互方式引导基于 SPARC 的系统时指定备用的 /etc/system 文件,必须在引导系统之前执行以下步骤。

  1. 交互式地引导系统。


    ok boot -a
    
  2. 应答以下系统提示:

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

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

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

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

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

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

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

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

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

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

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


示例 12–3 SPARC: 交互式地引导系统

在以下示例中,接受了缺省选择(显示在方括号 [] 中)。有关使用 boot -a 命令引导备用文件系统的说明和示例,请参见SPARC: 如何交互式地引导系统


ok boot -a
.
.
.
Rebooting with command: boot -a
Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a  
File and args: -a
Enter filename [kernel/sparcv9/unix]: Press Return
Enter default directory for modules [/platform/SUNW,Ultra-5_10/kernel 
     /platform/sun4u/kernel /kernel /usr/kernel]: Press Return
Name of system file [etc/system]: Press Return
SunOS Release 5.10 Version S10_60 64-bit
Copyright (c) 1983-2004 by Sun Microsystems, Inc. All rights reserved
Use is subject to license terms.
root filesystem type [ufs]: Press Return
Enter physical name of root device
[/pci@1f,0/pci@1,1/ide@3/disk@0,0:a]: Press Return
configuring IPv4 interfaces: hme0.
Hostname: starlite
The system is coming up.  Please wait.
checking ufs filesystems
.
.
.
The system is ready.
starlite console login: