Oracle Solaris 10 9/10 安裝指南: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. 成為超級使用者,或者假定一個對等身份。

    身份包含授權指令與特權指令。如需角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」

  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 9/10                                               |
    |Solaris 10 9/10 Serial Console ttya                           |
    |Solaris 10 9/10 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] (單一使用者 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
    

    上一個運作的啟動環境會成為使用中啟動環境。