LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2005, 08:20 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
Kernel compilation error: Error 15: File not found


Dear all,

It is my first time to compile a kernel. I got this error when I boot with the kernel I compiled.

root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
Kernel /boot/vmlinuz-2.4.26 ro root=/dev/hda2
Error 15: File not found


Is this error likely to come from the kernel configuration or the grub.conf?

thanks for any assistance..thanks a million
 
Old 03-06-2005, 08:44 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
It oculd be both. After you did 'make install' did you check /boot to see if your new kernel and it's related symlinks were installed correctly? Have you checked the structure of /boot/grub/grub.conf to see if it added your new kernel correctly?

nz
 
1 members found this post helpful.
Old 03-06-2005, 09:42 PM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi nonzero,

The kernel file is "vmlinuz-2.4.26"
I think there isn't any sym link created. Is it compulsory to create one? where to link it to?

In my grub.conf I realised I don't have the "initrd" line that is available in other kernel grub.conf configuration. Also the initrd file is not in my /boot. Could that be the reason for the error?
see below initrd missing for vmlinuz-2.4.26

drwxr-xr-x 4 root root 1024 Mar 5 11:51 .
drwxr-xr-x 22 root root 4096 Mar 7 10:08 ..
-rw-r--r-- 1 root root 46375 May 8 2004 config-2.6.5-1.358
-rw-r--r-- 1 root root 45815 May 8 2004 config-2.6.5-1.358smp
drwxr-xr-x 2 root root 1024 Mar 7 10:06 grub
-rw-r--r-- 1 root root 190522 Dec 30 09:24 initrd-2.6.5-1.358.img
-rw-r--r-- 1 root root 195496 Dec 30 09:25 initrd-2.6.5-1.358smp.img
drwx------ 2 root root 12288 Dec 30 17:19 lost+found
-rw-r--r-- 1 root root 239593 May 8 2004 System.map-2.6.5-1.358
-rw-r--r-- 1 root root 243573 May 8 2004 System.map-2.6.5-1.358smp
-rw-r--r-- 1 root root 1343652 Mar 4 15:55 vmlinuz-2.4.26
-rw-r--r-- 1 root root 1199031 May 8 2004 vmlinuz-2.6.5-1.358
-rw-r--r-- 1 root root 1282272 May 8 2004 vmlinuz-2.6.5-1.358smp


Below is my grub.conf:

title Fedora Core-up (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Red Hat Linux (2.4.26)
root (hd0,1)
kernel /boot/vmlinuz-2.4.26 ro root=/dev/hda2


Hope can help me..thanks a million!
 
Old 03-07-2005, 12:19 AM   #4
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
No not compulsory just convention. Try changing the line 'root (hd0,1)' to
'root (hd0,0)' and give it a go. I find it interesting that you've got the 2.6.x kernel series installed stock, but you elected to build a 2.4.x. kernel. Just experimenting?

nz
 
Old 03-07-2005, 02:54 AM   #5
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi nonzero,

Tried that, still the same error.

Yeah, I am trying to experiment this openmosix thingi. Because its manual and installation instruction are all in 2.4 series so I just chose 2.4 series. If I successfuly build one I will try it on 2.6 series kernel.

thanks a lot for your help,
 
Old 03-20-2005, 06:44 PM   #6
SwimmingPenguin
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
Hi niceman I think your problem is in your grub config file

when you created your entry you pointed to /boot/vmlinuz-2.4.26 ro root=/dev/hda2 for your kernel. I believe in Fedora the default path in already /boot so really you are looking for /boot/boot/vmlinuz-2.4.26 ro root=/dev/hda2......this makes sense because the entry before for the 2.6 kernel contains no /boot in the path to the kernel

Hope that helped,
Tim
 
Old 03-20-2005, 07:42 PM   #7
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Dear Tim,

I tried that, changed it to /boot/boot/vmlinuz-2.4.26 ro root=/dev/hda2

Still gave me the same error.
My senior told me because I am using fedora core 2. He said FC2 uses kernel 2.6, he said only if I use FC1 then it will work.

thanks for your help Tim,
 
Old 03-20-2005, 10:14 PM   #8
SwimmingPenguin
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
You misunderstood me I meant for you to remove the /boot all together...not add another, sry for the confusing post

...So in the end your grub.conf should look like this....

title Fedora Core-up (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Red Hat Linux (2.4.26)
root (hd0,1)
kernel /vmlinuz-2.4.26 ro root=/dev/hda2
 
Old 10-04-2007, 04:41 AM   #9
georanma
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
double...see below

Last edited by georanma; 10-04-2007 at 04:46 AM.
 
Old 10-04-2007, 04:45 AM   #10
georanma
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
im having a similar problem

i get to my grub menu and select my install and i get this message


booting 'gentoo linux 2.6.19-r5'
kernel /boot/kernel-gentoo-x86-2.6.19-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev

error 15: file not found

press any key to continue


this is my first time hand compiling a kernel as well....id appreciate some pointers on what i need to edit and how to get to that stuff. thanks
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compilation error bond_7942 Linux - General 1 02-02-2005 05:35 AM
kernel compilation error htamayo Linux - Software 3 01-07-2005 05:15 PM
kernel compilation error in 2.4.20-8 cranium2004 Linux - Software 1 11-24-2004 07:04 AM
kernel compilation error : '/etc/lilo' not found suryap Red Hat 2 11-24-2004 01:22 AM
kernel compilation error bunty Linspire/Freespire 0 09-08-2004 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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