11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GRUB Menu Configuration File<br />

separated list.<br />

The following is an example kernel <strong>com</strong>mand:<br />

kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00<br />

The option in the previous example specifies that the root file system for <strong>Linux</strong> is located on<br />

the hda5 partition.<br />

• root (,) — Configures the root partition for<br />

GRUB, such as (hd0,0), and mounts the partition.<br />

The following is an example root <strong>com</strong>mand:<br />

root (hd0,0)<br />

• rootnoverify (,) — Configures the root<br />

partition for GRUB, just like the root <strong>com</strong>mand, but does not mount the partition.<br />

Other <strong>com</strong>mands are also available; type help --all for a full list of <strong>com</strong>mands. For a<br />

description of all GRUB <strong>com</strong>mands, refer to the documentation available online at<br />

http://www.gnu.org/software/grub/manual/.<br />

7. GRUB Menu Configuration File<br />

The configuration file (/boot/grub/grub.conf), which is used to create the list of operating<br />

systems to boot in GRUB's menu interface, essentially allows the user to select a pre-set group<br />

of <strong>com</strong>mands to execute. The <strong>com</strong>mands given in Section 6, “GRUB Commands” can be used,<br />

as well as some special <strong>com</strong>mands that are only available in the configuration file.<br />

7.1. Configuration File Structure<br />

The GRUB menu interface configuration file is /boot/grub/grub.conf. The <strong>com</strong>mands to set<br />

the global preferences for the menu interface are placed at the top of the file, followed by<br />

stanzas for each operating kernel or operating system listed in the menu.<br />

The following is a very basic GRUB menu configuration file designed to boot either <strong>Red</strong> <strong>Hat</strong><br />

<strong>Enterprise</strong> <strong>Linux</strong> or Microsoft Windows 2000:<br />

default=0<br />

timeout=10<br />

splashimage=(hd0,0)/grub/splash.xpm.gz<br />

hiddenmenu<br />

title <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> Server (2.6.18-2.el5PAE)<br />

root (hd0,0)<br />

kernel /boot/vmlinuz-2.6.18-2.el5PAE ro root=LABEL=/1 rhgb quiet<br />

initrd /boot/initrd-2.6.18-2.el5PAE.img<br />

97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!