| View previous topic :: View next topic |
| Author |
Message |
EinsDrei n00b

Joined: 11 Jan 2004 Posts: 65
|
Posted: Sun Jul 18, 2004 10:26 pm Post subject: This gonna be a simple one: how to upgrade kernel |
|
|
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 |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Sun Jul 18, 2004 11:05 pm Post subject: |
|
|
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 |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Sun Jul 18, 2004 11:12 pm Post subject: |
|
|
| 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 |
|
 |
sgarcia Apprentice

Joined: 21 May 2003 Posts: 207 Location: Bakersfield, CA
|
Posted: Mon Jul 19, 2004 3:38 am Post subject: |
|
|
| 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
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 |
|
 |
EinsDrei n00b

Joined: 11 Jan 2004 Posts: 65
|
Posted: Mon Jul 19, 2004 1:10 pm Post subject: |
|
|
| What about if I just do a genkernel all, should do it, shouldn't it? |
|
| Back to top |
|
 |
|