LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-20-2003, 06:51 AM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Grub Error After Installing Gentoo


I've always been pampered by RedHat because it took care of grub. Now I'm having issues.

This is basically what I did:

I emerged grub and ran the grub command. I then did:

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

I then edited /boot/grub/grub.conf so it looked like this:

default 0
timeout 20
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r9 root=/dev/hda3
initrd (hd0,0)/boot/initrd-2.4.20-gentoo-r9

When I reboot the machine it goes past Grub stage 1.5 and haults saying:

Grub
Error 2

It doesn't give any error messages other then Error 2. I did a google search for what exactly Error 2 means and their seems to be a lot of different things it could be.

The boot partition is on /dev/hda1 by the way.

Any idea what the problem is here?
 
Old 12-20-2003, 09:43 AM   #2
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Hmmm, I do see something strange. Your root is /dev/hda3 and your boot is /dev/hda1. That's fine, I have an similer setup. But Shoulden't grub.conf look like :

Code:
default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)
kernel (hd0,0)/kernel-2.4.20-gentoo-r9 root=/dev/hda3
initrd (hd0,0)/initrd-2.4.20-gentoo-r9
cos "/boot/<bla>" could be the path once you have actually booted and mounted the boot partition. If you suply /dev/hda1 as root to grub, you should leave "/boot" out.
 
Old 12-20-2003, 04:39 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
No that doesn't work either.
 
Old 12-20-2003, 06:02 PM   #4
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Leave out the splash images entery and see what happens.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Error can't boot with Grub therapture Linux - Distributions 4 02-14-2005 12:07 PM
Boot error (GRUB GENTOO) linuxnoob2287 Linux - Distributions 4 10-28-2004 05:44 AM
Gentoo GRUB Error usa1234 Linux - Distributions 1 10-15-2004 05:44 PM
Problems installing Gentoo / grub not loading wiredj Linux - Newbie 7 04-11-2004 06:17 PM
Gentoo Grub Error (Fresh Install) dkaplowitz Linux - Distributions 6 11-21-2003 03:55 PM


All times are GMT -5. The time now is 10:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration