Grub error 15 (file not found)

17,095

Solution 1

I agree to the points about the error by @rMistero. So now the grub boot from mbr and partition boot record but can't load the basic modules because they can't find it on the expected place (/boot/grub) of that partition. So reinstalling grub will fix that and the best solution is to boot to Gentoo the owner OS of grub legacy (Am I right ?), and reinstall grub.
As you have grub2 available run the following commands 1 by 1 from the grub2 prompt.

set UUID=65a90a0d-a651-4215-8552-0c1859ab61dd

search -u $UUID --set=root
linux /kernel-3.10.7-gentoo root=UUID=$UUID
boot

In case it doesn't work give the output of above commands and this one search -u $UUID and search -l main. Also tell the version of Ubuntu and Gentoo, number of storage devices, OS installed on each storage device, whether Windows installed

Solution 2

It looks like you are using grub-legacy on ubuntu and this is the bootloader used at boot.

This error is returned if the specified file name cannot be found, 
but everything else (like the disk/partition info) is OK.
Frequently, the error notes a missing kernel image file. 
Make sure that the file it is referring to exists on your boot partition. 

The following is incorrect, you need to define a partition to boot from (using root parameters). Here root is commented out.

uuid b891774a-0b2d-4ab4-bcfa-23a11a97cae5
#root (hd0,0)

Remove the uuid entry and uncomment root (hd0,0).

If the gentoo kernel is not on /dev/sda1, then you need to change (hd0,0) to the correct partition or copy the kernel there.

If the gentoo kernel is present in /dev/sda1 then you need to confirm what grub is used. Since you are booting on MBR on sdb, I wonder what the BIOS is seeing the drives as. What is the root hdX for the ubuntu, is it (hd1,0) ?

Since you have installed grub2 on Gentoo, you could maybe use it.

 # Gentoo entry in menu.lst ( in Ubuntu)
 title Gentoo
 root (hd0,0)
 kernel /boot/grub/core.img

https://wiki.gentoo.org/wiki/GRUB_Error_Reference#Grub_Error_15

Share:
17,095
Charles
Author by

Charles

Updated on September 18, 2022

Comments

  • Charles
    Charles over 1 year

    I'm trying to fix a problem with a new installation. I'm running this existing distro (Ubuntu) from /dev/sdb with a new OS, Gentoo, installed on /dev/sda. I'm glad I took the trouble of setting these up on different disks because I can't boot into the new OS. All I get is grub error 15 "File not found". It also gives the UUID which I have verified is correct:

    sudo blkid
    /dev/sda1: LABEL="boot" UUID="b891774a-0b2d-4ab4-bcfa-23a11a97cae5" TYPE="ext2" 
    /dev/sda2: UUID="fc34999a-e85d-4c7b-8775-30510eb4c396" TYPE="swap" 
    /dev/sda3: LABEL="main" UUID="65a90a0d-a651-4215-8552-0c1859ab61dd" TYPE="ext4"
    

    The menu.lst (on /dev/sdb) for the new OS is

    title Gentoo Linux 3.10.7-r1
    uuid b891774a-0b2d-4ab4-bcfa-23a11a97cae5
    #root (hd0,0)
    kernel /kernel-3.10.7-gentoo root=UUID=65a90a0d-a651-4215-8552-0c1859ab61dd
    

    I also tried

    kernel /boot/kernel-3.10.7-gentoo root=UUID=65a90a0d-a651-4215-8552-0c1859ab61dd
    

    but since the UUID goes directly to the boot partition I think this is wrong.

    The kernel should be correct; if I mount dev/sda1 and ls I see

    grub  kernel-3.10.7-gentoo
    

    Any ideas what I'm doing wrong? It might be very basic; I've only been using Linux for a few years and never Gentoo except for a few days in a chroot.


    I should mention I also have grub2 installed on dev/sda1 though I don't get as far there: it just shows the grub 'command line'.

  • Charles
    Charles about 10 years
    Didn't work -- I still get error 15.
  • UnX
    UnX about 10 years
    Have you confirmed that the gentoo kernel is installed where you think it is?
  • Charles
    Charles about 10 years
    Yes, see the ls in my question.
  • UnX
    UnX about 10 years
    see answer updated.
  • Charles
    Charles about 10 years
    None of set, search, or linux were commands it could find, and it asked me to load the kernel before attempting to boot. Ubuntu is 14.04 (trusty), Gentoo is 3.10.7. Gentoo is installed on sda (hd0,0), Ubuntu on sdb (hd1,0). There are lots of partitions on sdb but just the basic three (boot, swap, balance) on sda. Windows has never been installed on any drive.
  • Charles
    Charles about 10 years
    I'm not able to run grub2-mkconfig from Ubuntu and I can't boot Gentoo at all.
  • webknjaz
    webknjaz about 10 years
    You can chroot into gentoo from Ubuntu and run it this way. Or perhaps you could run it from LiveDVD or so..
  • Charles
    Charles about 10 years
    From within a chroot, which grub2-mkconfig couldn't find anything. Either I haven't emerged something I need or I'm wrong about having grub2 on Gentoo.
  • webknjaz
    webknjaz about 10 years
    Sure you had to emerge grub:2 first..