Results 1 to 6 of 6
I've just compiled a new kernel for my RedBox (redhat9.0) and need to update grub so that Grub can load the ned kernel automatically
The new kernel is 2.4.33.3 and ...
- 11-16-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 3
Updating Grub after kernel Compile
I've just compiled a new kernel for my RedBox (redhat9.0) and need to update grub so that Grub can load the ned kernel automatically
The new kernel is 2.4.33.3 and I untarred it into usr/src/kernel/linux-2.4.33.3 and have done all the compilation. Now the material I'm using says "Update grub to load the new kernel" and that is what I don't know how to do now.
I have a boot partition.
And my grub.menu.lst is as follow
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.24.20-8 )
root (hd0,0)
kernel /vmlinux-2.4.20-8 -ro root=LABEL=/
initrd /initrd-2.4.20-8.img
Please Help me with this
- 11-16-2006 #2
ok when grub starts press c to get command line
now type
press b to bootkernel /vmlinux-2.4.33.3 -ro root=LABEL=/
initrd /initrd-2.4.33.3.img
boot
Now you will boot in your rh.If all works fine than re-edit /boot/grub/grub.menu.lst by adding
now in grub you will be able to boot into two kernelsdefault=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (new )
root (hd0,0)
kernel /vmlinux-2.4.33.3 -ro root=LABEL=/
initrd /initrd-2.4.33.3.img
enjoy
- 11-17-2006 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 3
Re: Updating Grub after kernel Compile
I tried that but once I type the first line "Kernel /vmlinux ... " it gives me an error message "File not found".
And nothing seem to happen
- 11-17-2006 #4
save vmlinuz file ( new kernel ) and initrd ( image file ) in /boot folder and add this code in /boot/grub/grub.conf file.
vmlinuz and initrd file name should be same in grub.conf file. in your first post its 'vmlinux'. i think thats typo.Code:title Red Hat Linux New Kernel (2.4.33.3 ) root (hd0,0) kernel /vmlinuz-2.4.33-3 -ro root=LABEL=/ initrd /initrd-2.4.33-3.img
casperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 11-17-2006 #5oh we both are stupid
Originally Posted by devils_casper
vmlinuz and intrid are in boot dir
so
title Red Hat Linux New Kernel (2.4.33.3 )
root (hd0,0)
kernel /boot/vmlinuz-2.4.33-3 -ro root=LABEL=/
initrd /boot/initrd-2.4.33-3.img
casper:
yeah my mistake "wmlinux" doesnt exist
i,ve just copied thread starter ´text withowt checking it
sorry
- 11-18-2006 #6Just Joined!
- Join Date
- Nov 2006
- Posts
- 3
Hi guys,
I guess the problem is from the bzimage and each time I try to make bzimage it returns an error message "No rules to make target (bzimage)" please what could be wrong
These are the steps I took
Untar the source int /usr/src/kernel/linux-2.4.33.3 and from this directory I
make mrproper (Fine)
make menuconfig (Fine)
make dep (Fine)
make bzimage (Error - No rules to make target)
Please what could be the problem?


Reply With Quote
