您可以使用 GRUB 功能表在兩個啟動環境之間進行切換。請注意下列限制:
必須使用 luactivate 指令完成啟動環境的初次啟動。初始啟動之後,GRUB 功能表中會顯示啟動環境。之後,啟動環境可以從 GRUB 功能表啟動。
注意 - 使用 GRUB 功能表略過同步化切換到啟動環境。如需有關同步化檔案的更多資訊,請參閱在啟動環境之間強制同步。
若已使用 Solaris 8、9 或 10 3/05 發行版本 建立了啟動環境,則該啟動環境必須始終以 luactivate 指令啟動。這些舊版的啟動環境不會顯示在 GRUB 功能表上。
成為超級使用者,或者假定一個對等身份。
身份包含授權指令與特權指令。如需有關角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」。
重新啟動系統。
# init 6 |
如此會顯示 GRUB 主功能表。並列出兩個作業系統:Solaris 和 second_disk,後者是 Solaris Live Upgrade 啟動環境。如果主作業系統因為某些原因並未啟動,可使用 failsafe 項目進行回復。
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------+ |Solaris | |Solaris failsafe | |second_disk | |second_disk failsafe | +-------------------------------------------------------------------+ 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. |
若要啟動某啟動環境,請使用箭頭鍵選取想要的啟動環境,然後按 Return 鍵。
如此即會啟動所選取的啟動環境,並成為使用中的啟動環境。