May i know how can i cleanup the boot partition?
rpm -aq | grep kernel
uname -r
i've read a few of the previous posts from here to "rpm -e" to remove unused kernel, but it shows me the following.
i tried remove a few
rpm -e kernel-2.4.21-47.0.1.EL
rpm -e kernel-2.4.21-40.EL
rpm -e kernel-2.4.21-32.0.1.EL
rpm -e kernel-smp-2.4.21-9.EL
cat /etc/grub.conf
Please advise how can i cleanup my boot partition.
Thanks.
rpm -aq | grep kernel
Code:
kernel-smp-2.4.21-47.EL
kernel-smp-2.4.21-32.0.1.EL
kernel-2.4.21-47.0.1.EL
kernel-2.4.21-32.0.1.EL
kernel-2.4.21-37.0.1.EL
kernel-pcmcia-cs-3.1.31-19
kernel-2.4.21-47.EL
kernel-2.4.21-37.EL
kernel-smp-2.4.21-40.EL
kernel-smp-2.4.21-47.0.1.EL
kernel-2.4.21-40.EL
kernel-smp-2.4.21-37.0.1.EL
kernel-smp-2.4.21-37.EL
kernel-2.4.21-9.EL
kernel-smp-2.4.21-9.EL
Code:
2.4.21-32.0.1.ELsmp
i've read a few of the previous posts from here to "rpm -e" to remove unused kernel, but it shows me the following.
i tried remove a few
rpm -e kernel-2.4.21-47.0.1.EL
rpm -e kernel-2.4.21-40.EL
rpm -e kernel-2.4.21-32.0.1.EL
rpm -e kernel-smp-2.4.21-9.EL
Code:
rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30982)
error: cannot open Packages database in /var/lib/rpm
error: package kernel-2.4.21-37.EL is not installed
rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
cat /etc/grub.conf
Code:
# 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/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-47.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-47.0.1.EL ro root=LABEL=/
initrd /initrd-2.4.21-47.0.1.EL.img
title Red Hat Enterprise Linux ES (2.4.21-47.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-47.0.1.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-47.0.1.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-47.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-47.EL ro root=LABEL=/
initrd /initrd-2.4.21-47.EL.img
title Red Hat Enterprise Linux ES (2.4.21-47.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-47.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-47.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-40.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.EL ro root=LABEL=/
initrd /initrd-2.4.21-40.EL.img
title Red Hat Enterprise Linux ES (2.4.21-40.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-40.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-37.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.0.1.EL ro root=LABEL=/
initrd /initrd-2.4.21-37.0.1.EL.img
title Red Hat Enterprise Linux ES (2.4.21-37.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.0.1.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-37.0.1.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-37.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.EL ro root=LABEL=/
initrd /initrd-2.4.21-37.EL.img
title Red Hat Enterprise Linux ES (2.4.21-37.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-37.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-32.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-32.0.1.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-32.0.1.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-32.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-32.0.1.EL ro root=LABEL=/
initrd /initrd-2.4.21-32.0.1.EL.img
title Red Hat Enterprise Linux ES (2.4.21-9.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-9.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-9.ELsmp.img
title Red Hat Enterprise Linux ES-up (2.4.21-9.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-9.EL ro root=LABEL=/
initrd /initrd-2.4.21-9.EL.img
Please advise how can i cleanup my boot partition.
Thanks.