Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    ok when grub starts press c to get command line

    now type
    kernel /vmlinux-2.4.33.3 -ro root=LABEL=/
    initrd /initrd-2.4.33.3.img
    boot
    press b to boot
    Now you will boot in your rh.If all works fine than re-edit /boot/grub/grub.menu.lst by adding
    default=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
    now in grub you will be able to boot into two kernels

    enjoy

  3. #3
    Just 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

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    save vmlinuz file ( new kernel ) and initrd ( image file ) in /boot folder and add this code in /boot/grub/grub.conf file.

    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
    vmlinuz and initrd file name should be same in grub.conf file. in your first post its 'vmlinux'. i think thats typo.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    Quote Originally Posted by devils_casper
    save vmlinuz file ( new kernel ) and initrd ( image file ) in /boot folder and add this code in /boot/grub/grub.conf file.

    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
    vmlinuz and initrd file name should be same in grub.conf file. in your first post its 'vmlinux'. i think thats typo.




    casper
    oh we both are stupid
    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

  6. #6
    Just 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •