Server /boot is full

Discussion in 'Server Operation' started by chief, May 29, 2013.

  1. chief

    chief Member


    Checking my servers and 1 of them - ubuntu 12.04.2 lts running ispconfig is reporting:

    clicking more to investigate it shows /boot at 97% full.
    I sshed in to look and it shows

    what can i delete?
    i know grub, vmlinuz, newest initrd.img... lost+found, memtest, cannot be deleted...

    Also why has my system used boot and left older files inside? I followed ubuntu perfect server to the letter.. odd

    Many thanks in advance

  2. monkfish

    monkfish New Member

    Those are old kernel boot files - when you install/update to a new kernel the old files arent removed. In your boot menu you will see all the kernels listed with latest being default. That way you can, if any unforeseen issues occur with newer kernel, boot to previous one.

    I think you'd be better off using the package manager to remove old/unused kernels rather than delete files individually. You don't want to be removing resuce kernels etc.

    You'd want to be checking your running version first, to ensure you don't remove that kernel. (I know yum prohibits removal of current running kernel not sure about dpkg!)

    uname -r
    make a note of the ouput here

    dpkg --list | grep linux-image
    make a list of previous images EXCLUDING the running one

    Remove old kernels:
    apt-get purge linux-image-x.x.x.x-generic
    Its safe to remove anything older that your running kernel

    You may see a kernel something like "linux-image-generic-lts-quantal" thats your failsafe - dont think you want to remove that.

  3. chief

    chief Member

    Worked a dream


Share This Page