The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

hda1 /boot 83% full

Discussion in 'General Discussion' started by jimmshepard, Oct 25, 2005.

  1. jimmshepard

    jimmshepard Member

    Joined:
    Aug 14, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago
    I have been getting the disk near full warning for my boot partition. Looking at the directory the only thing that is taking up the room is:

    config-2.4.21.27.0.1.EL (and a series of files similar to this)
    initrd-2.4.21-27.0.1.EL.img (and a series of files similar to this)
    System.map-2.4.21-27.0.1.EL (and a series of files similar to this)
    vmlinux-2.4.21-27.0.1.EL (and a series of files similar to this)
    vmlinuz-2.4.21-32.0.1.IL (and a series of files similar to this)

    I'm still learning linux so can anyone tell me if all these files are necessary? Can I delete some of these? Or is there a way I should make hda1 larger?

    Thanks for the help in advance...
     
  2. Blue|Fusion

    Blue|Fusion Well-Known Member

    Joined:
    Sep 12, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    What do you get with the command rpm -qa | grep kernel ? And what kernel are you currently running ( uname -r )?
     
  3. jimmshepard

    jimmshepard Member

    Joined:
    Aug 14, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago
    rpm -qa | grep kernel gives me:

    kernel-smp-2.4.21-32.0.1.EL
    kernel-smp-2.4.21-27.0.2.EL
    kernel-2.4.21-27.0.2.EL
    kernel-2.4.21-32.EL
    kernel-2.4.21-32.0.1.EL
    kernel-2.4.21-4.EL
    kernel-smp-2.4.21-27.0.1.EL
    kernel-smp-2.4.21-37.EL
    kernel-smp-2.4.21-4.EL
    kernel-pcmcia-cs-3.1.31-13
    kernel-2.4.21-27.0.1.EL
    kernel-smp-2.4.21-27.0.4.EL
    kernel-smp-2.4.21-32.EL
    kernel-2.4.21-27.0.4.EL
    kernel-2.4.21-37.EL


    uname -r gives me:

    2.4.21-37.ELsmp
     
  4. Blue|Fusion

    Blue|Fusion Well-Known Member

    Joined:
    Sep 12, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Do the following:

    Code:
    rpm -e \
    kernel-smp-2.4.21-32.0.1.EL \
    kernel-smp-2.4.21-27.0.2.EL \
    kernel-2.4.21-27.0.2.EL \
    kernel-2.4.21-32.EL \
    kernel-2.4.21-32.0.1.EL \
    kernel-2.4.21-4.EL \
    kernel-smp-2.4.21-27.0.1.EL \
    kernel-smp-2.4.21-4.EL \
    kernel-pcmcia-cs-3.1.31-13 \
    kernel-2.4.21-27.0.1.EL \
    kernel-smp-2.4.21-27.0.4.EL \
    kernel-smp-2.4.21-32.EL \
    kernel-2.4.21-27.0.4.EL \
    kernel-2.4.21-37.EL
    The above command will remove the old and unused kernels from /boot, leaving only kernel-smp-2.4.21-37.EL package left (the kernel that you're currently using).
     
  5. Aldweb

    Aldweb Well-Known Member

    Joined:
    Feb 18, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Blue|Fusion,

    Does have some risk if gives those commands?
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes, you can potentially make your server unbootable. You should take great care when cleaning up old kernels to be sure that you do not remove anything that's required for the running system.
     
Loading...

Share This Page