Need help with Gentoo install

Associate
Joined
20 Sep 2003
Posts
2,378
Location
Scotland
Im installing gentoo for the first time and i have hit my first probliem

I have just compiled my kernal and the manual says to copy my kernal to /boot but i need to know what my kernal version is. How do i do that ?
 
you dont really need to know the kernel version, just know the name you give the kernel in the /boot folder. It is usually best to name the kernel so that if you have several in there you know which is which. Its only a reference for grub though.

also "uname -a" won't work, because that will give the name of the kernel that he is installing from, not the kernel he has just compiled.
 
Typing
Code:
make install
works here (copies the kernel as /boot/vmlinuz-kernelversion with a symlink @ /boot/vmlinuz). It will complain that no bootloader has been installed, but it will copy the kernel anyway.
 
Last edited:
i have another small problem, since posting this question i have restarted my linux box and it wouldnt boot so i booted of the live cd again. I am now at the install screen with and it says


livecd root #


where as before it said


livecd linux #


now it wont recognise my commands, how can i get back tot the stage i was at ?
 
DezUk said:
i have another small problem, since posting this question i have restarted my linux box and it wouldnt boot so i booted of the live cd again. I am now at the install screen with and it says


livecd root #


where as before it said


livecd linux #


now it wont recognise my commands, how can i get back tot the stage i was at ?

Repeat the chroot step and cd to /usr/src/linux.
 
DezUk said:
...

now it wont recognise my commands, how can i get back tot the stage i was at ?

Mount your partitions again, eg:

Code:
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount /dev/hda4 /mnt/gentoo/home

mount -t proc none /mnt/gentoo/proc

and, as suggested, repeat the chroot step:

Code:
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
 
right if i do


make install



i get this error



make: *** No rule to make target `install`. Stop
 
DezUk said:
right if i do

make install

i get this error

make: *** No rule to make target `install`. Stop

Probably best to follow the instructions for now:

Make sure /boot is mounted (probably already is)

Code:
mount /boot

Make sure you are in the right place:

Code:
 cd /usr/src/linux

Copy the newly compiled kernel to your /boot partition, example

Code:
cp arch/x86_64/boot/bzImage /boot/kernel-2.6

That's for an amd64 machine (x86_64) so it may be different depending on your cpu. You can name it kernel-2.6 or gentoo-kernel-2.6-squiggle if you like. Just remember what you've named it when it comes to writing your grub.conf or lilo.conf (i.e. be consistent) :)
 
Back
Top Bottom