LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-10-2006, 05:46 AM   #1
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Rep: Reputation: 30
Kernel Upgrading Question


Hi,

I started using Linux back in January and I have been running my media PC and HLDS ever since with only a few reboots.

[Boring]But then I tried to get TV out working for my graphics card and I stuffed up, and I realised I formatted in a poor way, with /home taking up a large part of my hard drive (when I really want my media drive as the largest). Anyhoo long story short I was going to do a reinstall of all things Linux.[/Boring]

Now, I upgraded my kernel to 2.6.15 and have had no troubles, but I kept 2.4.31 (I think) on the system, and I can boot with that one in LILO. The question is, when I install this time, how can I remove all the old stuff once it is working. I have my install/upgrade thing down pat (with lots of help from here), but I have never removed the old kernel too.

Any help would be apprieciated
 
Old 03-10-2006, 06:22 AM   #2
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
When you remove the /usr/src/linux dir, you are sorta getting rid of some of the old kernal. All you have to do is remove the listing from your grub/lilo config file, then just remove all old stuff to do with the kernel amd your done.
 
Old 03-10-2006, 06:44 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Because Linux is a modular OS, you can simply remove old kernel from /boot (should be named vmlinuz) and its sources from /usr/src (linux-2.4.31).
 
Old 03-11-2006, 03:15 AM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
The above posts are correct.

To remove a kernel from your computer:

1) Delete the appropriate vmlinuz from /boot (and the symlinks, depending on your config)
2) Remove the entry from /etc/lilo.conf
3) Get rid of /lib/modules/Kenrel_version

I would say, though, that it is a good idea (especially when learning) to leave all that stuff alone. You can always boot into the stock 2.4 series kernel when you mess up.
 
  


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
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 07:21 PM
SiS on board sound stops working when upgrading alsa? + kernel question? mr.gizm0 Linux - Software 3 03-21-2005 11:46 AM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 08:00 AM
upgrading the Linux kernel question.. oasisbhrnw99 Linux - Newbie 1 10-26-2004 08:10 PM
Question about upgrading kernel fireforge Linux - Software 2 03-19-2002 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration