LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring Grub (https://www.linuxquestions.org/questions/linux-software-2/configuring-grub-153532/)

arimus25 03-04-2004 02:50 PM

Configuring Grub
 
I installed a new kernerl (2.6.3) and I am not sure how to set up Grub to boot up with the new kernel (I am using Red Hat 9). I would like to have the option to boot the original kernel (2.4.20) or the 2.6.3, it this possible?

acid_kewpie 03-04-2004 03:04 PM

yes, it's easy...
Code:

title=Gentoo-2.4.22
root (hd0,0)
kernel (hd0,1)/vmlinuz-gentoo-2.4.22-29-12 root=/dev/hda1 hdc=ide-scsi vga=0x31A video=vesa:ywrap,mtrr
initrd (hd0,1)/initrd-1280x1024

title=Gentoo-2.6.0
root (hd0,0)
kernel (hd0,1)/vmlinuz-gentoo-2.6.0-01-01-2 root=/dev/hda1 vga=0x317 video=vesa:ywrap,mtrr acpi=off noapic


Blinker_Fluid 03-04-2004 03:46 PM

When I got my 2.6 kernel I just did a make install and it put it in grub.conf for me. I think I had to make it default though...

my /etc/grub.conf
cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.6.2)
root (hd0,2)
kernel /boot/vmlinuz-2.6.2 ro root=LABEL=/
initrd /boot/initrd-2.6.2.img
title Red Hat Linux (2.6.0)
root (hd0,2)
kernel /boot/vmlinuz-2.6.0 ro root=LABEL=/
initrd /boot/initrd-2.6.0.img
title Red Hat Linux (2.4.20-24.9)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-24.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-24.9.img
title Red Hat Linux (2.4.20-20.9)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-20.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-20.9.img
title Red Hat Linux (2.4.20-19.9)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-19.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-19.9.img
title Red Hat Linux (2.4.20-18.9)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-18.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-18.9.img


All times are GMT -5. The time now is 10:22 PM.