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 09-24-2004, 04:35 AM   #1
therapture
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
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.

 
Old 09-26-2004, 01:58 AM   #2
Dswissmiss
Member
 
Registered: Mar 2004
Location: New York
Distribution: Fedora
Posts: 92

Rep: Reputation: 16
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
 
Old 09-26-2004, 06:22 AM   #3
therapture
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thank You very much. It works. It was spelled wrong. kernel2.6. I had kernel-2.6.
 
Old 02-14-2005, 10:08 AM   #4
shadowbox
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 02-14-2005, 11:07 AM   #5
Joubert79
Member
 
Registered: Jul 2004
Location: Manchester, UK
Distribution: Gentoo
Posts: 46

Rep: Reputation: 15
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.
 
  


Reply


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
Boot error (GRUB GENTOO) linuxnoob2287 Linux - Distributions 4 10-28-2004 04:44 AM
Gentoo GRUB Error usa1234 Linux - Distributions 1 10-15-2004 04:44 PM
Grub Error After Installing Gentoo Crashed_Again Linux - General 3 12-20-2003 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:12 PM.

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
Open Source Consulting | Domain Registration