Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Drive Warning: /hda1 (/boot) is 82% full

Discussion in 'General Discussion' started by seahorse, Nov 9, 2006.

  1. seahorse

    seahorse Well-Known Member

    Joined:
    Jul 3, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    156
    May i know how can i cleanup the boot partition?


    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
    
    uname -r
    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.
     
  2. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    655
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Canada
    Why are you removing the latest kernel and not using it?
    rpm -e kernel-2.4.21-47.0.1.EL
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. seahorse

    seahorse Well-Known Member

    Joined:
    Jul 3, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    156
    i've just upgrade the kernel to: kernel-smp-2.4.21-47.EL


    Anyway, thanks for attempting to help. I've resolved.
    To assist other members that might have such weird problem.
    I've list out how i resolved mine.


    1: rm -f /var/lib/rpm/__*

    2: uname -a
    check your current kernel

    3: rpm -aq | grep kernel-*
    list out kernels in your system and remember those that you do not need

    4: rpm --rebuilddb
    rebuild rpmdb

    5: rpm -e [kernel file to be removed]
    remove those unused kernels to free the /boot/ space
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice