Need help with Gentoo install

Associate
Joined
20 Sep 2003
Posts
2,361
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 ?
 
Associate
Joined
9 Mar 2004
Posts
2,024
Location
York
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.
 
Associate
Joined
22 Nov 2003
Posts
313
Location
Aberdeen
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:
Associate
OP
Joined
20 Sep 2003
Posts
2,361
Location
Scotland
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 ?
 
Associate
Joined
22 Nov 2003
Posts
313
Location
Aberdeen
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.
 
Associate
Joined
28 Nov 2003
Posts
1,906
Location
/home
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
 
Associate
Joined
28 Nov 2003
Posts
1,906
Location
/home
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