View previous topic :: View next topic |
Author |
Message |
dechah n00b
Joined: 18 Jun 2002 Posts: 37 Location: Melbourne
|
Posted: Tue Jul 02, 2002 1:13 am Post subject: Is it possible to swap kernel sources? |
|
|
I recently installed Gentoo with XFS filesystems on a couple of my partitons. I faithfully followed the installation guide and I am currently running the kernel compiled from the "xfs-sources". I recently discovered that the latest "gentoo-sources" has XFS filesystem support included.
If it is not too much trouble, I would prefer to switch to this kernel source.
Can I simply grab the lastest gentoo-sources package, compile it with the correct settings and then replace my existng bzImage in the /boot partition with the new bzImage created from the gentoo-sources package.
I am not experienced enough to know if this is going to break anything in my current Gentoo install. I guess I should just try it and see, but if anyone has already gone down this path before me, I would love to know if there are any tips or tricks I should consider first.
Regards
Dechah _________________ Cheers
Dechah |
|
Back to top |
|
|
FINITE Guru
Joined: 10 May 2002 Posts: 449
|
Posted: Tue Jul 02, 2002 1:29 am Post subject: |
|
|
I would just dive right in I would seriously. It shouldn't hurt anything at all. You would need to update your boot loader to be able to boot your new kernel. Otherwise you should have no problems. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Jul 02, 2002 1:44 am Post subject: |
|
|
One thing to watch out for if you are trying to keep your existing kernel bootable in case of problems is the modules directory. If you try to install two versions of the same kernel version, you may end up overwriting the /lib/modules/ subdirectory and cause yourself some grief. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Tue Jul 02, 2002 2:51 am Post subject: |
|
|
you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Tue Jul 02, 2002 7:36 am Post subject: |
|
|
rommel wrote: | you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone |
Actually I run gentoo so I don't have to leave well enough alone
Here are some easy steps you can follow dechah:
Code: |
su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot
|
_________________ This message self destructed a long time ago. |
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Tue Jul 02, 2002 8:01 am Post subject: |
|
|
AutoBot wrote: | rommel wrote: | you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone |
Actually I run gentoo so I don't have to leave well enough alone
Here are some easy steps you can follow dechah:
Code: |
su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot
|
|
Quote: |
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
|
First edit grub and then umount the /boot _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Tue Jul 02, 2002 8:04 am Post subject: |
|
|
Good call pacman, it's 3 A.M. and I am slipping into a upright coma lol. _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Tue Jul 02, 2002 8:06 am Post subject: |
|
|
Go sleep and gimme your username/password `s root to your linux box :p _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
dechah n00b
Joined: 18 Jun 2002 Posts: 37 Location: Melbourne
|
Posted: Tue Jul 02, 2002 10:42 am Post subject: |
|
|
Thanks for all your assistance people
AutoBot wrote: | rommel wrote: | you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone |
Actually I run gentoo so I don't have to leave well enough alone
Here are some easy steps you can follow dechah:
Code: |
su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot
|
|
_________________ Cheers
Dechah |
|
Back to top |
|
|
|