GRUB, the boot loader
Updated March 29, 2005
Created September 6, 2002


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

The grub configuration file usually lives in /boot/grub/grub.conf. Also there are usually links to it from /boot/grub/menu.lst and /etc/grub.conf. Here's a sample grub configuration file
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
        initrd /initrd-2.4.18-14.img
If you need another entry on the GRUB menu, just copy and paste a new section. It appears that each section starts with "title" and ends when it hits a new "title".

Also note that GRUB is a runtime environment. There is no need to do anything like you had to do for LILO - changes are immediately available on the next boot. When using LILO you had to run /sbin/lilo after each change in /etc/lilo.conf.

Adding a DOS/Windows partition in GRUB (such as the F10 partition - i.e. SCU utilities)

title = XP
rootnoverify (hd0,0)
chainloader = (hd0,2)+1

Kernel Parameters

Adding parameters to GRUB, such as memory parameters or ide=nodma are easy. Just find the apropriate "kernel" line in the /boot/grub/grub.conf (or /etc/grub.conf) and add it at the end, be sure to give a space between the last entry on the "kernel" line and your new entry.

Original:
title Red Hat Linux (2.4.18-14)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
        initrd /initrd-2.4.18-14.img

Modified:
title Red Hat Linux (2.4.18-14)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ mem=63M@16M
        initrd /initrd-2.4.18-14.img
Also note that grub reads its configuration file during boot. You do not need to run anything special to create and install a boot sector, other than initially installing GRUB in the boot sector -- i.e. you don't need to rerun grub setup each time you modify the grub.conf file -- if you already see GRUB as you boot up, then you are good to go, just modify grub.conf to your likeing and reboot.

Looks like we finally found out how to re-set up grub. Also make sure your device.map and menu.lst look good.
grub
root (hd0,2)
setup (hd0)
quit

Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html