Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

4.27.2. 自​​​​​​​動​​​​​​​啟​​​​​​​動​​​​​​​ Red Hat Enterprise Linux

在​​​​​​​安​​​​​​​裝​​​​​​​完​​​​​​​ Red Hat Enterprise Linux 之​​​​​​​後​​​​​​​,每​​​​​​​當​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​啟​​​​​​​動​​​​​​​ Itanium 系​​​​​​​統​​​​​​​時​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​ EFI SHell 提​​​​​​​示​​​​​​​符​​​​​​​號​​​​​​​下​​​​​​​輸​​​​​​​入​​​​​​​ elilo 以​​​​​​​及​​​​​​​任​​​​​​​何​​​​​​​的​​​​​​​開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​。​​​​​​​然​​​​​​​而​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​希​​​​​​​望​​​​​​​設​​​​​​​定​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​統​​​​​​​以​​​​​​​自​​​​​​​動​​​​​​​開​​​​​​​機​​​​​​​進​​​​​​​入​​​​​​​ Red Hat Enterprise Linux,您​​​​​​​需​​​​​​​要​​​​​​​設​​​​​​​定​​​​​​​ EFI 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​。​​​​​​​
如​​​​​​​要​​​​​​​設​​​​​​​定​​​​​​​ EFI 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​,請​​​​​​​遵​​​​​​​照​​​​​​​下​​​​​​​列​​​​​​​指​​​​​​​示​​​​​​​(依​​​​​​​照​​​​​​​於​​​​​​​您​​​​​​​的​​​​​​​硬​​​​​​​體​​​​​​​,也​​​​​​​許​​​​​​​會​​​​​​​有​​​​​​​所​​​​​​​不​​​​​​​同​​​​​​​):
  1. 啟​​​​​​​動​​​​​​​ Itanium 系​​​​​​​統​​​​​​​,然​​​​​​​後​​​​​​​在​​​​​​​ EFI 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​ 選​​​​​​​單​​​​​​​中​​​​​​​選​​​​​​​擇​​​​​​​ 開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​維​​​​​​​護​​​​​​​選​​​​​​​單​​​​​​​。​​​​​​​
  2. 從​​​​​​​主​​​​​​​選​​​​​​​單​​​​​​​中​​​​​​​選​​​​​​​擇​​​​​​​ 新​​​​​​​增​​​​​​​一​​​​​​​個​​​​​​​開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​。​​​​​​​
  3. 選​​​​​​​取​​​​​​​在​​​​​​​ Linux 中​​​​​​​掛​​​​​​​載​​​​​​​為​​​​​​​ /boot/efi/ 的​​​​​​​系​​​​​​​統​​​​​​​分​​​​​​​割​​​​​​​區​​​​​​​。​​​​​​​
  4. 選​​​​​​​取​​​​​​​ elilo.efi 檔​​​​​​​案​​​​​​​。​​​​​​​
  5. 在​​​​​​​ 輸​​​​​​​入​​​​​​​新​​​​​​​的​​​​​​​描​​​​​​​述​​​​​​​: 提​​​​​​​示​​​​​​​符​​​​​​​號​​​​​​​下​​​​​​​,輸​​​​​​​入​​​​​​​ Red Hat Enterprise Linux Red Hat Enterprise Linux 5 或​​​​​​​者​​​​​​​是​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​出​​​​​​​現​​​​​​​在​​​​​​​ EFI 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​ 選​​​​​​​單​​​​​​​的​​​​​​​任​​​​​​​何​​​​​​​名​​​​​​​稱​​​​​​​。​​​​​​​
  6. 在​​​​​​​ 輸​​​​​​​入​​​​​​​開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​資​​​​​​​料​​​​​​​類​​​​​​​型​​​​​​​ 的​​​​​​​提​​​​​​​示​​​​​​​符​​​​​​​號​​​​​​​下​​​​​​​,輸​​​​​​​入​​​​​​​ N 表​​​​​​​示​​​​​​​ 無​​​​​​​開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​(當​​​​​​​您​​​​​​​不​​​​​​​想​​​​​​​要​​​​​​​傳​​​​​​​送​​​​​​​選​​​​​​​項​​​​​​​到​​​​​​​ ELILO 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​時​​​​​​​)。​​​​​​​這​​​​​​​個​​​​​​​選​​​​​​​項​​​​​​​對​​​​​​​大​​​​​​​部​​​​​​​分​​​​​​​的​​​​​​​情​​​​​​​況​​​​​​​幾​​​​​​​乎​​​​​​​都​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​,如​​​​​​​果​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​傳​​​​​​​送​​​​​​​選​​​​​​​項​​​​​​​到​​​​​​​開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​,您​​​​​​​也​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​ /boot/efi/elilo.conf 設​​​​​​​定​​​​​​​檔​​​​​​​案​​​​​​​中​​​​​​​設​​​​​​​定​​​​​​​它​​​​​​​。​​​​​​​
  7. 在​​​​​​​ 儲​​​​​​​存​​​​​​​變​​​​​​​更​​​​​​​到​​​​​​​ NVRAM 提​​​​​​​示​​​​​​​符​​​​​​​號​​​​​​​回​​​​​​​答​​​​​​​ Yes, 您​​​​​​​將​​​​​​​會​​​​​​​被​​​​​​​帶​​​​​​​回​​​​​​​到​​​​​​​ EFI 開​​​​​​​機​​​​​​​維​​​​​​​護​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​ 的​​​​​​​選​​​​​​​單​​​​​​​。​​​​​​​
  8. 再​​​​​​​來​​​​​​​,如​​​​​​​果​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​使​​​​​​​得​​​​​​​ Red Hat Enterprise Linux 5 選​​​​​​​單​​​​​​​項​​​​​​​目​​​​​​​為​​​​​​​預​​​​​​​設​​​​​​​的​​​​​​​, 在​​​​​​​一​​​​​​​系​​​​​​​列​​​​​​​的​​​​​​​開​​​​​​​機​​​​​​​選​​​​​​​項​​​​​​​出​​​​​​​現​​​​​​​後​​​​​​​,請​​​​​​​以​​​​​​​方​​​​​​​向​​​​​​​鍵​​​​​​​選​​​​​​​取​​​​​​​ Red Hat Enterprise Linux 5, 再​​​​​​​按​​​​​​​下​​​​​​​ u 按​​​​​​​鍵​​​​​​​來​​​​​​​將​​​​​​​它​​​​​​​移​​​​​​​動​​​​​​​到​​​​​​​清​​​​​​​單​​​​​​​的​​​​​​​最​​​​​​​頂​​​​​​​部​​​​​​​。​​​​​​​ 您​​​​​​​可​​​​​​​以​​​​​​​藉​​​​​​​由​​​​​​​選​​​​​​​取​​​​​​​一​​​​​​​個​​​​​​​項​​​​​​​目​​​​​​​後​​​​​​​, 再​​​​​​​按​​​​​​​下​​​​​​​ d 按​​​​​​​鍵​​​​​​​來​​​​​​​將​​​​​​​它​​​​​​​移​​​​​​​動​​​​​​​到​​​​​​​清​​​​​​​單​​​​​​​的​​​​​​​最​​​​​​​底​​​​​​​部​​​​​​​。​​​​​​​ 在​​​​​​​更​​​​​​​改​​​​​​​完​​​​​​​開​​​​​​​機​​​​​​​順​​​​​​​序​​​​​​​後​​​​​​​, 請​​​​​​​選​​​​​​​擇​​​​​​​ 儲​​​​​​​存​​​​​​​變​​​​​​​更​​​​​​​到​​​​​​​ NVRAM,再​​​​​​​選​​​​​​​擇​​​​​​​ 離​​​​​​​開​​​​​​​ 以​​​​​​​回​​​​​​​到​​​​​​​主​​​​​​​選​​​​​​​單​​​​​​​。​​​​​​​
  9. Optionally, you can change the boot timeout value by choosing Set Auto Boot TimeOut => Set Timeout Value from the Main Menu.
  10. 選​​​​​​​取​​​​​​​ 離​​​​​​​開​​​​​​​ 以​​​​​​​回​​​​​​​到​​​​​​​ EFI 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​。​​​​​​​

