Index: [Article Count Order] [Thread]

Date:  Mon, 12 Nov 2007 18:19:06 -0500
From:  "Brian N. Smith" <brian (at mark) nuonce.net>
Subject:  [coba-e:11151] Re: /boot partition
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <013301c82582$6c53da30$1e64a8c0 (at mark) nuonce.net>
References:  <46C82A6F.4010106 (at mark) theanchoragesylvania.com> <C2F2ED1B.1AC7F%webmaster (at mark) muntada.com> <00e601c8253b$a2912ae0$7800000a (at mark) pc11>
X-Mail-Count: 11151

> my /boot is full for 95 %
> I know it is handled before on the list but I cant find the post 
> back
>
> is there some info to how to cleanup the /boot partition

I wouldn't recommend using "rpm -e" to remove it.  Yum installed it, 
and yum should remove it.

First, get your current Kernel version.

uname -r

That would produce something similar to:
2.6.9-55.0.6.ELsmp

Now, get all Kernels installed.

rpm -qa | grep -i kernel | grep -v utils

On my test system, that showed:

kernel-smp-2.6.9-42.0.8.EL
kernel-2.6.9-42.0.10.EL
kernel-smp-2.6.9-42.0.3.EL
kernel-2.6.9-42.0.8.EL
kernel-smp-2.6.9-42.0.10.EL
kernel-smp-devel-2.6.9-55.0.6.EL
kernel-2.6.9-55.0.6.EL
kernel-2.6.9-42.0.3.EL
kernel-smp-2.6.9-55.0.6.EL

Now, remove ALL accept your current version.  Since mine is a "SMP" 
kernel, I usually keep the non SMP version around too.

# This is 1 long command.
yum remove kernel-smp-2.6.9-42.0.8.EL kernel-2.6.9-42.0.10.EL 
kernel-smp-2.6.9-42.0.3.EL kernel-2.6.9-42.0.8.EL 
kernel-smp-2.6.9-42.0.10.EL kernel-2.6.9-42.0.3.EL

I left off the following three:
kernel-2.6.9-55.0.6.EL
kernel-smp-2.6.9-55.0.6.EL
kernel-smp-devel-2.6.9-55.0.6.EL

They are my current kernel versions, and the developement files 
(needed for another project).

After that is done, you should see the free space on /boot go down.

Good luck!
Brian