LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem upgrading to 2.6.7 (https://www.linuxquestions.org/questions/slackware-14/problem-upgrading-to-2-6-7-a-201407/)

Corallis 07-05-2004 01:52 PM

Problem upgrading to 2.6.7
 
I just finished following the kernel upgrade guide at the top of the page, and I thought everything went fine. I changed my lilo.conf to boot from the old kernel like it said to do, but then when I finished installing it and I rebooted, it was still booting from the old kernel (Slackware.old at lilo boot screen). I went and edited the lilo.conf manually and changed it to boot from vmlinuz as opposed to vmlinuz.old, and Slackware as opposed to Slackware.old. However, when I reboot, it still boots from the old kernel. I made sure I saved the config file, even when I go back in to edit it after rebooting from Slackware.old it says its still trying to boot from the new kernel. Does anyone have any idea why I cant boot from the new kernel? If anyone could help me, Id really appreciate it. Thanks in advance.

linuXBOX 07-05-2004 01:58 PM

Follow shilo's thread, it should work perfectly.

http://www.linuxquestions.org/questi...hreadid=174447

or

http://shilo.is-a-geek.com/slack/kernel14.html

When I built my 2.6.7 kernel yesterday, I did the following.
make xconfig, make bzImage,
cp /usr/src/linux-2.6.7/arch/i386/boot/bzImage /boot/vmlinuz-2.6.7

****note I named my kernel vmlinuz-2.6.7, instead of just vmlinuz. My original kernel kept that name. I just felt it was easier, and keeping the 2.4.26 kernel gave me something to fall back on, which I ended up needing to do anyway!*******

make modules, make modules_install,
cp System.map /boot/System.map-2.6.7
cp .config /boot/config-2.6.7

***Now here is where I decided to back up my old System.map and config
mv /boot/System.map /boot/System.map.old
mv /boot/config /boot/config.old
rm /boot/System.map
rm /boot/config

***Next you have to link your new kernel's system.map and config
ln -s /boot/System.map-2.6.7 /boot/System.map
ln -s /boot/config-2.6.7 /boot/config

Lastly, let lilo know about it.

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdc1
label = linux
read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.7
root = /dev/hdc1
label = 2.6.7
read-only
# Linux bootable partition config ends

Of course replace my information with yours, such as the hard drive and partition it's located on, and its name and label. I kept my old kernel in the case the new one was messed up, which it was, but that was my own darn fault.(I use reiserfs, and didnt include support for it)

Then type lilo -v at your command prompt. Make sure there are no errors! I had many at first because I kept making the labels(names) too long.

And your done! Reboot. And many thanks to shilo for teaching me all this!

Corallis 07-05-2004 02:49 PM

I just followed the first tutorial, and it didnt work. I had the same exact problem. Then I noticed, however, that at the end of your post you said to type "lilo -v". That alone fixed the problem. Thanks for the help. Its odd how none of the other tutorials I found mentioned that I had to do that,

linuXBOX 07-05-2004 06:49 PM

Hurrah, I'm overjoyed! Typing lilo or lilo -v should yield the same results. Adding the -v simply gives you a verbose output, allowing you to see where any errors may exist. But if the shoe fits...


All times are GMT -5. The time now is 10:54 PM.