LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   grub Error 15: File not found (https://www.linuxquestions.org/questions/debian-26/grub-error-15-file-not-found-598450/)

lowbrow 11-09-2007 05:26 PM

grub Error 15: File not found
 
Hi All,

First time I've installed a new kernel. I've configured my new kernel and have run the following commands:

1) make dep

2) make-kpkg clean

3) make-kpkg kernel-image

As expected, there was a new .dep package installed:

/usr/src/linux-image-2.6.23_2.6.23-10.00.Custom_i386.deb

I then installed the new kernel:

dpkg -i linux-image-2.6.23_2.6.23-10.00.Custom_i386.deb

That went fine and it edited my grub/menu.lst file adding these two expected new entries:

title new kernel 2.6.23
root (hd0,0)
kernel /boot/vmlinuz-2.6.23 root=UUID=afc14bc4-95c5-4fab-a57c-6121fa4b851a ro quiet splash
quiet

title new kernel 2.6.23 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23 root=UUID=afc14bc4-95c5-4fab-a57c-6121fa4b851a ro single

I verified that the kernel can be found via the above grub "kernel" entries:

root@darklight:/boot# ls vmlinuz-2.6.23
vmlinuz-2.6.23

I rebooted, selected my new kernel and got:

"Error 15: File not found"

I then created a new initrd.img file:

mkinitramfs -o /initrd.img-2.6.23

Verified its presence:

root@darklight:/# ls /initrd.img-2.6.23
/initrd.img-2.6.23

and lastly, added the new path to the "initrd" line:

title new kernel 2.6.23
root (hd0,0)
kernel /boot/vmlinuz-2.6.23 root=UUID=afc14bc4-95c5-4fab-a57c-6121fa4b851a ro quiet splash
initrd /initrd.img-2.6.23
quiet

title new kernel 2.6.23 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23 root=UUID=afc14bc4-95c5-4fab-a57c-6121fa4b851a ro single
initrd /initrd.img-2.6.23

I reboot, select my new kernel and get the same Error 15: File not found.

I'm sure this is a simple fix but I'm just not seeing it.

Help Much Appreciated,

lb

aquaboot 11-09-2007 07:28 PM

..........

masinick 11-10-2007 06:52 PM

Suggestions
 
One thing I would do is to make sure to keep both the vmlinuz image and the initrd image in the same location. You can put them anywhere you want, but common convention is to keep both in the /boot directory. I would start there.

Secondly, to do a bit more diagnostic work, you can use the e and c commands in GRUB to edit your entry and to enter GRUB command line mode, respectively.

In GRUB edit mode, what you could try is to call up GRUB and instead of booting with the entry and getting the file error message, instead use e and edit the entry. Scroll to the kernel line, type e, Enter, then remove part of the file spec for the kernel image and use the Tab key to search for what is actually out there.

Do the same thing with the initrd image.

Also, in your ls command examples, it was difficult to figure out which directory you were in at the time you verified the presence of the kernel and the init file. Hunt around in the directories, either with ls or grub and you may find that things are not located where you thought they were. That is the most likely scenario without actually having access to your system. Using ls and the GRUB e and c commands judiciously ought to help you discover which entries are not matching up and to get that resolved. Once you are there, you are home free.

Good luck finding out where the real problem lies. Let us know what you find out.


All times are GMT -5. The time now is 07:14 AM.