Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new to gentoo, little problem [re-opened] new error
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bodhe
n00b
n00b


Joined: 11 Jan 2006
Posts: 47

PostPosted: Fri Jan 13, 2006 3:00 am    Post subject: Reply with quote

jmbsvicetto wrote:
Hi.

That means you forgot to mount /boot before installing GRUB and copying the kernel files. Do the following:
Code:
# mount /dev/hda3 /mnt/gentoo
# mount -t proc proc /mnt/gentoo/proc
# mkdir -p /mnt/gentoo/tmp/boot
# cp -Ra /mnt/gentoo/boot /mnt/gentoo/tmp/boot
# rm -R /mnt/gentoo/boot/*
# mount /dev/hda1 /mnt/gentoo/boot
# cp -Ra /mnt/gentoo/tmp/boot/* /mnt/gentoo/boot
# rm -R /mnt/gentoo/tmp/boot
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# cat /proc/mounts /etc/mtab
# emerge -av grub
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
# exit

That should help you get your way.


i got that all taken care of, just needing some help on modules
Back to top
View user's profile Send private message
rodolfo
n00b
n00b


Joined: 28 Dec 2005
Posts: 18
Location: Bulacan, Philippines

PostPosted: Fri Jan 13, 2006 9:10 am    Post subject: Reply with quote

It seems to me that you have mixed the bootstrapping procedures for genkernel configured kernel
Code:
genkernel all
and that of a manual configured kernel (compiling the kernel yourself using make).

I think a genkernel created kernel can not be used directly, you must have an initrd entry in grub.conf. I suggest you start over again from chrooting http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=6 to http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=10. DO NOT DO 7.c. Default: Manual Configuration, its harder to bootstrap. DO 7.d. Alternative: Using genkernel, it's a lot easier to bootstrap (from my experience). Also check-out Code Listing 4: grub.conf for genkernel users.

Once you've gotten the hang of installing gentoo, maybe you can start experimenting with Manual Configuration.
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Fri Jan 13, 2006 10:17 am    Post subject: Reply with quote

i hope rodolfo helped you with your problem, i just want to correct some common mistakes in this thread, since they confuse a lot of people over and over again. i think it's important to understand these things, since then life is easier when grub-problems arise.


1:
adsmith wrote:
Code:

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

should be
Code:

splashimage=(hd0,0)/grub/splash.xpm.gz

Since hd0,0 is already /boot

on all gentoo installations i have seen there is the symlink "boot -> ." in /boot. so it doesn't matter if you access your splashimage via "splashimage=(hd0,0)/grub/splash.xpm.gz" or "splashimage=(hd0,0)/boot/grub/splash.xpm.gz" or "splashimage=(hd0,0)/boot/boot/boot/boot/boot/grub/splash.xpm.gz". a misplaced "/boot" is almost never the cause for a grub-problem (unless someone deleted the symlink). since i understood that i needed only half the time to find the real cause of my grub-problems.


2:
Gergan Penkov wrote:
Quote:
title gentoo-2.6.14-r3
root (hd0,2)
kernel (hd0,0)/kernel-2.6.14-gentoo-r3 root=/dev/hda3

I have the same setup for the first 3 partitions the root option setups the real root (i think it was with reiserfs, that you had to do some magic) and the (hd0,0) is the partition where the /boot resides. makes sense and works :)

that may work, but it's awfully wrong. as already stated once in this thread "root (hdx,z)" specifies the root for grub, that is the partition where grub is installed. if you set that correctly you don't have to specify the partition for the kernel-images, grub will look for the kernel in its (grub's) root. it would look like that:
Code:
title gentoo-2.6.14-r3
root (hd0,0)
kernel /kernel-2.6.14-gentoo-r3 root=/dev/hda3

another working possibility would be to specify the partition where the kernel can be found, then you don't have to set root:
Code:
title gentoo-2.6.14-r3
kernel (hd0,0)/kernel-2.6.14-gentoo-r3 root=/dev/hda3

most people set root and specify the partition where the kernel-image resides, but these two values should only differ if your kernel isn't on the same partition as your grub.
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Fri Jan 13, 2006 9:22 pm    Post subject: Reply with quote

Well it seems you are right, but to find this I have had to read 3 documents, the official grub man and info pages are plain simple mess, as there are so much examples in the info pages, which are misleading.
Hm, probably I should correct this here, as it seems in this case the partition is mounted from grub, which is not what we want:)
Another day - another thing learned:)
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum