On Thu, Aug 21, 2003 at 08:54:09AM -0500, Otto Haliburton wrote:
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:redhat-list-
> > [EMAIL PROTECTED] On Behalf Of Asbjorn Hoiland Aarrestad
> > Sent: Thursday, August 21, 2003 4:18 AM
> > To: [EMAIL PROTECTED]
> > Subject: kernel update and grub
> >
> > hi!
> >
> > Just got word about the new kernel update, but when looking in my logs
> > for the update, I just see an errormessage about "not enough space on
> > /boot". This most probably because I have been installing a couple of
> > kernel updates automatically using up2date, and never deleted
> > anything.
> >
> > I have redhat 7.3 and grub installed
> >
> >
> > How do I (commandline) delete the old kernels from grub?
> >
> >
> > - asbj?rn
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:[EMAIL PROTECTED]
> > https://www.redhat.com/mailman/listinfo/redhat-list
>
> You need to delete the old kernels from /boot. You can also delete them
> from /usr/src.
> 1) Look at the grub.conf file in /etc. The directory is in /boot (you
> can go there) also. The symbolic link to the file is in /etc.
> Determine which kernels you want to delete. Delete them from grub.conf
> and from /boot. Remember to look at the default pointer and update it
> to the new default in grub.conf. You can also go to /usr/src and delete
> the old kernel directories. Be sure and make yourself a boot floppy in
> case you make a mistake. Good luck!!!!
A safer method is to delete the old kernels via rpm. For example my
system shows:
rpm -qa | grep kernel
kernel-pcmcia-cs-3.1.31-13
kernel-source-2.4.20-20.9
kernel-2.4.20-19.9
kernel-2.4.20-20.9
There is one old kernel still installed: kernel-2.4.20-19.9. To delete
it I would run:
rpm -e kernel-2.4.20-19.9
I generally keep one back-level kernel "just in case"; thus the output
above. It appears that when kernel source is installed the older version
is removed. I am not sure why, but although I have never deleted any
only the latest one ever shows up.
--
Robert C. Paulsen, Jr.
[EMAIL PROTECTED]
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list