change kernel I'm using
I want to change the kernel I'm using in /boot
I changed the symlinks: System.map, config and vmlinuz to: Quote:
Code:
bash-3.1# uname -a Quote:
I'm assuming there is more I have to do. My computer can be buggy at times that's why I thought I would try another kernel. Thanks for help. |
Presumably your distro includes all of these kernels in the distro and allows you to choose between them ... which is something you do at boot time, through the boot loader. Not through symlinks.
Exactly how you do this on your distro depends on your distro. But, surely it is documented. |
You need to reboot first in order for the new kernel to be used, but I'm assuming you already knew that. Check /etc/lilo.conf -- it is possible that it is pointing to the /boot/vmlinuz-huge-smp-2.6.21.5-smp file directly instead of the /boot/vmlinuz symlink. If it is, change it in /etc/lilo.conf to point to the huge non-smp kernel and run `/sbin/lilo` as root to write the changes to the MBR (and then reboot).
I would, however, recommend trying the generic-smp kernel instead of the huge kernel, and if that fails, the generic non-smp kernel. The generic kernel is recommended in CHANGES_AND_HINTS.TXT included on your install CD/DVD or at your favourite mirror. Using the generic-smp kernel requires creating an initrd (initial ramdisk) since the filesystems and some hard drive controllers are built as modules instead of built into the kernel. See /boot/README.initrd for more information. For a nice script that usually outputs the correct mkinitrd command, see here. For more detailed information on switching to the generic-smp kernel, search the forums -- this has been discussed tons of times. Here's why I'm suggesting it: Quote:
Quote:
[edit]I should add that you should probably keep the huge kernel as an option in lilo.conf in case you mess up your initrd, so you can still boot into your system. I personally have two kernel stanzas -- one for the huge-smp and generic-smp kernels. The relevant section of my lilo.conf is shown below: Code:
image = /boot/vmlinuz-generic-smp-2.6.21.5-smp |
Quote:
|
I made an initrd with the following:
Code:
root@Slack:/boot# mkinitrd -c -k 2.6.21.5-smp -m ext3 -f ext3 -r /dev/hda5 Warning: LBA32 addressing assumed This is what I wrote in lilo.conf: Quote:
(I am chainloading lilo with grub from my Debian install. Don't think that would make a difference). Will running the generic kernel limit my access to drivers? Quote:
Thanks for help. |
Quote:
Quote:
Quote:
Quote:
Code:
# mkinitrd -c -k 2.6.21.5 -m ext3 -f ext3 -r /dev/hda5 Code:
# ./patch-to-non-smp.sh Code:
# installpkg kernel-headers-2.6.21.5-i386-2.tgz |
Thanks for help.
I found why I wasn't getting the choice of kernels to boot. I had to uncomment #prompt I think I will stick with the generic-smp. I think my problems are probably related to something else besides the kernel. I will probably re-install (upgrade to 12.1) and see if that helps. Can I use the initrd I made on an install of slackware 12.1? |
Quote:
Code:
# mkinitrd -c -k 2.6.24.5-smp -m ext3 -f ext3 -r /dev/hda5 |
All times are GMT -5. The time now is 02:47 AM. |