Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
This gonna be a simple one: how to upgrade kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
EinsDrei
n00b
n00b


Joined: 11 Jan 2004
Posts: 65

PostPosted: Sun Jul 18, 2004 10:26 pm    Post subject: This gonna be a simple one: how to upgrade kernel Reply with quote

Well, I do have a 2.6, but it is like 500 years old : /

Now the excellent administration and installation handbooks helped me a lot, and my system is pretty much up to date, safe for the kernel.
This is where I need help. How can I install a new 2.6 kernel, without hurting any of my data (except the former kernel, that is)

Also, I spose you can not "extend" a ReiserFS partition, can you? Cause right now I got 3 primaries, and some free space on the hd, and the only option would be to delete one partition and make it an extended or something. It would be great, if I could just stack the free space to my root partition. Everything else means reinstalling my system, but I guess it isn't possible, like with partition magic back in the fancy windows days-
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sun Jul 18, 2004 11:05 pm    Post subject: Reply with quote

Kernel upgrade is quite simple. First, you must download the new source :
Code:
emerge sync
emerge -vua gentoo-dev-sources

Of course you can change gentoo-dev-sources to whatever your kernel is.
Then you must edit the symlink so that it points to your new sources :
Code:
rm /usr/src/linux
ln -s /usr/src/linux-2.6.7-gentoo-r11 /usr/src/linux

Now you can just copy the .config file from your old kernel in the source directory of the new one :
Code:
cp /usr/src/linux-2.6.3-gentoo-r1/.config /usr/src/linux

Then you build the kernel and copy the appropriate files in /boot :
Code:
make && make modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.7

And you're done.
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sun Jul 18, 2004 11:12 pm    Post subject: Reply with quote

I forgot to tell you that if your kernel filename changed, you have to configure your bootloader accordingly (refer to grub or lilo man pages for details).
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Mon Jul 19, 2004 3:38 am    Post subject: Reply with quote

Quote:
Now you can just copy the .config file from your old kernel in the source directory of the new one :
Code:
Code:

cp /usr/src/linux-2.6.3-gentoo-r1/.config /usr/src/linux

Then you build the kernel and copy the appropriate files in /boot :


That's a pretty streamlined procedure. I'd at least do a
Code:

make oldconfig

before I did the other makes. I'm a little uncomfortable unless I do a full menuconfig and at least look at any changed options, but that's just me.
Back to top
View user's profile Send private message
EinsDrei
n00b
n00b


Joined: 11 Jan 2004
Posts: 65

PostPosted: Mon Jul 19, 2004 1:10 pm    Post subject: Reply with quote

What about if I just do a genkernel all, should do it, shouldn't it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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