[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhn-users] Out of space kernel upgrade files to delete



George Cashman wrote:

I need to update my Kernel but /boot does not have enough space. I'm sure that some files in this directory are old and not needed but would like some recommendations.

Is it safe to delete files below since my current kernel is 2.4.18-17.7.x

Yes, it should be but remove the old kernels using rpm; NOT by just deleting the files from boot.

To find the installed kernel rpms which are installed use the command.

[root jsa ~]# rpm -qa |grep kernel |sort
glibc-kernheaders-2.4-7.20
kernel-2.4.18-19.8.0
kernel-2.4.18-24.8.0
kernel-debug-2.4.18-19.8.0
kernel-debug-2.4.18-24.8.0
kernel-doc-2.4.18-24.8.0
kernel-pcmcia-cs-3.1.31-9
kernel-smp-2.4.18-19.8.0
kernel-smp-2.4.18-24.8.0
kernel-source-2.4.18-24.8.0
kernel-uml-2.4.18-19.8.0
kernel-utils-2.4-8.28

(example output from on of my systems).

You'll want to remove the "duplicates".
Note that the list may contain some packages with older kernel version numbers that
do not get removed (bcs there is no newer replacement). Only remove those with
duplicate names but newer version numbers.
(given the example output above that would be...)


# rpm -e kernel-2.4.18-19.8.0 kernel-debug-2.4.18-19.8.0 kernel-smp-2.4.19-18.8.0

There should now be room on the /boot partition for the kernel update
and reference to the removed kernel pkgs in /boot/grub/grub.conf will have been removed.


BE CAREFUL. This is perfectly safe BUT be careful to type carefully and check your self.

Removing the old kernel packages does not require a reboot because you should
already have been booting the newer kernel.


RParr, RHCE
Temporal Arts





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]