Solaris 10 5/08 安装指南:Solaris Live Upgrade 和升级规划

Procedurex86: 在引导环境激活失败的情况下使用 GRUB 菜单和 DVD 或 CD 回退

如果引导时出现故障,请使用以下过程回退到初始引导环境。在本示例中,新引导环境是不可引导的。另外,也不显示 GRUB 菜单。设备为 /dev/dsk/c0t4d0s0。初始引导环境 c0t4d0s0 成为活动的引导环境。


注意 – 注意 –

对于 Solaris 10 3/05 发行版,如果以前的引导环境和新引导环境在不同的磁盘上,推荐的回退操作包括了在 BIOS 中更改硬盘引导顺序。从 Solaris 10 1/06 发行版开始,不再需要更改 BIOS 磁盘顺序,强烈建议不要更改此顺序。更改 BIOS 磁盘顺序可能使 GRUB 菜单无效并导致引导环境无法引导。如果更改了 BIOS 磁盘顺序,请将顺序恢复为初始设置来恢复系统功能。


  1. 成为超级用户或承担等效角色。

    角色包含授权和具有一定权限的命令。有关角色的更多信息,请参见《系统管理指南:安全性服务》中的“配置 RBAC(任务列表)”

  2. 插入 Solaris Operating System for x86 Platforms DVD 或 Solaris Software for x86 Platforms - 1 CD。

  3. 从 DVD 或 CD 引导。


    # init 6
    

    此时将显示 GRUB 菜单。


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris 10 5/08                                               |
    |Solaris 10 5/08 Serial Console ttya                           |
    |Solaris 10 5/08 Serial Console ttyb (for lx50, v60x and v65x  |
    +-------------------------------------------------------------------+
    Use the ^ and v keys to select which entry is highlighted. Press
    enter to boot the selected OS, 'e' to edit the commands before
    booting, or 'c' for a command-line.
  4. 等待引导缺省选项,或选择所显示的任一选项。

    此时将显示安装屏幕。


    +-------------------------------------------------------------------+
    
    |Select the type of installation you want to perform:                |
    |                                                                    |
    |         1 Solaris Interactive                                      |
    |         2 Custom JumpStart                                         |
    |         3 Solaris Interactive Text (Desktop session)               |
    |         4 Solaris Interactive Text (Console session)               |
    |         5 Apply driver updates                                     |
    |         6 Single user shell                                        |
    |                                                                    |
    |        Enter the number of your choice followed by the <ENTER> key.|
    |        Alternatively, enter custom boot arguments directly.        |
    |
    |         If you wait 30 seconds without typing anything,            |
    |         an interactive installation will be started.               |
    +----------------------------------------------------------------- --+
  5. 选择 "Single user shell" 选项。

    此时将显示以下消息。


    Do you wish to automatically update the boot archive? y /n
  6. 键入:n


    Starting shell...
    #

    现在即进入单用户模式。

  7. 如有必要,请检查回退引导环境的根 (/) 文件系统的完整性。


    # fsck mount_ point
    
    mount_point

    已知并且可靠的根 (/) 文件系统。

  8. 将初始引导环境根片挂载到某个目录(如 /mnt)中:


    # mount device_name /mnt
    
    device_name

    指定您要回退到的引导环境的磁盘设备中根 (/) 文件系统的位置。设备名称的输入格式为:/dev/dsk/c wtxd ysz

  9. 从活动的引导环境根片键入:


    # /mnt/sbin/luactivate
    Do you want to fallback to activate boot environment c0t4d0s0
    (yes or no)? yes
    

    luactivate 激活上一个工作的引导环境并指明结果。

  10. 卸载 /mnt


    # umount device_name
    
    device_name

    指定您要回退到的引导环境的磁盘设备中根 (/) 文件系统的位置。设备名称的输入格式为:/dev/dsk/c wtxd ysz

  11. 重新引导。


    # init 6
    

    上一个工作的引导环境成为活动的引导环境。