LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2004, 01:52 PM   #1
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15
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.
 
Old 07-05-2004, 01:58 PM   #2
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
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!

Last edited by linuXBOX; 07-05-2004 at 02:20 PM.
 
Old 07-05-2004, 02:49 PM   #3
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
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,
 
Old 07-05-2004, 06:49 PM   #4
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wierd problem upgrading JaseP Linux - Hardware 2 12-01-2005 09:46 AM
Problem in upgrading kernel sanu Linux - Newbie 9 08-28-2005 06:34 PM
problem upgrading tcl tylerb Linux - Software 1 02-29-2004 04:41 PM
Problem upgrading KDE 3.2.0 Ninja_212 Slackware 2 02-14-2004 11:13 PM
problem after upgrading the kernel juanb Linux - Software 1 03-11-2003 08:34 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration