Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Software Updater: Not enough free disk space on disk '/boot'

  1. #11
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,349
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Software Updater: Not enough free disk space on disk '/boot'

    linux-image and linux-image-generic are metapackages pointing at the latest linux-image-something, ensuring you get the updates. Keep them.
    linux-image-3.0 sounds like something old, as everything else is at 3.5. Not sure what it is.

  2. #12
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    6,958
    Distro
    Ubuntu Development Release

    Re: Software Updater: Not enough free disk space on disk '/boot'

    Compare the two listings to df -h that you have provided.

    1) /dev/sda2
    Size Used Avail Used% Mounted on
    229M 189M 29M 88% /boot

    2) /dev/sda
    Size Used Avail Used% Mounted on
    229M 67M 151M 31% /boot
    = job done. You have gone from 29M Available to 151M Available.

    Do not remove anything with Linux 3.5.0-27 or Linux 3.5.0-28. Those are your two latest kernels. We always keep at least one previous kernel to boot into if the present kernel fails to load for some reason. Have you noticed that since you were able to run Update Manager you have got Linux kernel 3.5.0-28 in all its parts.

    You might want to think about increasing the size of sda2. Or using Synaptic Package Manager to trim out excessive previous kernels.

    Regards.
    Last edited by grahammechanical; May 7th, 2013 at 05:11 PM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #13
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 12.04 Precise Pangolin

    Re: Software Updater: Not enough free disk space on disk '/boot'

    I wrote a script to remove all but the two most recent kernels. You can just run it periodically, usually after rebooting following a kernel update. That will keep the /boot directory clean.

    Code:
    wget https://raw.github.com/bcbc/utilities/master/clean_kernel.sh
    bash clean_kernel.sh
    The actual script is a two liner that was originally posted in the ubuntu-devel mailing list (by Kees Cook I believe):
    Code:
    OLD=$(ls -tr /boot/vmlinuz-* | head -n -2 | cut -d- -f2- | awk '{print "linux-image-" $0}')
    if [ -n "$OLD" ]; then sudo apt-get -q remove --purge $OLD; fi
    Last edited by bcbc; May 7th, 2013 at 06:22 PM.

  4. #14
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software Updater: Not enough free disk space on disk '/boot'

    I accidentally deleted linux-image-extra-3.5.0-28-generic and linux-image-generic (it automatically went after I deleted 28, miss-type 27)
    I have already deleted linux-image-3.5.0-27-generic and linux-image-extra-3.5.0-27-generic
    Code:
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    TooFreppaT@TooFreppaT:~$
    how can I get them all back? or have I now broken my operating system? I rarely turn off my computer.

  5. #15
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software Updater: Not enough free disk space on disk '/boot'

    here is everything I did
    Code:
    TooFreppaT@TooFreppaT:~$ uname -r
    3.5.0-28-generic
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    ii  linux-image-3.5.0-27-generic                  3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-27-generic            3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-generic                           3.5.0.28.44                 amd64                       Generic Linux kernel image
    TooFreppaT@TooFreppaT:~$ sudo apt-get remove linux-image-3.5.0-27-generic linux-image-extra-3.5.0-28-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      linux-image-3.5.0-27-generic linux-image-extra-3.5.0-27-generic linux-image-extra-3.5.0-28-generic linux-image-generic
    0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
    After this operation, 275 MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 140305 files and directories currently installed.)
    Removing linux-image-extra-3.5.0-27-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    update-initramfs: Deleting /boot/initrd.img-3.5.0-27-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.5.0-28-generic
    Found initrd image: /boot/initrd.img-3.5.0-28-generic
    Found linux image: /boot/vmlinuz-3.5.0-27-generic
    Found memtest86+ image: /memtest86+.bin
    done
    Removing linux-image-3.5.0-27-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    update-initramfs: Deleting /boot/initrd.img-3.5.0-27-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.5.0-28-generic
    Found initrd image: /boot/initrd.img-3.5.0-28-generic
    Found memtest86+ image: /memtest86+.bin
    done
    Removing linux-image-generic ...
    Removing linux-image-extra-3.5.0-28-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-28-generic /boot/vmlinuz-3.5.0-28-generic
    update-initramfs: Deleting /boot/initrd.img-3.5.0-28-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-28-generic /boot/vmlinuz-3.5.0-28-generic
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.5.0-28-generic
    Found memtest86+ image: /memtest86+.bin
    done
    The link /initrd.img is a damaged link
    Removing symbolic link initrd.img 
     you may need to re-run your boot loader[grub]
    The link /initrd.img.old is a damaged link
    Removing symbolic link initrd.img.old 
     you may need to re-run your boot loader[grub]
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    rc  linux-image-3.5.0-27-generic                  3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-27-generic            3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    rc  linux-image-3.5.0-27-generic                  3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-27-generic            3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    TooFreppaT@TooFreppaT:~$ sudo apt-get purge linux-image-3.5.0-27-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      linux-image-3.5.0-27-generic*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database ... 132633 files and directories currently installed.)
    Removing linux-image-3.5.0-27-generic ...
    Purging configuration files for linux-image-3.5.0-27-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    un  linux-image-3.5.0-27-generic                  <none>                                                  (no description available)
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-27-generic            3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    TooFreppaT@TooFreppaT:~$ sudo apt-get purge linux-image-extra-3.5.0-27-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      linux-image-extra-3.5.0-27-generic*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database ... 132633 files and directories currently installed.)
    Removing linux-image-extra-3.5.0-27-generic ...
    Purging configuration files for linux-image-extra-3.5.0-27-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-27-generic /boot/vmlinuz-3.5.0-27-generic
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    TooFreppaT@TooFreppaT:~$ 

  6. #16
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,349
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Software Updater: Not enough free disk space on disk '/boot'

    Just reinstall them
    Code:
    sudo apt-get install package-you-accidentally-removed
    You're not running them right now, so your computer should still boot. I advise you to keep one old kernel at all times, just in case you break your current one.

  7. #17
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software Updater: Not enough free disk space on disk '/boot'

    okay, I have reinstalled them all again, this is what I have now
    Code:
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    ii  linux-image-3.5.0-27-generic                  3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-27-generic            3.5.0-28.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-generic                           3.5.0.28.44                 amd64                       Generic Linux kernel image
    TooFreppaT@TooFreppaT:~$
    but after when linux-image-generic and linux-image-extra-3.5.0-28-generic both got deleted together it did this
    Code:
    The link /initrd.img is a damaged link
    Removing symbolic link initrd.img
      you may need to re-run your boot loader[grub]
    The link /initrd.img.old is a damaged link
    Removing symbolic link initrd.img.old
      you may need to re-run your boot loader[grub]
    so when I reinstalled them did it fix that aswell? I don't know how to re-run my boot loader[grub]
    Last edited by TooFreppaT; May 8th, 2013 at 04:05 PM.

  8. #18
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software Updater: Not enough free disk space on disk '/boot'

    I have found this
    Code:
    TooFreppaT@TooFreppaT:~$ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image                                   <none>                                                  (no description available)
    un  linux-image-3.0                               <none>                                                  (no description available)
    ii  linux-image-3.5.0-27-generic                  3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-3.5.0-28-generic                  3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-27-generic            3.5.0-27.46                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-extra-3.5.0-28-generic            3.5.0-28.48                 amd64                       Linux kernel image for version 3.5.0 on 64 bit x86 SMP
    ii  linux-image-generic                           3.5.0.28.44                 amd64                       Generic Linux kernel image
    TooFreppaT@TooFreppaT:~$
    since linux-image and linux-image-3.0 are both unknown and not-installed, is it safe and should I remove/purge them?

  9. #19
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software Updater: Not enough free disk space on disk '/boot'

    Quote Originally Posted by grahammechanical View Post
    You might want to think about increasing the size of sda2. Or using Synaptic Package Manager to trim out excessive previous kernels.
    how can I do these things? and does it have anything to do with this?

  10. #20
    Join Date
    May 2009
    Location
    Michigan
    Beans
    176
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Software Updater: Not enough free disk space on disk '/boot'

    I know I'm kinda resurrecting an old thread, but my question is the same as the OP's, and I want to verify something.

    Which of these packages can I safely remove using apt-get remove? Also, does it matter that the dpkg flags on many of them are still "ii" instead of "rc"?

    Code:
    $ dpkg --list 'linux-image*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                 Version                 Architecture            Description
    +++-====================================-=======================-=======================-=============================================================================
    un  linux-image                          <none>                                          (no description available)
    un  linux-image-3.0                      <none>                                          (no description available)
    rc  linux-image-3.8.0-19-generic         3.8.0-19.30             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-3.8.0-21-generic         3.8.0-21.32             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-3.8.0-23-generic         3.8.0-23.34             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-3.8.0-25-generic         3.8.0-25.37             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-3.8.0-26-generic         3.8.0-26.38             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-3.8.0-29-generic         3.8.0-29.42             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    rc  linux-image-extra-3.8.0-19-generic   3.8.0-19.30             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-extra-3.8.0-21-generic   3.8.0-21.32             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-extra-3.8.0-23-generic   3.8.0-23.34             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-extra-3.8.0-25-generic   3.8.0-25.37             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-extra-3.8.0-26-generic   3.8.0-26.38             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-extra-3.8.0-29-generic   3.8.0-29.42             i386                    Linux kernel image for version 3.8.0 on 32 bit x86 SMP
    ii  linux-image-generic                  3.8.0.29.47             i386                    Generic Linux kernel image
    T

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •