[WBEL-users] Removing old kernel files

Paul subsolar@subsolar.org
Sat, 21 Aug 2004 23:33:34 -0500


On Sat, 2004-08-21 at 17:55, Ganeshram Iyer wrote:
> Hello Paul,
> Just wanted to confirm what you said. You asked to double check that the 
> grub.conf file is pointing to the new kernel. Well this is my grub.conf 
> file. I am not sureat what I am looking at here. Could you please help?
> 
> [root@misfit grub]# cat grub.conf
> # grub.conf generated by anaconda
> #
> # Note that you do not have to rerun grub after making changes to this file
> # NOTICE:  You have a /boot partition.  This means that
> #          all kernel and initrd paths are relative to /boot/, eg.
> #          root (hd0,0)
> #          kernel /vmlinuz-version ro root=/dev/hda2
> #          initrd /initrd-version.img
> #boot=/dev/hda
> default=0

^ says your default kernel is the first one (starting from 0)

> timeout=10

^ wait 10 seconds before booting.

> splashimage=(hd0,0)/grub/splash.xpm.gz
> password --md5

> title White Box Enterprise Linux (2.4.21-15.0.4.EL)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdc=ide-scsi
>         initrd /initrd-2.4.21-15.0.4.EL.img

^ first kernel (0) in the grub

> title White Box Enterprise Linux (2.4.21-15.0.3.EL)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-15.0.3.EL ro root=LABEL=/ hdc=ide-scsi
>         initrd /initrd-2.4.21-15.0.3.EL.img

^ second kernel (1) in grub

> title White Box Enterprise Linux (2.4.21-15.EL)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/ hdc=ide-scsi
>         initrd /initrd-2.4.21-15.EL.img

^ third kernel (2) in grub

> If I have the right kernel that I want then do I just issue the 
> following commands?
> 
> rpm -e kernel-2.4.21-15.EL
> rpm -e kernel-2.4.21-15.0.3.EL

That should remove the older kernels you don't need.

Technically the grub lines could list other operating systems to boot or
could contain different paramaters passed to the kernel if you needed to
enable/disable some feature sometimes when you boot.

Regards,
Paul

> 
> Thanks
> Ganesh
> Paul wrote:
> 
> >On Wed, 2004-08-18 at 15:24, William Hooper wrote:
> >  
> >
> >>david said:
> >>    
> >>
> >>>Folks
> >>>
> >>>
> >>>Since the original "respin-1", a revised and upgraded Kernel has appeared
> >>> and works just fine.  All my systems have been rebooted and are using
> >>>this new version.  To the best of my knowledge:
> >>>
> >>>Old kernel: 2.4.21-15.EL
> >>>New Kernel: 2.4.21-15.0.4.EL
> >>>      
> >>>
> >>[snip]
> >>    
> >>
> >>>Is there some syntax in "yum" or "rpm" that will do this for me, safely?
> >>>      
> >>>
> >>rpm -e kernel-2.4.21-15.EL
> >>    
> >>
> >
> >Before you do that double check the /boot/grub/grub.conf file to make
> >sure it's pointing to the new kernel.
> >
> >Regards,
> >Paul
> >
> >
> >_______________________________________________
> >Whitebox-users mailing list
> >Whitebox-users@beau.org
> >http://beau.org/mailman/listinfo/whitebox-users
> >
> >  
> >
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users@beau.org
> http://beau.org/mailman/listinfo/whitebox-users
-- 
"Its the Internet, where men are men, women are men and children are FBI
agents...and they're men!" - Unknown