LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2003, 11:22 AM   #1
hildog
Member
 
Registered: Sep 2003
Location: New York, NY
Distribution: Red Hat 9
Posts: 33

Rep: Reputation: 15
GRUB question - removing old kernel ?


I've got a dual-boot RH9/WinXP laptop that I recently set up (my first Linux install ever). I used the install CDs that came with the RH9 Bible which didn't contain the latest kernel...one of the first things that came up after installation was a message that told me to update the kernel to 2.4.20, so I did. Now, when the GRUB screen comes up, and I choose which OS to boot into, I get 3 choices: WinXP, 2.4.20, and 2.4.8. Since I barely know what I'm doing in Linux anyway, I have no real reason to need to boot into Linux using an earlier kernel, so I'd like to remove the old kernel, but I have no idea how to go about doing it.
 
Old 09-30-2003, 12:10 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
It's usually a "Good Thing" (tm) to have a couple kernels on your system. In case something happens to one of the files that the newer one uses, you will (hopefully) be able to boot to the older kernel. Once you get booted to the older kernel, you can fix the newer kernel.

If you really want to delete it, there are several files you would need to edit / delete...

Edit /boot/grub/grub.conf... Delete the enty pointing to the old kernel. Depending on the order they are listed in, you might need to change your "default=" line to point to the correct entry that you want GRUB to boot by default. Be sure to start counting with 0.

In /boot/ delete the following files that have the 2.4.8 version number...
-- config (the config file RH used to build the kernel)
-- initrd (the INITial RamDisk used to boot the system)
-- module-info
-- System.map
-- vmlinux (uncompressed kernel)
-- vmlinuz (compressed kernel)

In /lib/modules/, delete the directory with the 2.4.8 version number.

After that, the old kernel will be gone.
 
  


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
Removing Grub Synesthesia Linux - General 6 05-28-2005 01:49 PM
removing GRUB Ckret_01 Linux - Newbie 3 05-19-2004 04:06 PM
removing grub joe_hoax Linux - General 1 11-30-2003 11:37 AM
apt-get, Kernel, and grub question neozero62 Linux - Newbie 2 11-01-2003 10:57 PM
Removing grub fat_anis Linux - Software 2 07-22-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration