LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Gentoo Error can't boot with Grub (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-error-cant-boot-with-grub-234650/)

therapture 09-24-2004 04:35 AM

Gentoo Error can't boot with Grub
 
Hey Guys I keep getting an error when trying to boot into grub. It says Error 15 File not found.

I found this information, but still need you help:

"Based on the information you've provided, it sounds like the filename of the kernel you've told grub to look for (kernel-KV) is completely different to what it's actually called (kernel-2.4.20-gentoo-r7) or vice versa. I'd boot of the LiveCD again, mount the partition that contains the /boot directory and check that you've told grub to look for the right kernel."

How do I mount my boot files system? I mounted: mount -t ext2 /dev/hda1 /mnt
and went into it, but I can't use (ls) command to list anything. I have no idea if the kernel file is in there.

BTW I had no errors in the installition process. So there wasn't anything that I recall skipping.

:Pengy:

Dswissmiss 09-26-2004 01:58 AM

Ok, so I'm assuming you don't have a working distro and are booting from the gentoo live cd:

first mount your partitions:

home : mount /dev/hda? /mnt/gentoo
boot : mount /dev/hda? /mnt/gentoo/boot
proc : mount -t proc none /mnt/gentoo/proc

then do:

chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile

now I think it's:

nano -w /mnt/gentoo/boot/grub/grub.conf (its basically /boot/grub/grub.conf)

and check whether you named the kernel correctly. It has to be exactly how it appears in /usr/src/linux

if not, just post your grub.conf here.

hope it helps
Dswissmiss

therapture 09-26-2004 06:22 AM

Thank You very much. It works. It was spelled wrong. kernel2.6. I had kernel-2.6.

shadowbox 02-14-2005 10:08 AM

Howdy,

Sorry to revive such a long-dormant problem, but this one is exactly the problem I'm having, and I think it's the same issue, where I've mis-typed something wrong.

However, when I do the chroot /mnt/gentoo /bin/bash, I get "chroot: cannot run command '/bin/bash' : No such file or directory.

What have I done wrong? Can anyone help?

Thanks,
shadowbox

Joubert79 02-14-2005 11:07 AM

If grub is installed and you just want to edit the config file then you needn't chroot in, just boot a livecd and mount the boot partition somewhere and edit the file. For example, my boot partition is hda1 so I make a directory to mount to, mount my boot device there (as read-writable) and edit the grub config file:

mkdir /mnt/hda1
mount -o rw /dev/hda1 /mnt/hda1
nano /mnt/hda1/grub/menu.lst

Look in your boot partition ("ls /mnt/hda1", say) to see what the correct filenames should be in your grub config file. The important filename is the one probably containing "vmlinuz", or so. Maybe an initrd file too.

If you've any problems, perhaps post your grub config file and a listing of your boot partition.

Chris.

PS. If you have a separate boot partition from your root partition, then you might check that the boot partition was mounted (at /boot on the root partition) and was writable at the time grub installed, otherwise perhaps the grub config files sit in /boot of your root partition, rather than on the boot partition itself, in which case grub will not find them at boot time.


All times are GMT -5. The time now is 02:24 PM.