Gentoo | Kernel Images plötzlich nicht mehr in /boot, sondern in / ?
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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.
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
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).
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.