Welcome to the most active Linux Forum on the web.
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 08-23-2004, 04:01 PM   #1
The GingerNinja
LQ Newbie
Registered: Aug 2004
Location: Denmark
Distribution: Suse 9 professional
Posts: 8

Rep: Reputation: 0
Kernel rebuild (new image not found)

I hope someone can give me some advice here..
I'm trying to rebuild the 2.4.26 kernel and following this ATI fix thread.
I have followed all the instructions and made appropriate steps where I found trouble (use menu.lst instead of grub.conf on Suse 9), but when I reboot and choose the new kernel, I get a error 15 (File not found). (on the 3d accelerated version)

Apart from being new to linux, I think I understand the basics that the new kernel just tells the system to load the renamed vmliuz file instead of the original, but I have no idea why is cant see it. I had a root around on the web first and saw a bit of info about moving the file, but this doesn't seem to do the job either.

My menu.lst file looks like this (section of it)

title Linux
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 vga=0x31a splash=silent desktop hdc=ide-scsi hdclun=0 showopts
initrd (hd0,4)/boot/initrd

title Linux 3D accelerated
kernel (hd0,4)/boot/vmlinuz-2.4.26 root=/dev/hda5 vga=0x31a splash=silent desktop hdc=ide-scsi hdclun=0 showopts

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd0,0)
chainloader +1

and by listing /boot, I see this..

# ls -la
total 5956
drwxr-xr-x 3 root root 4096 Aug 23 22:47 .
drwxr-xr-x 22 root root 4096 Aug 24 2004 ..
-rw-r--r-- 1 root root 139408 Sep 24 2003 Kerntypes-2.4.21-99-smp4G
lrwxrwxrwx 1 root root 23 Aug 23 22:47 -> /boot/
-rw-r--r-- 1 root root 644707 Sep 24 2003
-rw-r--r-- 1 root root 622977 Aug 23 22:46
-rw-r--r-- 1 root root 512 Aug 14 19:12 backup_mbr
lrwxrwxrwx 1 root root 1 Aug 14 19:05 boot -> .
-rw-r--r-- 1 root root 51366 Sep 24 2003 config-2.4.21-99-smp4G
-rw-r--r-- 1 root root 42199 Aug 23 15:44 config-9600xt
-rw-r--r-- 1 root root 0 Aug 23 15:44 config-9600xt.old
drwxr-xr-x 2 root root 4096 Aug 23 22:37 grub
lrwxrwxrwx 1 root root 22 Aug 14 19:12 initrd -> initrd-2.4.21-99-smp4G
-rw-r--r-- 1 root root 356572 Aug 14 19:12 initrd-2.4.21-99-smp4G
-rw-r--r-- 1 root root 80324 Sep 24 2003 memtest.bin
-rw-r--r-- 1 root root 64824 Sep 24 2003 message
-rw-r--r-- 1 root root 1515724 Sep 24 2003 vmlinux-2.4.21-99-smp4G.gz
-rw-r--r-- 1 root root 1210506 Aug 23 15:49 vmlinux-2.4.26
lrwxrwxrwx 1 root root 23 Aug 14 19:07 vmlinuz -> vmlinuz-2.4.21-99-smp4G
-rw-r--r-- 1 root root 1285388 Sep 24 2003 vmlinuz-2.4.21-99-smp4G

Is there something else I need to update with the new kernel file to get grub to see it?

Old 08-23-2004, 04:34 PM   #2
Registered: Apr 2004
Location: NJ, USA
Distribution: Fedora
Posts: 82

Rep: Reputation: 15
You need to have an initrd (initial ram disk) file to match your new vmlinuz. Notice on your file list that you have a initrd-2.4.21-99-smp4G, but you don't have a initrd-2.4.26.

The command to make the file is going to be (I think):

mkinitrd initrd-2.4.26 2.4.26

The "2.4.26" needs to be be based on the name of the folder that has your linux source and the folder that has the matching modules. I use Fedora, and that is the way it would be named for me, so the line I gave you might be fine just the way it is, or you'll need to adjust it for SUse.

The command will make the initrd file in whatever folder you are in when you run it. You need to put the file into the /boot folder. And, you need to add a line to your menu.lst file that tells grub to use this initrd file with the Linux 3d accelerated version, so you will probably need to add this line there (like there is one for your regular boot version):

initrd (hd0,4)/boot/initrd-2.4.26

Post back if you have any questions, or if there are any error messages along the way. Sometimes you get an error message running mkinitrd, and you need to add a particular --switch kind of thing to resolve the error.
Old 08-23-2004, 04:51 PM   #3
The GingerNinja
LQ Newbie
Registered: Aug 2004
Location: Denmark
Distribution: Suse 9 professional
Posts: 8

Original Poster
Rep: Reputation: 0
I think you have just helped me there but in another way..

I tried the "mkinitrd" line and got an error

No kernel image /boot/vmlinuz-2.4.26 found

I just checked it one more time and spotted that in /boot the file is called


Will make the initrd though at the same time as I fix it.


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
How do you rebuild a kernel? Thaidog Linux - General 4 07-26-2005 12:15 PM
kernel rebuild Present Yoper 9 11-26-2004 06:08 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 09:59 AM
Kernel Compile: Image Cannot Be Found katana Linux - General 1 11-20-2002 01:45 AM
New kernel image not found rooman Linux - General 4 10-13-2002 02:42 PM

All times are GMT -5. The time now is 09:41 AM.

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