[Solved] Cannot increase /boot size or remove older versions of kernel

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
vcosn
Level 1
Level 1
Posts: 6
Joined: Wed Jun 28, 2017 5:46 am

[Solved] Cannot increase /boot size or remove older versions of kernel

Post by vcosn » Tue Aug 15, 2017 6:43 pm

Newbie here.
My /boot is full. Upon checking it seems to be full of old image versions and configuration files.
--> Tried to remove them via the Syanptic Package Manager, it returned an error and
---> Tried to resize /boot using GParted, couldn't increase the size beyond its current value.

How do I safely remove the older versions of these files. I'm not sure which the right files to directly delete.
Last edited by vcosn on Thu Aug 17, 2017 8:43 pm, edited 1 time in total.

Charlie
Level 4
Level 4
Posts: 340
Joined: Sun Jul 09, 2017 10:09 am
Location: Eng-er-land

Re: Cannot increase /boot size or remove older versions of kernel

Post by Charlie » Tue Aug 15, 2017 6:52 pm

I remove them using the update manager.

User avatar
WharfRat
Level 21
Level 21
Posts: 13440
Joined: Thu Apr 07, 2011 8:15 pm

Re: Cannot increase /boot size or remove older versions of kernel

Post by WharfRat » Tue Aug 15, 2017 7:41 pm

vcosn,

What does dpkg -l|egrep 'linux-image|linux-headers' return :?:
ImageImage

vcosn
Level 1
Level 1
Posts: 6
Joined: Wed Jun 28, 2017 5:46 am

Re: Cannot increase /boot size or remove older versions of kernel

Post by vcosn » Thu Aug 17, 2017 7:12 pm

returns too many old versions


ii linux-headers-4.4.0-53 4.4.0-53.74 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-77 4.4.0-77.98 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-78 4.4.0-78.99 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-79 4.4.0-79.100 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-81 4.4.0-81.104 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-83 4.4.0-83.106 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-87 4.4.0-87.110 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-89 4.4.0-89.112 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-92 4.4.0-92.115 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP

User avatar
WharfRat
Level 21
Level 21
Posts: 13440
Joined: Thu Apr 07, 2011 8:15 pm

Re: Cannot increase /boot size or remove older versions of kernel

Post by WharfRat » Thu Aug 17, 2017 7:32 pm

Wow :shock:

Start purging the unused kernels and headers with sudo apt-get purge linux-image-4.4.0-53-generic linux-headers-4.4.0-53 linux-headers-4.4.0-53-generic

Do that for each set.

Check which kernel you're using with uname -r and leave that one intact.
ImageImage

vcosn
Level 1
Level 1
Posts: 6
Joined: Wed Jun 28, 2017 5:46 am

Re: Cannot increase /boot size or remove older versions of kernel

Post by vcosn » Thu Aug 17, 2017 8:13 pm

Thanks a lot. :D

User avatar
catweazel
Level 19
Level 19
Posts: 9810
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Cannot increase /boot size or remove older versions of kernel

Post by catweazel » Thu Aug 17, 2017 8:51 pm

vcosn wrote:returns too many old versions


ii linux-headers-4.4.0-53 4.4.0-53.74 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-77 4.4.0-77.98 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-78 4.4.0-78.99 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-79 4.4.0-79.100 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-81 4.4.0-81.104 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-83 4.4.0-83.106 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-87 4.4.0-87.110 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-89 4.4.0-89.112 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-92 4.4.0-92.115 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-53-generic 4.4.0-53.74 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-77-generic 4.4.0-77.98 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-78-generic 4.4.0-78.99 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-79-generic 4.4.0-79.100 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-81-generic 4.4.0-81.104 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-83-generic 4.4.0-83.106 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-87-generic 4.4.0-87.110 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-89-generic 4.4.0-89.112 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-92-generic 4.4.0-92.115 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
Good grief! :?
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.

vcosn
Level 1
Level 1
Posts: 6
Joined: Wed Jun 28, 2017 5:46 am

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by vcosn » Thu Aug 17, 2017 8:54 pm

Never knew to use autoremove and installed updates whenever the package manager prompted me. True noob :(

User avatar
dalexunil
Level 3
Level 3
Posts: 117
Joined: Thu Jan 14, 2016 8:54 pm
Location: SW OH

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by dalexunil » Fri Aug 18, 2017 12:59 pm

vcosn wrote:Never knew to use autoremove and installed updates whenever the package manager prompted me. True noob :(
Man, don't feel bad, I'm right there with you! But as it states in the red text at the top of this forum, we ALL start out as n00bs! Thanks for this post, now I've learned another point in Linux..

EDIT: It doesn't say that in the red text at top of page! WHERE did I read that? :/
Last edited by dalexunil on Fri Aug 18, 2017 6:44 pm, edited 1 time in total.
Dale
Eph 6:12

User avatar
wutsinterweb
Level 5
Level 5
Posts: 693
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by wutsinterweb » Fri Aug 18, 2017 4:49 pm

What types of files do we remove, looks like two types?
I'm just a student, your guidance is appreciated.

User avatar
karlchen
Level 20
Level 20
Posts: 11501
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by karlchen » Sat Aug 19, 2017 9:04 am

<moderator on>
Split off ra1madden's post from the [solved] thread and turned into a new thread: Filesystem /boot filled? "gzip: stdout: No space left on device"
</moderator on>
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

User avatar
Tomgin5
Level 5
Level 5
Posts: 940
Joined: Sat Mar 19, 2016 2:37 pm
Location: Beaverton, Oregon USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by Tomgin5 » Sat Aug 19, 2017 2:47 pm

This is one more indication of a link that fixed many of the same malady in several of mine and other computers that were updated the last few weeks from LM18.1 to LM18.2.
Boot Partitions filled and other red lined alarms.
Try these:

Code: Select all

sudo apt-get install byobu
You probably will need to enter your password that will not show.
and this:

Code: Select all

sudo purge-old-kernels

User avatar
wutsinterweb
Level 5
Level 5
Posts: 693
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by wutsinterweb » Sun Aug 20, 2017 9:24 pm

What is byobu, Is that a trusted app, before I use it? Sorry for dumb question.
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 693
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by wutsinterweb » Sun Aug 20, 2017 9:26 pm

Never mind, I see it, good idea!
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 693
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by wutsinterweb » Sun Aug 20, 2017 9:28 pm

Code: Select all

sudo purge-old-kernels
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 693
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by wutsinterweb » Sun Aug 20, 2017 9:30 pm

Hurrdurr, got it, had to close synaptic.

That works good! It left the current and previous. Very good.
I'm just a student, your guidance is appreciated.

vcosn
Level 1
Level 1
Posts: 6
Joined: Wed Jun 28, 2017 5:46 am

Re: [Solved] Cannot increase /boot size or remove older versions of kernel

Post by vcosn » Mon Aug 21, 2017 6:27 am

byobu worked very well indeed. Nice for ongoing management.

Post Reply

Return to “Newbie Questions”