LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices



Reply
 
Search this Thread
Old 08-23-2007, 09:46 AM   #1
duelle
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
Gentoo | Path to KernelImages changed from /boot to / - how can this happen?


Hi,

after compiling a new Kernel and copying the Kernelimage to /boot the Grub-Error 15 "File not found" occurs while booting.

I found out, that it's no more possible to boot the Kernel-Images from /boot/<kernelimage> (as before and described in Gentoo Manual). They seem to be located in /<kernelimage> now.

If I edit the grub.conf (in deleting the /boot from the Path to the Kernelimage) everything works without any problems.

How is it possible that the path of _all_ Kernelimages changes?

In /etc/fstab /boot is flagged with noauto (it was that way from beginning on)
Kernel compilations/installations before were problemless. And I did it as the others before.

Greetz
duelle

Last edited by duelle; 08-23-2007 at 09:57 AM. Reason: translated to english
 
Old 08-23-2007, 03:53 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
In /etc/fstab /boot is flagged with noauto
So did you remember to mount it before copying your new kernel(s) there? If not you are placing them in a directory '/boot' which actually lives on the '/' partition, hence why grub cannot find them if it is looking for the images on a boot partition.

I suggest you do something like:

Code:
# cp /boot /boot.bak
# mount /boot
# mv /boot.bak/* /boot/
# rm -rf /boot.bak
 
Old 08-23-2007, 04:33 PM   #3
duelle
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
if /boot isn't mounted, the directory /boot is empty

Hi,

if /boot isn't mounted, the directory /boot exists, but it's empty.
So I think I did it the right way, did I?

Greetz
duelle
 
Old 08-23-2007, 04:47 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
if /boot isn't mounted, the directory /boot exists, but it's empty.
So I think I did it the right way, did I?
That is as it should be, yes. So the problem is with your grub config.

Your entries should look like:
Code:
title 2.6.20
root (hd0,0)
kernel /vmlinuz-2.6.20-ck1 root=/dev/hda2
The "root (hd0,0)" line tells grub to look for kernels relative to the first partition of the first HDD. If you did _not_ have a separate '/boot' partition, and '/' was the first partition then you would use:

Code:
title 2.6.20
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-ck1 root=/dev/hda1
HTH

Last edited by bulliver; 08-23-2007 at 04:48 PM.
 
Old 08-23-2007, 05:03 PM   #5
duelle
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
Ok,
so I have to change all grub.conf entries from /boot/<kernelimage> to /<kernelimage> ?

I didn't change the partitions or sth. else in partitioning and so on. How is it possible that this path changes?

Greetz
duelle
 
Old 08-23-2007, 05:35 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
Ok,
so I have to change all grub.conf entries from /boot/<kernelimage> to /<kernelimage> ?
If your kernels are in /boot on a separate partition, yes.

Quote:
I didn't change the partitions or sth. else in partitioning and so on. How is it possible that this path changes?
I am not sure what you think has changed. Again, "root (hd0,0)" tells grub to look for kernels relative to the first partition of the the first HDD (ie: your '/boot' partition). When grub is running nothing is mounted, so "/boot/whatever" is not a valid path, as there is no "/boot", only the files located on (hd0,0) (/dev/hda1).
 
Old 08-23-2007, 05:48 PM   #7
duelle
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
Change from /boot to /

The thing that changed is following:

Until yesterday everything worked well with the /boot/<kernelimage> paths in grub.conf

After installing a new kernel the boot didn't work anymore...and I found out that it from then on only worked with /<kernelimage>
That's what changed...and I wonder how that could happen.

Greetz
duelle
 
Old 08-24-2007, 06:30 AM   #8
duelle
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
Problem solved

At boot-time the /boot is seen as /.
So GRUB tried to find the Kernel-Images in /boot/boot/<kernelimage>
For some reason the Link from /boot to boot was missing.
You can add it easily with:

mount /boot
cd /boot
ln -s . boot

And all problems are gone

Thank you all for the help!

Greetz
duelle
 
  


Reply

Tags
gentoo, grub, kernel


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
2.6 kernel images (all of them) just won't boot Wolf-Ekkehard Debian 7 10-05-2006 04:33 PM
Can Not boot DL380 G3 using Gentoo, lilo and 2.6.9 kernel Atreyou40 Linux - Software 3 06-22-2006 07:49 PM
VPN Client Apani.com Installation nicht möglich Finswimmer Linux - Wireless Networking 17 01-30-2006 10:52 PM
sound will nicht emrum Linux - Newbie 11 02-13-2005 03:01 PM
X-Session soll nach Logout nicht beendet werden qpx94 Linux - Networking 1 03-16-2004 03:48 PM


All times are GMT -5. The time now is 07: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration