Show Table of Contents
E.3. 安裝 GRUB
在大部份的情況下,GRUB 就預設值會在 Red Hat Enterprise Linux 安裝程序進行時被安裝和配置。然而,若基於某些原因 GRUB 未被安裝,或是您需要再次安裝它時,您可使用
grub-install script(屬於 grub 套件的一部分)來安裝它。例如:
#grub-install disk
將 disk 替換為您系統開機磁碟的裝置名稱,例如
/dev/sda。
在一部含有 UEFI 韌體的系統上,您也必須使用
efibootmgr 來將開機載入程式的第一階段寫入您系統的 EFI 系統分割區中。例如:
#efibootmgr -c -d disk -p partition_number -l /EFI/redhat/grubx64.efi -L "grub_uefi"
將 disk 替換為包含了 EFI 系統分割區的裝置名稱(例如
/dev/sda)並將 partition_number 替換為您 EFI 系統分割區的分割區號碼。
欲取得更多有關於安裝 GRUB 的相關資訊,請參閱〈GNU GRUB Manual〉以及
grub-install(8) man page。欲取得更多有關於 EFI 系統分割區的相關資訊,請參閱〈節 9.18.1, “進階開機載入程式設定”〉。欲取得有關於 efibootmgr 工具的相關資訊,請參閱 efibootmgr(8) man page。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.