From: Artnut on
Hi all,

I downloaded the latest stable kernel and did the following steps.

Please note, the hyphen, dash or dot in the kernel version was completed by
hitting tab key during Linux kernel compilation. However, there might be
some goof up/typo as I type it below.


# tar -jxvf /usr/src/kernels/linux-2.6.25-9.tar.bz2

# cd /usr/src/kernels/linux-2.6.25-9

# make menuconfig (text)

# make clean

#make bzImage

#make modules

#make modules_install


Until this point, everything went smoothly.

#cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18-8

Overwrite the file? y

#cp /usr/src/kernels/linux-2.6.25-9/System.map /boot/System.map-2.6.18-8

Overwrite the file? y


Now from the next command something went wrong.

# ln -s /boot/System.map-2.6.25-9 /boot/System.map

Got error : File already exists


# Checked in /lib/modules/ and found 2.6.25-9 was created.

# mkinitrd /boot/initrd-2.6.25-9.img 2.6.25-9


Got error : File already exists


#vi /etc/grub.conf

default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.6.18-8.EL)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-8.EL.img



Obviously, the new kernel failed to show up in grub. May I know what could
be possibly wrong?

Upon booting I got Kernel Panic error which did NOT show "Attempted to Kill"
message. It was something else which I forgot to write.

Upon changing grub entry I got Error 15.




All help appreciated. Thank you all in advance.



Regards,

Arty



From: ArameFarpado on
Em Domingo, 29 de Junho de 2008 18:25, Artnut escreveu:

>
> #cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18-8
>
> Overwrite the file? y
it is a very bad idea to replace a kernel like that,
you should had bild the new one to a new image
/boot/vmlinuz-2.625-9

and then add the new kernel in the grub configuration...

only after the new kernel is tested and running ok, the old kernel may be
deleted. you can have has many vmlinuz files as you want it.

>
> # ln -s /boot/System.map-2.6.25-9 /boot/System.map
>
> Got error : File already exists
delete de old link before create the new one

>
> #vi /etc/grub.conf
>
> default=0
> timeout=30
> splashimage=(hd0,0)/grub/splash.xpm.gz
> title Red Hat Enterprise Linux AS (2.6.18-8.EL)
> root (hd0,0)
> kernel /vmlinuz-2.6.18-8.EL ro root=LABEL=/ rhgb quiet
> initrd /initrd-2.6.18-8.EL.img
>
>
>
> Obviously, the new kernel failed to show up in grub. May I know what could
> be possibly wrong?
??? if you are manually installing a new kernel, you must add it to grub
manually too.

> Upon booting I got Kernel Panic error which did NOT show "Attempted to
> Kill" message. It was something else which I forgot to write.
>
> Upon changing grub entry I got Error 15.
Course...

>
>
> All help appreciated. Thank you all in advance.
i supose you can't boot your system now, so use a live-cd to correct the
mess you made.

next time, do it without replacing any file in /boot (except the links),
instead just create new ones with diferent names and add entries on grub
configuration.

good luck




From: J.O. Aho on
Artnut wrote:

> #make bzImage
>
> #make modules
>
> #make modules_install

Do instead

make && make modules_install

It will do the same as the above but slightly faster


> Until this point, everything went smoothly.
>
> #cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18-8
>
> Overwrite the file? y

You should have answered no, you should never copy it over an previous
version, always keep the old one untouched, this way you have something
to boot with if you mess things up with your configuration.



> Now from the next command something went wrong.
>
> # ln -s /boot/System.map-2.6.25-9 /boot/System.map
>
> Got error : File already exists

This tells that there is already a 2.5.25.9 kernel


> # Checked in /lib/modules/ and found 2.6.25-9 was created.

Thats not so strange, as you did a "make modules_install"


> # mkinitrd /boot/initrd-2.6.25-9.img 2.6.25-9
>
> Got error : File already exists

mkinitrd refuses to create a new one, you have to wither rename the old
one or pick a new name.


> #vi /etc/grub.conf
>
> default=0
> timeout=30
> splashimage=(hd0,0)/grub/splash.xpm.gz
> title Red Hat Enterprise Linux AS (2.6.18-8.EL)
> root (hd0,0)
> kernel /vmlinuz-2.6.18-8.EL ro root=LABEL=/ rhgb quiet
> initrd /initrd-2.6.18-8.EL.img
>
>
>
> Obviously, the new kernel failed to show up in grub. May I know what could
> be possibly wrong?

If you don't use the package manager (rpm) to install an kernel rpm, no
new entries will be added to grub, you have to do that manually.


> Upon booting I got Kernel Panic error which did NOT show "Attempted to Kill"
> message. It was something else which I forgot to write.
>
> Upon changing grub entry I got Error 15.
>
>
>
>
> All help appreciated. Thank you all in advance.

Boot into rescue mode with your RHEL install CD/DVD, chroot to your
installation, check for the kernel rpm on the boot media, uninstall the
2.6.18 kernel with the "rpm -e" command and then install the kernel you
found on the media with "rpm -ivh", if you still have troubles, then do
it again, but reinstall grub first.


--

//Aho
From: Man-wai Chang ToDie (33.6k) on
Artnut wrote:
> Hi all,
>
> I downloaded the latest stable kernel and did the following steps.
>
> Please note, the hyphen, dash or dot in the kernel version was completed by
> hitting tab key during Linux kernel compilation. However, there might be
> some goof up/typo as I type it below.

what linux distribution are you using?

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 8.04) Linux 2.6.25.9
^ ^ 12:10:01 up 55 min 2 users load average: 1.00 1.02 1.09
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/
From: Artnut on

"Man-wai Chang ToDie (33.6k)" <toylet.toylet(a)gmail.com> wrote in message
news:48685ce7(a)127.0.0.1...
> Artnut wrote:
>> Hi all,
>>
>> I downloaded the latest stable kernel and did the following steps.
>>
>> Please note, the hyphen, dash or dot in the kernel version was completed
>> by hitting tab key during Linux kernel compilation. However, there might
>> be some goof up/typo as I type it below.
>
> what linux distribution are you using?
>
> --


I wonder how relevant my linux distro's mention here would be but
nonetheless it is RHEL5.
I appreciate the responses from all of you but honestly I GIVE UP because
now am very frustrated with the whole experience of getting back the old
kernel or installing grup. Just cannot figure out what wrong I am doing and
where I am going. Each step gives some strange error. 15, 13, panic. So
finally, have no other option but to reinstall it as we do with Windows!

I checked on google.com/linux the steps to install new kernel and some of
them are indeed very confusing as each one lists it little differently. Some
still assume the user is using Lilo, whereas whatever little I know, the
trend is more towards grub.

Is there any way I can find a simple step by step process?


TIA,
Arty


 |  Next  |  Last
Pages: 1 2
Prev: Tftp server problem
Next: apt-get in Suse?