kernel upgrades

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
So just got another upgrade from yum for fedora core3
So now grubs shows 3 instances of fedora, one for the original install and one for first kernel update, and one for the second kernel update, plus one for win xp.
So this is kind of a dumb question I guess but do you guys let these selections just keep piling up. Or after your sure its stable, do you start removing old entries from grub or what.
Have only been playing with linux a couple months and I am up to 4 selections now on boot menu :)
 

TGS

Golden Member
May 3, 2005
1,849
0
0
Delete the old entires as you upgrade. Just make sure you test the new kernels out for stability before you wax the entries.

I usually in a dual boot circumstance, have

Linux (new kernel)
Linux (stable)
Windows

Forgot to mention, to clean out your old kernel sources when you are done with them.
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
so I do this simply by deleting that particular entry in grub.conf?
Are there no old kernel files that need cleaning up or does linux take care of that?
 

TGS

Golden Member
May 3, 2005
1,849
0
0
Yes deleting the entry in the grub.conf only gets rid of the reference for booting. You can still boot from from the old kernel later, unless you delete the old sysmap and kernel in /boot. You should also be able to delete the older sources from /usr/src/<older version>

There should be a symlink like /usr/src/linux that points to the current sources. If you did an rpm upgrade you should have that symlink update to the newer kernel already.
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
Originally posted by: TGS
Yes deleting the entry in the grub.conf only gets rid of the reference for booting. You can still boot from from the old kernel later, unless you delete the old sysmap and kernel in /boot. You should also be able to delete the older sources from /usr/src/<older version>

There should be a symlink like /usr/src/linux that points to the current sources. If you did an rpm upgrade you should have that symlink update to the newer kernel already.


ok, inside /boot I have config-original ver
initrd-original ver
systemmap-original ver
vmlinuz-original ver


all of the above first kernel update
and finally all of the above 2nd kernel update.

inside of /usr/src there are no files.

so if I delete the reference in grub to original and delete the config-orig,initrd-orig,system map-orig, and vmlinuz-orig.
that would be safe and all the cleanup that is necessary?
last 2 updates seem stable by the way.

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If you have the old kernels installed you probably still have the old kernel packages in your RPM database, remove them and it'll remove the files and possibly the grub entries.