Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: /boot is 100% full, unable to remove any kernel images

  1. #1
    Join Date
    Dec 2013
    Beans
    11

    Lightbulb /boot is 100% full, unable to remove any kernel images

    I have Ubuntu 12.04 with a boot partition. I had a friend set it up as I am a total novice at this. After routine package updates over the past 6 six months, they fail now. I read through the forum and realize I need to delete old kernel images that have been accumulating over the past several months. However, I have tried several commands from solutions posted in other threads in the terminal to remove them and they all fail (purge, remove, autoremove). I also tried to install UBUNTU Tweak and the install failed. I could use some detailed help to remove these packages so I can continue the package updates.

  2. #2
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    995

    Re: \boot is 100% full, unable to remove any kernel images

    Show us the exact sequence of commands you are using to remove the old kernels,
    and please show us the entire session that ends in a failure or error message.

  3. #3
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: \boot is 100% full, unable to remove any kernel images

    Also please post the content of the /boot directory:
    Code:
    ls -alh /boot
    Hopefully there are some backup files which you can remove manually to free up some space.

  4. #4
    Join Date
    Dec 2013
    Beans
    11

    Re: \boot is 100% full, unable to remove any kernel images

    Code:
    bartholic@home-cam:~$ ls -alh /boot
    total 220M
    drwxr-xr-x  4 root root 2.0K Dec 22 10:44 .
    drwxr-xr-x 23 root root 4.0K Nov  8 12:03 ..
    -rw-r--r--  1 root root 829K Jan 25  2013 abi-3.5.0-23-generic
    -rw-r--r--  1 root root 833K Jun  7  2013 abi-3.5.0-34-generic
    -rw-r--r--  1 root root 833K Jun 20  2013 abi-3.5.0-36-generic
    -rw-r--r--  1 root root 833K Jul 10 14:09 abi-3.5.0-37-generic
    -rw-r--r--  1 root root 834K Aug 14 12:03 abi-3.5.0-39-generic
    -rw-r--r--  1 root root 834K Aug 23 13:59 abi-3.5.0-40-generic
    -rw-r--r--  1 root root 834K Sep 12 13:11 abi-3.5.0-41-generic
    -rw-r--r--  1 root root 834K Oct  2 17:19 abi-3.5.0-42-generic
    -rw-r--r--  1 root root 834K Oct 24 11:16 abi-3.5.0-43-generic
    -rw-r--r--  1 root root 145K Jan 25  2013 config-3.5.0-23-generic
    -rw-r--r--  1 root root 145K Jun  7  2013 config-3.5.0-34-generic
    -rw-r--r--  1 root root 145K Jun 20  2013 config-3.5.0-36-generic
    -rw-r--r--  1 root root 145K Jul 10 14:09 config-3.5.0-37-generic
    -rw-r--r--  1 root root 145K Aug 14 12:03 config-3.5.0-39-generic
    -rw-r--r--  1 root root 145K Aug 23 13:59 config-3.5.0-40-generic
    -rw-r--r--  1 root root 145K Sep 12 13:11 config-3.5.0-41-generic
    -rw-r--r--  1 root root 145K Oct  2 17:19 config-3.5.0-42-generic
    -rw-r--r--  1 root root 145K Oct 24 11:16 config-3.5.0-43-generic
    drwxr-xr-x  3 root root 5.0K Dec 22 10:41 grub
    -rw-r--r--  1 root root  16M Jul  3 16:16 initrd.img-3.5.0-23-generic
    -rw-r--r--  1 root root  16M Jul  3 16:29 initrd.img-3.5.0-34-generic
    -rw-r--r--  1 root root  16M Jul  7 09:08 initrd.img-3.5.0-36-generic
    -rw-r--r--  1 root root  16M Aug 25 07:37 initrd.img-3.5.0-37-generic
    -rw-r--r--  1 root root  16M Sep  7 17:41 initrd.img-3.5.0-39-generic
    -rw-r--r--  1 root root  16M Sep 13 14:40 initrd.img-3.5.0-40-generic
    -rw-r--r--  1 root root  16M Sep 29 19:31 initrd.img-3.5.0-41-generic
    -rw-r--r--  1 root root  16M Oct 26 12:51 initrd.img-3.5.0-42-generic
    -rw-r--r--  1 root root  16M Nov  8 12:03 initrd.img-3.5.0-43-generic
    drwxr-xr-x  2 root root  12K Jun 13  2013 lost+found
    -rw-r--r--  1 root root 173K Nov 27  2011 memtest86+.bin
    -rw-r--r--  1 root root 175K Nov 27  2011 memtest86+_multiboot.bin
    -rw-------  1 root root 2.9M Jan 25  2013 System.map-3.5.0-23-generic
    -rw-------  1 root root 2.9M Jun  7  2013 System.map-3.5.0-34-generic
    -rw-------  1 root root 2.9M Jun 20  2013 System.map-3.5.0-36-generic
    -rw-------  1 root root 2.9M Jul 10 14:09 System.map-3.5.0-37-generic
    -rw-------  1 root root 2.9M Aug 14 12:03 System.map-3.5.0-39-generic
    -rw-------  1 root root 2.9M Aug 23 13:59 System.map-3.5.0-40-generic
    -rw-------  1 root root 2.9M Sep 12 13:11 System.map-3.5.0-41-generic
    -rw-------  1 root root 2.9M Oct  2 17:19 System.map-3.5.0-42-generic
    -rw-------  1 root root 2.9M Oct 24 11:16 System.map-3.5.0-43-generic
    -rw-------  1 root root 5.0M Jan 25  2013 vmlinuz-3.5.0-23-generic
    -rw-------  1 root root 5.0M Jun  7  2013 vmlinuz-3.5.0-34-generic
    -rw-------  1 root root 5.0M Jun 20  2013 vmlinuz-3.5.0-36-generic
    -rw-------  1 root root 5.0M Jul 10 14:09 vmlinuz-3.5.0-37-generic
    -rw-------  1 root root 5.0M Aug 14 12:03 vmlinuz-3.5.0-39-generic
    -rw-------  1 root root 5.0M Aug 23 13:59 vmlinuz-3.5.0-40-generic
    -rw-------  1 root root 5.0M Sep 12 13:11 vmlinuz-3.5.0-41-generic
    -rw-------  1 root root 5.0M Oct  2 17:19 vmlinuz-3.5.0-42-generic
    -rw-------  1 root root 5.0M Oct 24 11:16 vmlinuz-3.5.0-43-generic
    bartholic@home-cam:~$
    Last edited by oldos2er; December 26th, 2013 at 12:26 AM. Reason: Added code tags

  5. #5
    Join Date
    Dec 2013
    Beans
    11

    Re: \boot is 100% full, unable to remove any kernel images

    bartholic@home-cam:~$ sudo apt-get purge linux-image-3.5.0-36-generic
    [sudo] password for bartholic:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-image-generic-lts-quantal : Depends: linux-image-3.5.0-44-generic but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

  6. #6
    Join Date
    Dec 2013
    Beans
    11

    Re: \boot is 100% full, unable to remove any kernel images

    all remove commands are not removing anything...!

    bartholic@home-cam:~$ sudo apt-get autoremove linux-image-3.5.0-23-generic
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-image-generic-lts-quantal : Depends: linux-image-3.5.0-44-generic but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

  7. #7
    Join Date
    Jun 2009
    Location
    New Mexico
    Beans
    166
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: \boot is 100% full, unable to remove any kernel images

    I have done the following to remove old kernels. Some people say it is not a good idea because it “Screws up the packager”, but it has never failed me yet. In your case, the instruction would be:

    Code:
    sudo rm *3.5.0-3[4,5,6,7,9]*
    Then your password, then:

    Code:
    sudo update-grub
    It will start working, then return and show you what's left, i.e. the 4 kernels from -40 to -43

    To repeat, this method has never failed me. YMMV

  8. #8
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: \boot is 100% full, unable to remove any kernel images

    There is another method here...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad] [Sub-forum]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  9. #9
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    995

    Re: \boot is 100% full, unable to remove any kernel images

    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-image-generic-lts-quantal : Depends: linux-image-3.5.0-44-generic but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    You may or may not have a full /boot partition, but that's not your biggest problem.
    Your biggest problem is the package linux-image-generic-lts-quantal. That's the package causing your package manager to choke.

    I recommend against egeezer's advice. Use the package manager properly - it's there to help. Don't try to work around it...or you will certainly wind up reinstalling.

    Is there a reason you need the backported 12.10 kernel? It's pretty old at this point.

    1) Do the command uname -r to see the kernel you currently have. Whatever else happens, don't remove that kernel...until after you have rebooted into another kernel that works.

    2) Disable all your PPAs and non-Ubuntu repositories.

    3) Try the command sudo apt-get remove linux-image-generic-lts-quantal .
    If it doesn't work or you get an error message, show us the session.

    4) If it works, then you should be able to easily remove all those old kernels using the package manager (example: sudo apt-get remove linux-image-3.5.0-23-generic).

    5) (Optional) After the old kernels are removed, and the updated kernels are installed (thru -44), then you can reinstall linux-image-generic-lts-quantal
    Last edited by ian-weisser; December 26th, 2013 at 01:17 AM.

  10. #10
    Join Date
    Dec 2013
    Beans
    11

    Re: \boot is 100% full, unable to remove any kernel images

    ian-wesser...no luck...what should I try next?
    bartholic@home-cam:~$ sudo apt-get remove linux-image-generic-lts-quantal
    [sudo] password for bartholic:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-generic-lts-quantal : Depends: linux-image-generic-lts-quantal but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Page 1 of 2 12 LastLast

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
  •