Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 01-16-2005, 08:46 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2005
Location: PA
Posts: 5
OS: XP, Linux


deleting old kernel

I just installed Redhat 9 and updated the kernel. I'm yet not that familiar w/ the Linux OS in general, and I'm still playing around w/ it. Anyway, how do you delete an old kernel and have it not show up on the GRUB menu? I know that you're supposed to keep an old one for backup, but I'm just a little short on hard drive space right now (I only have a 30 GB hard drive, and I'm running a duel boot w/ XP and Linux). Thanks, if anyone can help.
icewolf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-16-2005, 09:37 PM   #2 (permalink)
Asst. Manager, Alternative Computing Forums
 
batty_professor's Avatar
 
Join Date: Jul 2004
Location: Hooterville Il 45 mi. east of St. Louis mo
Posts: 2,608
OS: Fedora Core 5 for now


Send a message via AIM to batty_professor Send a message via MSN to batty_professor Send a message via Yahoo to batty_professor
I myself have never updated a kernel in any of my systems. I know if I were to attempt such, rather than have two kernels I would update the system kernel. Instead of using rpm-i use rpm-u to update. Also the kernel rpm is maybe 100 mb or so, I don't see, if you already have it installed, that there's so much to gain. or did you actually make it a second Linux installation? If you look at your drive partitions, are there two root partitions?

Two Linux root partitions that is.
__________________
It's better to know me and not need me than to need me and not know me. B.

While users are never under any obligation, if you feel the urge please feel free to visit our donation page. Every little bit helps.
And we thank you for your support.

Microsoft free Registered Linux user 397458
batty_professor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-16-2005, 10:48 PM   #3 (permalink)
Registered User
 
Join Date: Jan 2005
Location: PA
Posts: 5
OS: XP, Linux


I'm pretty sure that I only have one Linux root partition.

What I did was, once I loaded up RedHat, I ran up2date and downloaded a newer version of the RedHat kernel. GRUB now lists three options when I boot up, which are RedHat 9 (2.4.22-31.9), and RedHat 9 (2.4.20-8), and DOS.

Would I be advised to get rid of the older kernel if I really want to save hard drive space? If so, how? Thanks!

Last edited by icewolf; 01-16-2005 at 10:50 PM.
icewolf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-17-2005, 11:19 AM   #4 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Chicago burbs
Posts: 2,194
OS: Gentoo Linux, CentOS, OS X

My System

The files required by the kernel only take about 3 - 4MB of space. Deleteing them isn't going to help you very much. However, if you wish to delete the files anyway, here's what you should do.

If you haven't rebooted since your last kernel update, do so now, BEFORE you do anything. Also, keep in mind that if you make a mistake with this, you run the risk of your computer no longer booting up. Make sure you have a bootable CD/Floppy to use for emergency purposes. Most update tools that are provided by the company which makes the distro will usually delete the old kernels for you as well as properly update your GRUB config. If this is the case, then you can ignore everything.

Open a Terminal window and use "su" to become root. Then type "cd /boot". Then use "ls" to see what files are in this directory. Also, use "uname -a" which will tell you which kernel you're currently using.

In my case, this is what I have:

Quote:
skie@dragon:/boot> uname -a
Linux dragon 2.6.5-7.111.19-default #1 Fri Dec 10 15:10:58 UTC 2004 i686 athlon i386 GNU/Linux
This tells me my kernel is "2.6.5-7.111.19-default". In my /boot, i have the following files:

Quote:
initrd-2.6.5-7.111.19-default
vmlinuz-2.6.5-7.111.19-default
System.map-2.6.5-7.111.19-default
These are the files that are currently being used. Any others can be deleted. If you want to be safe, you can move or rename these files. After rebooting, if everything still works, you can then delete them. You'll know that you messed up when the computer doesn't boot into linux.

To edit your GRUB config, type "cd /boot/grub". In here, you'll find a file called menu.lst (that's a lowercase L, not a number 1). Use your favorite text editor to edit this file. I'll show you how to do it using PICO. Please make a backup of this file before you make changes. If you screw up this file, you run the risk of not being able to boot to both windows or linux.

Type "pico menu.lst". Locate the group of lines that referr to the old kernel. Just use the DEL key to delete each line. I'm not sure of how to delete a whole line at a time in PICO as I don't use it often, but it's the easier command line text editor, so we'll use this. Once you've deleted the lines in question, hit the following key combo's: CTRL+O and then CTRL+X. This will save your changes, then exit.

After this, reboot to make sure you've done everything properly. As long as you can boot up, you're fine.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-17-2005, 01:02 PM   #5 (permalink)
Registered User
 
Join Date: Jan 2005
Location: PA
Posts: 5
OS: XP, Linux


That was very helpful! Thank you so much!!!
icewolf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 03:13 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85