Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Kernel Update For Rh9
Robert83
post Feb 25 2004, 05:48 AM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

So i've managed to get the src for the kernel , complied it...etc

and this is how my /boot looks like

/grub
/lost+found
@System.map
System.map-2.4.20-28.9custom
System.map-2.4.20-8
boot.b
chain.b
config.b
config-2.4.20-8
initrd-2.4.20-8.img
kernel.h
message
message.ja
@module-info
module-info-2.4.20-8
os2_d.b
vmlinux-2.4.20-8
@vmlinuz
vmlinuz-2.4.20-28.9custom
vmlinuz-2.4.20-8

the problem is that my old kernel is the one, that is still booting up... how to fix?

and just one more question, I'v customised the kernel, removed some features that I don't need [the ones I was really sure about],...and once i've finished compiling the kernel, only this error came out : Kernel to big for boot disk[I think it meant the floppy]

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Robert83
post Feb 25 2004, 06:00 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



please note : that I'm booting up from a bootdisk to RH9, the disk was created with the RH9 install , so I guess it's for the old kernel, so the next question would be : how do I create a boot floppy for the new kernel?


Sincerely
Robert B.


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 25 2004, 07:47 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



If you want to update your kernel to the latest RedHat compiled kernel ... and not have to compile it your self, do this:

Because you can install more than 1 kernel on your system
, apt doesn't install the latest kernel with the default commands:

However, you can use apt to get the new kernel ... like this:

always do:

apt-get update

before you install apt...then

apt-get install kernel

Your output will look something like this:
CODE
[root@localhost root]# apt-get install kernel
Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel is a virtual package provided by:
 kernel-smp#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel-bigmem#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel-BOOT#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel#2.4.20-30_37.rh9.at 2.4.20-30_37.rh9.at
 kernel-smp#2.4.20-30.9 2.4.20-30.9
 kernel-smp#2.4.20-28.9 2.4.20-28.9
 kernel-bigmem#2.4.20-30.9 2.4.20-30.9
 kernel-bigmem#2.4.20-28.9 2.4.20-28.9
 kernel-BOOT#2.4.20-30.9 2.4.20-30.9
 kernel-BOOT#2.4.20-28.9 2.4.20-28.9
 kernel#2.4.20-30.9 2.4.20-30.9
 kernel#2.4.20-30.9 2.4.20-30.9
 kernel#2.4.20-30.9 2.4.20-30.9
 kernel#2.4.20-28.9 2.4.20-28.9
 kernel#2.4.20-28.9 2.4.20-28.9
 kernel#2.4.20-28.9 2.4.20-28.9
 kernel-smp#2.4.20-8 2.4.20-8
 kernel-bigmem#2.4.20-8 2.4.20-8
 kernel-BOOT#2.4.20-8 2.4.20-8
 kernel#2.4.20-8 2.4.20-8
 kernel#2.4.20-8 2.4.20-8
 kernel#2.4.20-8 2.4.20-8
You should explicitly select one to install.
E: Package kernel has no installation candidate


Now you need to pick the kernel you want to install from that list ....

Some notes on when to pick other than the standard kernel...

1. BOOT - never ... it is the reference kernel for a 80386 chip

2. bigmem - a PC > 4gb RAM

3. smp - any PC with more than 1 processor {or a machine with hyperthreading enabled where you want to take advantage of hyperthreading ... right now hyperthreading is available on P4 > 3 Mhz and P4 Xeon processors. Hyperthreading must be enabled in the BIOS}

4. rh9.at - Special kernels compiled by Alex Thimm's apt site .... If you go here (scrool down to the blue section) ... you will see the patches in this kernel. This kernel basically has more / different patches than the standard redhat kernel. I normally don't use the rh9.at kernels.
--------------------------------
So you would pick kernel#2.4.20-30.9 for a standard single processor intel / amd machine and then enter the command:

apt-get install kernel#2.4.20-30.9

I have done some research in the last couple days and that method will automatically pick the right arch (ie, i386, i586, i686, althon, etc.) for your install...
--------------------------------
Before you reboot, go to /boot/grub and edit the file menu.lst (or boot.grub ... they should be the same file) and set the default line to:

default=0

(to boot to the first ... new ... kernel)

After you are satisfied that the new kernel is stable (normally I wait a couple days on a production machine), remove the old kernel like this:

rpm -q kernel

then

rpm -e kernel-xxxx
---------------------------------------
For any kernel upgrade ... any kernel modules you manually added (Like video drivers, SCSI drivers, motherboard drivers, NTFS drivers, etc. ) must be re-done for the new kernel.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 25 2004, 08:03 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



BTW, I have never used a boot floppy for redhat ... what files are on the floppy.

If I were doing it, I probably would put grub there and a chainloader entry to /boot ... but I'm not sure.

If it is grub on the boot floppy ... what does the menu.lst file say?

You probably just need to add a new entry to point to the need kernel image and the new initrd image.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Robert83
post Feb 25 2004, 08:38 AM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

[Note: I've found this great tutorial Red Hat Tuning Tutorial, discuses Kernel updates, and network tweaking, etc...]

So about the floppy

the following files are on the floppy

boot.msg
initrd.img
ldlinux.sys
syslinux.cfg
vmlinuz

in the syslinux.cfg

there is a line

kernel vmlinuz [hmmm? perhaps switch this whit the vmlinuzxxxxxcustom kernel?]

oh and by the way, I've succesfully installed and updated Whitebox Linux 3.0, and was very suprised, that yam
actualy downloaded and installed the latest kernel for me, now when grub start it default to the latest kernel and my older kernel is still there [good, I think ].

By the way, if I would use grub with red hat9 as the bootloader [since I've installed no boot loader on my test machine], it would ad a new entry into grub for the new kernel to...right?

And about those errors, kernel to big to fit to floppy , should I be concerned?, or some other warning, console bla-bla-bla says something about limit, and later on about unused variables, [I've learned a bit C 3.x about 4 yrs ago, so I guess these warning are no big deal right?].


Sincerely
Robert B

ps.: Whitebox updated the kernel with the athlon arch, and it says : 2.4.21-9.0.1.EL on an i686 this is good no? smile.gif


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Robert83
post Feb 25 2004, 08:40 AM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



oh and almost completely forgot , in this haste smile.gif

thank you for those download/update sites for yum smile.gif)


THANK YOU


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 25 2004, 09:13 AM
Post #7


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



OK ... that boot disk contains the whole kernel and loads it from floppy ... and the new kernel won't fit on floppy, SO you must do something else to boot your new kernel.

What I would recommend is installing grub to the MBR (if it is installed in /boot/grub right now) of the hard drive to boot from.

(if grub isn't installed ... apt-get install grub will do it)

If this is a dual boot machine (with windows), make sure to add this at the bottom of the file /boot/grub/menu.lst (if the windows machine is on /dev/hda1 ... ie the first partition of the primary master drive)

CODE
title Windows
       rootnoverify (hd0,0)
       chainloader +1


then go into grub:

grub

you are at the grub prompt ... now do this (you need to know what drive your /boot resides on ... if /boot is a seperate partition, use that partiton ... if /boot is not /dev/hda2, use the right value for (hd0,1) instead of what I typed below ... hda1 is (hd0,0) ... hda2 is (hd0,1) ... hda3 is (hd0,2) ... hdb1 is (hd1,0), hdb2 is (hd1,1), hdb3 is (hd1,2), etc. )

root (hd0,1)

Now to setup the MBR...

setup (hd0)

then

quit
------------------
now edit the /boot/grub/menu.lst and point to the new kernel (and new initrd line, if applicable, looks like it is not on your compiled kernel ... one is required on the redhat pre-compiled kernels).

reboot and you should be good to go...you should still also be able to boot to the floppy and get the old kernel
------------
You are welcome for the Whitebox sites .... yes, yum also updates the kernel ... and the setup that you have (with 2 kernels and the newest one as default) is OK


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 25 2004, 09:32 AM
Post #8


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



If you don't have your current info in /boot/grub/menu.lst ... because of a new install ... here is mine for a redhat 9 machine:

CODE
default=0
timeout=0
splashimage=(hd1,4)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-30.9)
       root (hd1,4)
       kernel /boot/vmlinuz-2.4.20-30.9 ro root=/dev/hdb5


If you use up2date, yum, apt-get or rpm to install a precompiled kernel, it makes an entry in the /boot/grub/menu.lst file for you ... if you compile your own kernel, you would need to add it yourself (as another entry).... like this:


CODE
title Red Hat Linux (2.4.20-28.9custom)
       root (hd1,4)
       kernel /boot/vmlinuz-2.4.20-28.9custom ro root=/dev/hdb5


Some notes ... this is on a machine with NO boot seperate partition ... if the boot partition where seperate the kernel lines would look like this:

kernel /vmlinuz-2.4.20-28.9custom ro root=/dev/hdb5

AND the root(hd1,4) would point to the /boot partition and not the root partition ... but the root=/dev/hda5 would point to the root partition ... not the boot partiton.
------------------------------------
As a side note:

I don't normally compile my own RedHat or Debian kernels on production machines (I do compile my own kernels in Gentoo ... and sometimes on test machines for debain/redhat) ... I usually download the latest kernel from redhat/debian that contains the latest security updates and then add modules as necessary for hardware.
----------------------------------


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Robert83
post Feb 25 2004, 09:35 AM
Post #9


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Thank you smile.gif

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2017 - 07:59 AM