Red Hat Linux 7.2: The Official Red Hat Linux Itanium Installation Guide | ||
---|---|---|
Prev | Chapter 3. Installing Red Hat Linux | Next |
This section describes how to boot your Itanium into Red Hat Linux and how to set your EFI console variables so that Red Hat Linux is automatically booted when the machine is powered on.
After you reboot your system at the end of the installation program, type the following command to boot into Red Hat Linux:
Shell>elilo |
If you want to load a different kernel, type the label name of the kernel from the file /boot/efi/elilo.conf. after elilo. For example, to load the kernel named linux-up for the uni-processor kernel, type
Shell>elilo linux-up |
If you do not know the names of the installed kernels, you can view the /boot/efi/elilo.conf file in EFI with the following instructions:
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 at the fs0:\> to make sure you are in the correct partition.
Then type
Shell>type elilo.conf |
In addition to specifying a kernel to load, you can also enter other boot options such as single for single user mode or mem=1024M to force Red Hat Linux to see 1024 MB of memory. To pass options to the boot loader, enter the following at the EFI Shell prompt (replace linux with the label name of the kernel you want to boot and option with the boot options you want to pass to the kernel):
Shell>elilo linux option |
After installing Red Hat Linux you can type elilo and any boot options at the EFI Shell prompt each time you wish to boot your Itanium system. However, if you wish to configure your system to boot into Red Hat Linux automatically, you need to configure the EFI Boot Manager.
To configure the EFI Boot Manager (may vary slighly depending on your hardware):
Boot the Itanium system and choose Boot option maintenance menu from the EFI Boot Manager menu.
Choose Add a Boot Option from the Main Menu.
Select the system partition that is mounted as /boot/efi in Linux.
Select the elilo.efi file.
At the Enter New Description: prompt, type Red Hat Linux 7.2, or any name that you want to appear on the EFI Boot Manager menu.
At the Enter Boot Option Data Type prompt, enter N for No Boot Option if you do not want to pass options to the ELILO boot loader. This option will work for most cases. If you want to pass options to the boot loader, you can configure it in the /boot/efi/elilo.conf configuration file instead.
Answer Yes to the Save changes to NVRAM prompt. This will return you to the EFI Boot Maintenance Manager menu.
Next, you want to make the Red Hat Linux 7.2
menu item the default. You will see a list of boot
options. Move the Red Hat Linux 7.2 menu item up
to the top of the list by selecting it with the arrow keys and
pressing the
Optionally, you can change to boot timeout value by choosing Set Auto Boot TimeOut => Set Timeout Value from the Main Menu.
Return to the EFI Boot Manager by selecting Exit.
It is recommended that you configure the ELILO Boot Manager to boot Red Hat Linux automatically. However, if you require additional commands to be executed before starting the ELILO boot loader, you can create a startup script named startup.nsh. The last command should be elilo to boot into Linux.
The startup.nsh script should be in the /boot/efi partition (/boot/efi/startup.nsh) and contain the following text:
echo -off your set of commands elilo |
You can either create this file after booting into Red Hat 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.
The next time the system boots, EFI will detect the
startup.nsh file and use it to boot the
system. To stop EFI from loading the file, type