4.27.2.1. 使​​​​​​​用​​​​​​​一​​​​​​​個​​​​​​​啟​​​​​​​動​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​

建​​​​​​​議​​​​​​​您​​​​​​​設​​​​​​​定​​​​​​​ ELILO 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​自​​​​​​​動​​​​​​​啟​​​​​​​動​​​​​​​ Red Hat Enterprise Linux,然​​​​​​​而​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​需​​​​​​​要​​​​​​​設​​​​​​​定​​​​​​​在​​​​​​​ ELILO 開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​啟​​​​​​​動​​​​​​​前​​​​​​​必​​​​​​​須​​​​​​​執​​​​​​​行​​​​​​​的​​​​​​​額​​​​​​​外​​​​​​​指​​​​​​​令​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​建​​​​​​​立​​​​​​​一​​​​​​​個​​​​​​​名​​​​​​​稱​​​​​​​為​​​​​​​ startup.nsh 的​​​​​​​啟​​​​​​​動​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​,而​​​​​​​且​​​​​​​最​​​​​​​後​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​必​​​​​​​須​​​​​​​是​​​​​​​ elilo 以​​​​​​​開​​​​​​​機​​​​​​​進​​​​​​​入​​​​​​​ Linux。​​​​​​​
startup.nsh 程​​​​​​​式​​​​​​​碼​​​​​​​必​​​​​​​須​​​​​​​位​​​​​​​於​​​​​​​ /boot/efi 分​​​​​​​割​​​​​​​區​​​​​​​中​​​​​​​(/boot/efi/startup.nsh), 而​​​​​​​且​​​​​​​必​​​​​​​須​​​​​​​含​​​​​​​有​​​​​​​下​​​​​​​列​​​​​​​的​​​​​​​文​​​​​​​字​​​​​​​:
echo -off your set of commands elilo
You can either create this file after booting into Red Hat Enterprise Linux or use the editor built into the EFI shell. To use the EFI shell, at the Shell> prompt, change devices to the system partition (mounted as /boot/efi in Linux). For example, if fs0 is the system boot partition, type fs0: at the EFI Shell prompt. Type ls to make sure you are in the correct partition. Then type edit startup.nsh. Type the contents of the file and save it.
下​​​​​​​次​​​​​​​系​​​​​​​統​​​​​​​開​​​​​​​機​​​​​​​時​​​​​​​,EFI 會​​​​​​​偵​​​​​​​測​​​​​​​到​​​​​​​ startup.nsh 檔​​​​​​​案​​​​​​​,並​​​​​​​且​​​​​​​使​​​​​​​用​​​​​​​ 它​​​​​​​來​​​​​​​啟​​​​​​​動​​​​​​​系​​​​​​​統​​​​​​​。​​​​​​​ 如​​​​​​​要​​​​​​​停​​​​​​​止​​​​​​​ EFI 載​​​​​​​入​​​​​​​該​​​​​​​檔​​​​​​​案​​​​​​​,請​​​​​​​輸​​​​​​​入​​​​​​​ Ctrl+c。​​​​​​​ 這​​​​​​​將​​​​​​​會​​​​​​​停​​​​​​​止​​​​​​​這​​​​​​​個​​​​​​​載​​​​​​​入​​​​​​​過​​​​​​​程​​​​​​​,並​​​​​​​且​​​​​​​帶​​​​​​​您​​​​​​​回​​​​​​​到​​​​​​​ EFI shell 提​​​​​​​示​​​​​​​符​​​​​​​號​​​​​​​。​​​​​​​