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.

boot drive Almost full????

Discussion in 'General Discussion' started by scapeweb, May 5, 2005.

  1. scapeweb

    scapeweb Well-Known Member

    Joined:
    Aug 16, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    dev/hda1 99M 76M 18M 81% /boot

    is there away for me to delete files in the boot drive or does anyone know why it's getting full?
     
  2. ghv

    ghv Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Usually old kernels fill /boot.


    rpm -q kernel (view)
    uname -r (view running kernel)

    Keep your running kernel (of course) and also a couple of the most recent.
    Remove the older ones with:

    rpm -e [kernel you want to remove]


    [the above assumes kernels were installed with RPM]
     
  3. scapeweb

    scapeweb Well-Known Member

    Joined:
    Aug 16, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    First of all thanks for taking the time in helping me :)

    These are the ones i have...


    ./ System.map-2.4.21-20.EL
    ../ System.map-2.4.21-20.ELsmp
    aquota.user* System.map-2.4.21-27.0.1.EL
    config-2.4.21-20.0.1.EL System.map-2.4.21-27.0.1.ELsmp
    config-2.4.21-20.0.1.ELsmp System.map-2.4.21-27.0.2.EL
    config-2.4.21-20.EL System.map-2.4.21-27.0.2.ELsmp
    config-2.4.21-20.ELsmp System.map-2.4.21-27.0.4.EL
    config-2.4.21-27.0.1.EL System.map-2.4.21-27.0.4.ELsmp
    config-2.4.21-27.0.1.ELsmp System.map-2.4.21-27.EL
    config-2.4.21-27.0.2.EL System.map-2.4.21-27.ELsmp
    config-2.4.21-27.0.2.ELsmp System.map-2.4.21-4.EL
    config-2.4.21-27.0.4.EL System.map-2.4.21-4.ELsmp
    config-2.4.21-27.0.4.ELsmp vmlinux-2.4.21-20.0.1.EL*
    config-2.4.21-27.EL vmlinux-2.4.21-20.0.1.ELsmp*
    config-2.4.21-27.ELsmp vmlinux-2.4.21-20.EL*
    config-2.4.21-4.EL vmlinux-2.4.21-20.ELsmp*
    config-2.4.21-4.ELsmp vmlinux-2.4.21-27.0.1.EL*
    grub/ vmlinux-2.4.21-27.0.1.ELsmp*
    initrd-2.4.21-20.0.1.EL.img vmlinux-2.4.21-27.0.2.EL*
    initrd-2.4.21-20.0.1.ELsmp.img vmlinux-2.4.21-27.0.2.ELsmp*
    initrd-2.4.21-20.EL.img vmlinux-2.4.21-27.0.4.EL*
    initrd-2.4.21-20.ELsmp.img vmlinux-2.4.21-27.0.4.ELsmp*
    initrd-2.4.21-27.0.1.EL.img vmlinux-2.4.21-27.EL*
    initrd-2.4.21-27.0.1.ELsmp.img vmlinux-2.4.21-27.ELsmp*
    initrd-2.4.21-27.0.2.EL.img vmlinux-2.4.21-4.EL*
    initrd-2.4.21-27.0.2.ELsmp.img vmlinux-2.4.21-4.ELsmp*
    initrd-2.4.21-27.0.4.EL.img vmlinuz-2.4.21-20.0.1.EL
    initrd-2.4.21-27.0.4.ELsmp.img vmlinuz-2.4.21-20.0.1.ELsmp
    initrd-2.4.21-27.EL.img vmlinuz-2.4.21-20.EL
    initrd-2.4.21-27.ELsmp.img vmlinuz-2.4.21-20.ELsmp
    initrd-2.4.21-4.EL.img vmlinuz-2.4.21-27.0.1.EL
    initrd-2.4.21-4.ELsmp.img vmlinuz-2.4.21-27.0.1.ELsmp
    kernel.h vmlinuz-2.4.21-27.0.2.EL
    lost+found/ vmlinuz-2.4.21-27.0.2.ELsmp
    message vmlinuz-2.4.21-27.0.4.EL
    message.ja vmlinuz-2.4.21-27.0.4.ELsmp
    quota.user* vmlinuz-2.4.21-27.EL
    System.map@ vmlinuz-2.4.21-27.ELsmp
    System.map-2.4.21-20.0.1.EL vmlinuz-2.4.21-4.EL
    System.map-2.4.21-20.0.1.ELsmp vmlinuz-2.4.21-4.ELsmp

    //This is what you tole me to do
    root@shack [/boot]# rpm -q kernel
    kernel-2.4.21-4.EL
    kernel-2.4.21-20.EL
    kernel-2.4.21-20.0.1.EL
    kernel-2.4.21-27.EL
    kernel-2.4.21-27.0.1.EL
    kernel-2.4.21-27.0.2.EL
    kernel-2.4.21-27.0.4.EL
    root@shack [/boot]# uname -r
    2.4.21-27.0.4.ELsmp


    So can I delete all the other files that don't match this??? Thanks in advance.
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    No. You should use rpm -e like he suggested.

    rpm -e kernel-2.4.21-4.EL kernel-2.4.21-20.EL kernel-2.4.21-20.0.1.EL kernel-2.4.21-27.EL kernel-2.4.21-27.0.1.EL

    all on one line will do the trick.
     
  5. ghv

    ghv Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    No. Do not delete files.
    Doing as casey said above will free up some space and put it well below full.

    I'd leave it at that until you have a better idea of what you are doing.
     
Loading...

Share This Page