Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2004, 08:01 AM   #1
Registered: Sep 2003
Posts: 163

Rep: Reputation: 30
newbie wants to compile new kernel

I have RH9 box with 2.4.20-8, I just downloaded the 2.6.1 but I am not sure how to make new kernel work and I would like to have options to choose the kernel versions on boot.
i unpacked the source , put it in the usr/linux-2.6.1 and from there I did make menuconfig, make
can someone guide me through the rest of the stuff, I stuffed up last time when I edited the grub.conf

Old 01-30-2004, 08:20 AM   #2
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,690
Blog Entries: 9

Rep: Reputation: 45
This may be of some help. don't forget it's slackware related.

If it's not what you're looking for then do what I did, and search LQ yourself. You may find something closer to what you want to do with your redhat install


Old 01-30-2004, 01:37 PM   #3
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
the make, make bzImage, make modules, make modules_install all went fine, but still I don't know how to make grub.conf to reflect the changes.
first I cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.1
then, ln -s /boot/vmlinuz /boot/vmlinux-2.6.1 (here i think it should be vmlinux-2.4.20-8 coz it is in the old boot dir)
the boot dir has the following:
then i went to edit the grub.conf to be
title redhat 2.6.1
root (hd0,2)
kernel /vmlinuz-2.6.1 ro root=LABEL=/
title Red Hat Linux(2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title DOS
when I reboot and select the new kernel, it failed with no file found , Kernel /vmlinuz-2.6.1 ro root=LABEL=/

the old kernel boots up fine.
then I went for the second way...
cd /boot
cp /usr/src/linux-2.6.1/arch/i386/boot/bzImage /boot/
cp /usr/src/linux-2.6.1/ /boot/
then edited the grub.conf to be
title redhat 2.6.1
root (hd0, 2)
kernel /bzImage ro root=LABEL=/
title Red Hat Linux (2.4.20-8)
....(unchanged for the rest)

failed with same message on booting new kernel, old kernel still boots up .

i am lost here, can someone help me finish this seemingly simple task ? I really don't know what went wrong...... some guides says i should move the system .map some didn't memtion it, please help me out.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie Kernel compile problem begining Linux - Newbie 11 08-05-2005 03:12 AM
another newbie with Kernel compile problems tinyredpea Linux - General 7 10-10-2004 07:20 PM
compile kernel help for newbie gazza Linux - Software 0 07-07-2004 07:37 PM
Newbie kernel compile problem seanro Slackware 5 02-06-2004 12:04 PM
Newbie Kernel re-compile disaster Neorio Linux - General 7 10-23-2003 03:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration